Skip to content

Instantly share code, notes, and snippets.

View adkdev's full-sized avatar
🎯
Focusing

Adisak P. adkdev

🎯
Focusing
  • Bangkok, Thailand
  • 03:29 (UTC +07:00)
  • X @adkdev
View GitHub Profile
@adkdev
adkdev / youtube.related.with.pubdate.user.js
Last active October 28, 2017 12:56
Display publish date for Youtube related video
@adkdev
adkdev / arch-linux-install.md
Created September 8, 2017 14:11 — forked from kylemanna/arch-linux-install.md
Minimal instructions for installing arch linux on an UEFI NVMe system with full system encryption using dm-crypt and luks
@adkdev
adkdev / ss2si.go
Created March 16, 2017 13:35
Go func: convert map[string]string to map[string]int
// convert map[string]string to map[string]int
// original code: http://stackoverflow.com/a/24973180/1606462
func ss2si(ss map[string]string) (map[string]int, error) {
si := make(map[string]int)
for k, v := range ss {
i, err := strconv.Atoi(v)
if err != nil {
return si, err
}
si[k] = i
@adkdev
adkdev / .block
Last active January 27, 2017 08:09
D3 - Thailand map by population density
license: mit
@adkdev
adkdev / .block
Last active November 6, 2023 13:08
D3 - Thailand Map
license: mit
@adkdev
adkdev / nograyscale.user.js
Last active October 2, 2017 04:21
No grayscale for me
/*
Tampermonkey (user)script to remove grayscale color for any websites.
## How to use?
1. Install tampermonkey chrome extension (https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo)
2. Open RAW version of this gist (https://gist.github.com/adkdev/911e38e15caf3f542ac87c9ab59bac95/raw/6577444b54c21f2427a0a578e9f67b2c07bfa51e/nograyscale.user.js)
3. Click install.
4. Open any website.
*/
@adkdev
adkdev / 00.howto_install_phantomjs.md
Last active September 28, 2016 06:17 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Debian

Version: 2.1.1

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@adkdev
adkdev / lar.sh
Created September 7, 2016 07:42
loop and run
#!/bin/bash
for dd in `seq 20 1 31`
do
dd=$(printf %02.0f $dd)
for hh in `seq 0 1 23`
do
hh=$(printf %02.0f $hh)
echo ~/scripts/parser.sh 2016 08 $dd $hh
~/scripts/parser.sh 2016 08 $dd $hh
grep -rnw '/path/to/somewhere/' -e "pattern"
@adkdev
adkdev / config
Last active June 4, 2016 15:40
my i3 config for ubuntu 14.04 based on https://github.com/tunnelshade/awesome-dots
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!