Skip to content

Instantly share code, notes, and snippets.

View mildronize's full-sized avatar

Thada Wangthammang mildronize

View GitHub Profile
@mildronize
mildronize / GitCommitEmoji.md
Created July 6, 2018 05:09 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@mildronize
mildronize / Readme.md
Last active December 18, 2017 16:02
Docker Cmder Alias - setup docker environment if the docker machine is started
@mildronize
mildronize / auto_sync_to_remote.bat
Created February 13, 2017 10:30
[Windows] Auto upload files changed to remote host
:: Name: auto_sync_to_remote.bat
:: Purpose: Auto upload files changed to remote host without removing any remote files
:: Author: Thada Wangthammang <mildronize@gmail.com>
:: Revision: 2017/02/13 Initial version
:: Ref: http://steve-jansen.github.io/guides/windows-batch-scripting/part-10-advanced-tricks.html
:: http://schier.co/blog/2013/03/13/start-virtualbox-vm-in-headless-mode.html
:: Prerequisite
:: - `Winscp`
@mildronize
mildronize / .vimrc
Last active December 18, 2020 09:32
Minimal .vimrc for ACM-ICPC
set nocompatible " use vim, not vi api
syntax on " enable syntax processing
set number " show line numbers
set tabstop=4 " number of visual spaces per TAB
set softtabstop=4 " number of spaces in tab when editing
set autoindent " Indent at the same level of the previous line
set smartindent " If you wnat to paste in INSERT MODE, press `F5` (PASTE toggle)
@mildronize
mildronize / autotest.py
Created August 6, 2016 16:27
Auto test script ( watchdog + nose ) for TDD ( with test )
#!/usr/bin/env python
import os
import sys
import time
from watchdog.observers import Observer
from watchdog.events import PatternMatchingEventHandler
# STYLE="startswith_test"
# STYLE="endswith_test"
@mildronize
mildronize / boot-repair.sh
Last active May 30, 2016 04:08
Boot Repair for ubuntu
#!/bin/bash
sudo add-apt-repository ppa:yannubuntu/boot-repair && \
sudo apt-get update && \
sudo apt-get install -y boot-repair && \
sudo boot-repair

Docker Cheat Sheet


Build Image

docker build -t [REPOSITORY/IMAGE NAME] [PATH] 
@mildronize
mildronize / hotspot.bat
Created March 6, 2016 05:16
A script for creating a hotspot wifi on Windows (Require Admin permission)
@ECHO OFF
echo Hotspot
echo .
set wirelessName=Hotspot
IF "%1"=="start" goto START
IF "%1"=="stop" goto STOP
IF "%1"=="restart" goto RESTART
IF "%1"=="stat" goto STAT
@mildronize
mildronize / minimal-psuautosigned.sh
Created January 6, 2016 14:35 — forked from ChatchaiJ/minimal-psuautosigned.sh
Minimal PSU Autosigned Script
#!/bin/bash
USER="YOUR-PASSPORT-ID"
PASSWD="YOUR-PASSPORT-PASSWORD"
COOKIES="cookies.txt"
/usr/bin/curl \
--connect-timeout 10 \
--max-time 10 \
-s -k \
@mildronize
mildronize / mildronize-putty-sessions.reg
Created October 9, 2015 07:20
Mildronize putty sessions
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions]
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\mildronize-solarized-dark-settings]
"Present"=dword:00000001
"LogFileName"="putty.log"
"LogType"=dword:00000000
"LogFileClash"=dword:ffffffff
"LogFlush"=dword:00000001