Skip to content

Instantly share code, notes, and snippets.

@tonyciou
tonyciou / index.html
Last active October 13, 2017 09:53
rwd-cats-grid
<!DOCTYPE html>
<html>
<head>
<title>Cute Cats</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://code.jquery.com/jquery-2.2.4.js"></script>
<script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.js"></script>
<style>
body {
@tonyciou
tonyciou / kktix-get-ticket.js
Created September 13, 2017 04:21
kktix-get-ticket.js
$('span.ticket-quantity.ng-scope button.btn-default.plus')[0].click();
$('#person_agree_terms').click();
$('button.btn.btn-lg.ng-isolate-scope').click();
@tonyciou
tonyciou / docker aliases
Created April 1, 2017 05:03
docker aliases
alias dr='docker run'
alias di='docker images'
alias dp='docker ps -a'
alias de='docker exec -it'
alias docup='docker-compose up'
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch
git config --global alias.lo 'log --oneline --graph --decorate --color'
git config --global color.ui true
@tonyciou
tonyciou / mysql-same-password.sql
Last active January 9, 2017 06:21
same password
update members set `password` = sha1('111111') where `password` != ''