- Install spf13-vim
sh <(curl https://j.mp/spf13-vim3 -L)- Install Go bundle
echo "let g:spf13_bundle_groups=['general', 'neocomplete', 'programming', 'ruby', 'python', 'go', 'javascript', 'html', 'misc', 'writing' ]" >> ~/.vimrc.before.local | /** | |
| * Get ESP8266 infomation. | |
| * @Author AppStack.CC | |
| * @Website http://www.appstack.cc | |
| */ | |
| #include <ESP8266WiFi.h> | |
| // Thank K.Settakan Suwannawat for explain flash chip id. https://www.facebook.com/groups/ChiangMaiMakerClub/permalink/781221611997934/ | |
| // Find flash chip from http://code.coreboot.org/svn/flashrom/trunk/flashchips.h |
| echo '#!/bin/sh' > /tmp/autologin.sh | |
| echo 'count=$(ping -c5 -w5 8.8.8.8 | grep "100% packet loss" | wc -l)' >>/tmp/autologin.sh | |
| echo 'if [ "$count" -gt 0 ]; then' >> /tmp/autologin.sh | |
| echo ' wget -O /dev/null "http://172.168.1.1/CheckValidUser.php?username=c4&password=xxxx"' >> /tmp/autologin.sh | |
| echo ' echo "autologin start"' >> /tmp/autologin.sh | |
| echo 'fi' >> /tmp/autologin.sh | |
| echo '-------' | |
| chmod +x /tmp/autologin.sh | |
| echo '#!/bin/sh' > /tmp/check_autologin.sh | |
| echo 'START=$(date +%s)' >> /tmp/check_autologin.sh |
| #!/bin/sh /etc/rc.common | |
| START=10 | |
| start() | |
| { | |
| uci set wireless.sta.disabled='0' | |
| uci commit | |
| /etc/init.d/network restart | |
| sleep 30 |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| " set rtp+=~/.vim/bundle/Vundle.vim | |
| " call vundle#begin() | |
| " " alternatively, pass a path where Vundle should install plugins | |
| " "call vundle#begin('~/some/path/here') | |
| " | |
| " " let Vundle manage Vundle, required |
| # https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf | |
| set-option -g status-bg colour235 #base02 | |
| set-option -g status-fg colour136 #yellow | |
| set-option -g status-attr default | |
| # set window split | |
| bind-key v split-window -h | |
| bind-key b split-window | |
| # default window title colors |
| # Path to your oh-my-zsh installation. | |
| export ZSH=~/.oh-my-zsh | |
| # include Z | |
| . /usr/local/Cellar/z/1.8/etc/profile.d/z.sh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. |
| APP_NAMES=("app_1" "app_2" "app_3" "app_4" "app_5") | |
| while [ 1 ] | |
| do | |
| OPEN_FILE_ALL=0 | |
| echo -e '\n-------------------------------------------------------' | |
| echo $(date +%Y-%m-%d:%H:%M:%S) | |
| for app in "${APP_NAMES[@]}" | |
| do | |
| PID=$(ps -ef |grep -v grep | grep $app | awk '{print $2}') |
| [alias] | |
| lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
| lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
| lg = !"git lg1" |
| App\Providers Insert in boot function | |
| -------------------------------------- | |
| #change default for mysql | |
| Schema::defaultStringLength(191); | |
| if (env('APP_ENV') === 'production') | |
| { | |
| $url->forceScheme('htps'); | |
| } | |
sh <(curl https://j.mp/spf13-vim3 -L)echo "let g:spf13_bundle_groups=['general', 'neocomplete', 'programming', 'ruby', 'python', 'go', 'javascript', 'html', 'misc', 'writing' ]" >> ~/.vimrc.before.local