Skip to content

Instantly share code, notes, and snippets.

@podanypepa
podanypepa / index.php
Created November 22, 2019 17:44
PHP info
<?php
phpinfo();
?>
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
#!/bin/sh
osascript ./apphosting.applescript
package main
import (
"fmt"
"net"
"os"
"strconv"
"time"
)
package main
import (
"fmt"
"time"
)
type Sem struct {
c chan struct{}
name string
@podanypepa
podanypepa / main.go
Created December 18, 2019 10:52
fak func
‎‎​package main
import (
"fmt"
"os"
"strconv"
)
func fak(n int) int {
if n == 1 {
package main
import (
"github.com/sirupsen/logrus"
prefixed "github.com/x-cray/logrus-prefixed-formatter"
)
var log = logrus.New()
func init() {
#!/bin/sh
NODE="web"
USER="fac"
REMOTE_DIRS=("/home/fac" "/")
REMOTE_DIRS_COUNT=${#REMOTE_DIRS[@]}
DST_DIRS=(./home ./root )
DST_DIRS_COUNT=${#DST_DIRS[@]}
#!/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"
#!/bin/sh
vim +PlugClean +qall
vim +PlugInstall +qall
vim +PlugUpdate +qall