Skip to content

Instantly share code, notes, and snippets.

View settachok's full-sized avatar

Settachok Saennam settachok

View GitHub Profile
@settachok
settachok / .bashrc
Last active May 21, 2018 09:05
.bashrc alias for php and composer
#Load folder-specific .bashrc or .bash_profile
PROMPT_COMMAND='if [[ "$bashrc" != "$PWD" && "$PWD" != "$HOME" && -e .bashrc ]]; then bashrc="$PWD"; . .bashrc; fi'
alias php='docker run -it --rm -v $(pwd -W):/app -w "//app" php php'
alias composer='docker run -it --rm -v $(pwd -W):/app composer'
alias node='docker run -it --rm -v $(pwd -W):/app -w "//app" node node'
alias npm='docker run -it --rm -v $(pwd -W):/app -w "//app" node npm'
@settachok
settachok / docker-compose.yml
Created May 21, 2018 09:09
Docker compose for Laravel development
version: '3.3'
services:
nginx:
image: settachok/nginx-laravel
volumes:
- ./:/var/www/html
ports:
- "80"
app:
image: php:fpm
@settachok
settachok / ps
Created July 9, 2018 14:25
Installing Microsoft .NET Framework 3 and 2
dism /online /enable-feature /all /featurename:NetFx3 /Source:${WindowsInstaller}:\sources\sxs
%systemroot%\ServiceProfiles\LocalService\AppData
@settachok
settachok / Config.json
Last active February 1, 2021 13:45
Cloudflare API Dynamic DNS Update in PowerShell
{
"auth_email": "[email protected]",
"auth_key": "cloudflare auth_key",
"zone_name": "example.com",
"records": [
"example.com",
"www.example.com"
]
}
@settachok
settachok / ps
Last active December 24, 2018 08:46
Google Drive Windows Server
.\GoogleDriveFSSetup.exe --allow_server_install