Skip to content

Instantly share code, notes, and snippets.

View marchampson's full-sized avatar

Marc Hampson marchampson

View GitHub Profile
@marchampson
marchampson / useful mysql
Created February 8, 2013 12:31
Useful mysql
Character encoding of tbl (where tbl = tablname):
show create table tbl\G
Update character set:
alter table <tablename> modify <columname> <type> character set utf8
@marchampson
marchampson / collaborator api
Created January 28, 2013 14:11
Add collaborator from command line
curl -i -u "my_user_name:my_password" -X PUT -d '' 'https://api.github.com/repos/my_gh_userid/my_repo/collaborators/my_collaborator_id'