This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# gcd: It's "cd" command based on git top directory. | |
# It support fallback mode when current directory is no in a git repo. | |
# In fallback mode, it works as like as "cd" command. | |
# | |
# How to Use: | |
# enable gcd command by source this file in your ".bash_aliases" or ".bashrc". | |
# . gcd | |
# -- OR -- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Automatically generated file; DO NOT EDIT. | |
# Buildroot 2015.11.1 Configuration | |
# | |
BR2_HAVE_DOT_CONFIG=y | |
# | |
# Target options | |
# | |
BR2_SOFT_FLOAT=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void create_new_cofg(char *usr_conf, char *def_conf) | |
{ | |
int done = 0; | |
FILE *usr_fp = NULL, *def_fp = NULL, *temp_fp = NULL; | |
char buf[CONFIG_BUFFER] = {0}; | |
//get currect sep by config name | |
char *fname = get_fname(usr_conf); | |
char *sep = find_file_sep(fname); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################ | |
# generic | |
################################ | |
bindechex() | |
{ | |
if [ "$#" -le "1" ]; then | |
echo -e "Usage:\n\tbindechex <base:2/10/16> <val> ..." 2>/dev/null | |
return | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSTALL_DIR=/usr/local/flexlm/licenses | |
#get hostname from license file | |
licensed_hostname=$(shell cat license.dat | grep ^SERVER | awk '{print $$2}') | |
licensed_macaddr=$(shell cat license.dat | grep ^SERVER | awk '{print $$3}' | sed -e 's/../\0:/g' -e 's/:$$//' ) | |
help: | |
# Usage: | |
# make install # install license server | |
# make uninstall # uninstall license server |