Skip to content

Instantly share code, notes, and snippets.

😀

GG Nam ggnam

😀
View GitHub Profile
@ggnam
ggnam / install-psycopg2
Created Jan 6, 2020 — forked from prakashanantha/install-psycopg2
Installing psycopg2 on a mac
View install-psycopg2
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install postgresql
sudo pip install psycopg2
@ggnam
ggnam / karabiner.sh
Created Feb 2, 2019 — forked from yukiyan/karabiner.sh
share karabiner settings
View karabiner.sh
cp ~/Library/Preferences/org.pqrs.Karabiner.plist ~/Dropbox/Apps/karabiner
cp ~/Library/Application\ Support/Karabiner/private.xml ~/Dropbox/Apps/karabiner
ln -sf ~/Dropbox/Apps/karabiner/org.pqrs.Karabiner.plist ~/Library/Preferences/org.pqrs.Karabiner.plist
ln -sf ~/Dropbox/Apps/karabiner/private.xml ~/Library/Application\ Support/Karabiner/private.xml
@ggnam
ggnam / docker-compose.yml
Last active Feb 1, 2019
docker-compose.yml
View docker-compose.yml
version: '3.1'
services:
db:
container_name: mysql_test
image: mysql:8.0.2
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
ports:
@ggnam
ggnam / debian-mysql-client-8.sh
Last active Feb 1, 2019 — forked from stepankuzmin/debian-mysql-client-8.sh
Install mysql-client 8 on Debian
View debian-mysql-client-8.sh
wget https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb
dpkg -i mysql-apt-config_0.8.10-1_all.deb # choose OK
apt update
apt install mysql-client
@ggnam
ggnam / countries.sql
Created Dec 27, 2018 — forked from adhipg/countries.sql
Sql dump of all the Countries, Country Codes, Phone codes.
View countries.sql
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
You can’t perform that action at this time.