libyaml C-language wrapper
Need
- libyaml
- apach portable routine
alias rmescseq='sed -r "s:\x1B\[[0-9;]*[mK]::g"' |
#!/bin/bash | |
################################################################################## | |
# 1 - Prepare environments | |
RELEASE=trusty | |
ARCH=64 # OR 32 | |
ADD_PACKAGES="vim,curl,wget,manpages,bash-completion,keychain,tmux,python-software-properties" | |
case ${ARCH} in | |
64) BOXNAME=${RELEASE}${ARCH} | |
ARCH=amd64 ;; |
#!/bin/bash | |
SSH=$HOME/.ssh | |
[ ! -f $SSH/config ] && touch $SSH/config | |
[ -f $SSH/config ] && [ ! -f $SSH/config.orig ] && mv $SSH/config{,.orig} | |
rm -f $SSH/config.vagrant | |
touch $SSH/config.vagrant | |
for dir in $(vagrant global-status | grep $HOME) | |
do | |
pushd $dir > /dev/null |
#!/bin/bash | |
if [ ${SHLVL} -le 1 ];then | |
(cat <<EOM | |
/home/vagrant/.dotfiles | |
EOM | |
) | while read line | |
do | |
ls -d $line | |
pushd $line | |
git pull -v exit 1 |
#!/bin/bash -eu | |
if [ ${SHLVL} -le 1 ];then | |
if [ -f ~/.gitupdates ];then | |
for i in $(cat ~/.gitupdates ) | |
do | |
pushd $(eval "ls -d $i") | |
git pull -v || echo ERROR !!!!!!!!!!!!!!!!!!! | |
popd > /dev/null | |
done |
GITHUB_URL_PREFIX="url.git@github.com:" | |
git config --global --remove-section "$GITHUB_URL_PREFIX" || : | |
git config --global "$GITHUB_URL_PREFIX".pushInsteadOf "git://github.com/" | |
git config --global --add "$GITHUB_URL_PREFIX".pushInsteadOf "https://github.com/" | |
OR | |
git config --global "url.git@github.com:.pushinsteadof" "https://github.com/" |
$ tree $HOME/work/.git_template | |
/home/XXX/work/.git_template | |
-- hooks | |
-- post-flow-release-finish | |
`-- post-flow-release-start | |
`-- info | |
`-- exclude | |
2 directories, 3 files |
#!/usr/bin/env bash | |
# load base functions | |
declare -F log_action_begin_msg > /dev/null | |
(( $? == 1 )) && source /lib/lsb/init-functions | |
# define checker | |
function _has_f () { | |
return 0; | |
} |
libyaml C-language wrapper
Need
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |