Skip to content

Instantly share code, notes, and snippets.

View olegpolukhin's full-sized avatar
🐾
I work hard soft paws

Oleg Poluhin olegpolukhin

🐾
I work hard soft paws
  • Rostov-on-Don
View GitHub Profile
@olegpolukhin
olegpolukhin / Run external Python script in Golang
Last active August 15, 2024 16:18
run external Python script in Golang
package main
import (
"bufio"
"fmt"
"io"
"os/exec"
)
func main() {
@olegpolukhin
olegpolukhin / gist:50722d75429b7f4b909be6753c963619
Created November 14, 2019 15:03
SQL получить пропущенные ID
/*
есть записи в таблице, ID основной автоинкрементный ключ
нужен запрос, который выберет все записи, после которых нет следующей записи
Например для
123568
получить
368
***
@olegpolukhin
olegpolukhin / hs-www.conf
Last active May 31, 2019 06:18
NGINX conf. Angular 7 + PHP (frontend + backend)
upstream frontend {
server 127.0.0.1:8085;
}
upstream backend {
server 127.0.0.1:8086;
}
server {
listen 82;
@olegpolukhin
olegpolukhin / .gitignore
Created April 9, 2019 12:08
unity3D .gitignore
# This .gitignore file should be placed at the root of your Unity project directory
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
# Never ignore Asset meta data
!/[Aa]ssets/**/*.meta
@olegpolukhin
olegpolukhin / conf
Created October 19, 2017 23:02
samba smd.conf
[global]
workgroup = WORKGROUP
server string = Samba Server
log file = /var/log/samba/%m.log
max log size = 50
security = user
map to guest = Bad User
dns proxy = no
# следовать по симлинкам
@olegpolukhin
olegpolukhin / start services SH
Last active October 11, 2017 20:25
run http services
#!/usr/bin/gksu sh
prinDotsting ()
{
DOTSTRING=".................................................."
echo "OK $DOTSTRING$DOTSTRING service $1"
}
printStartServer ()
{