Skip to content

Instantly share code, notes, and snippets.


Gampol T. me7

  • Thailand
View GitHub Profile
me7 / readline.go
Last active Aug 29, 2015
Process text file. One line at a time. Python is 45% shorter (19 vs 34 line) but go run 25% faster (1.23 vs 1.70 second on 500,000 line file). But I prefer go because easier distribute (build exe file)
View readline.go
package main
import (
me7 / tipgodoc
Created Apr 16, 2015 from hacking with andrew and brad
View tipgodoc
package main
import (
me7 / DirWalk.go
Created Apr 23, 2015
walk directory and read file content to array of strings
View DirWalk.go
package main
import (
me7 / gist:15ce46c9b5c8c3af6c9b
Created Apr 27, 2015
Build go from source log
View gist:15ce46c9b5c8c3af6c9b
##### Building Go bootstrap tool.
##### Building Go toolchain using /usr/local/go.
##### Building compilers and go_bootstrap for host, linux/amd64.
##### Building packages and commands for linux/amd64.
View gist:cc81eeb3d1dea9863a41
Show samba version
samba -V
Change samba password for current user
Test samba.conf after edit
Test connect to samba share (Linux side)
me7 / brogrammer.tmTheme
Created May 13, 2015
Sublime Theme Settings - Add guide, activeGuide and stackGuide to Brogrammer theme
View brogrammer.tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
View Preferences.sublime-settings
"always_prompt_for_file_reload": false,
"always_show_minimap_viewport": false,
"animation_enabled": true,
"atomic_save": false,
"auto_close_tags": true,
"auto_complete": true,
"auto_complete_commit_on_tab": false,
"auto_complete_cycle": false,
"auto_complete_delay": 50,
View Gosublime.sublime-settings
"fmt_cmd": ["goimports"],
"autocomplete_snippets": true,
"autocomplete_builtins": true,
"autocomplete_closures": true,
"autocomplete_suggest_imports": true,
"use_named_imports": true,
"default_snippets": [
"match": {"global": true, "pkgname": "."},
View Default (Linux).sublime-keymap
{ "keys": ["shift+space"], "command": "show_overlay", "args": {"overlay": "command_palette"} },
me7 / .gitconfig
Last active Aug 29, 2015
Sublime Settings
View .gitconfig
name = \"kittys\"
email = \"\"
default = matching
user = kittys
token =