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
<?php | |
phpinfo(); | |
?> |
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
tell application "iTerm2" | |
set newWindow to (create window with default profile) | |
tell current session of newWindow | |
write text "cd ~/apphosting.io/core/cmd/mngr\n" | |
write text "go run *.go\n" | |
end tell | |
set newWindow to (create window with default profile) | |
tell current session of newWindow |
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/sh | |
osascript ./apphosting.applescript |
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
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
"strconv" | |
"time" | |
) |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
type Sem struct { | |
c chan struct{} | |
name string |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"strconv" | |
) | |
func fak(n int) int { | |
if n == 1 { |
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
package main | |
import ( | |
"github.com/sirupsen/logrus" | |
prefixed "github.com/x-cray/logrus-prefixed-formatter" | |
) | |
var log = logrus.New() | |
func init() { |
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/sh | |
NODE="web" | |
USER="fac" | |
REMOTE_DIRS=("/home/fac" "/") | |
REMOTE_DIRS_COUNT=${#REMOTE_DIRS[@]} | |
DST_DIRS=(./home ./root ) | |
DST_DIRS_COUNT=${#DST_DIRS[@]} |
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/sh | |
if [ -z `git rev-parse --is-inside-work-tree 2>/dev/null` ]; then | |
echo "${PWD} isn't git repo dir" | |
exit 1 | |
fi | |
if [ $# -lt 1 ]; then | |
echo "bad ussage: 1.arg is name of file" | |
echo "nonmandatory 2.arg = num of last commits to see" |
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/sh | |
vim +PlugClean +qall | |
vim +PlugInstall +qall | |
vim +PlugUpdate +qall |
OlderNewer