Skip to content

Instantly share code, notes, and snippets.

View Qtrain's full-sized avatar

Michael Queue Qtrain

  • Linode
  • Philadelphia, Pa
View GitHub Profile
@Qtrain
Qtrain / javascript_resources.md
Created May 28, 2014 05:59 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@Qtrain
Qtrain / css_resources.md
Created May 28, 2014 05:59 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@Qtrain
Qtrain / index.html
Created March 29, 2015 22:29
off canvas menu
<div class="wrapper">
<h1>Off Canvas Menu with Animated Links</h1>
<div class="mobile">
<!-- Checkbox to toggle the menu -->
<input type="checkbox" id="tm" />
<!-- The menu -->
<ul class="sidenav">
<li><a href="#"><i class="fa fa-check"></i><b>Tasks</b></a></li>
<li><a href="#"><i class="fa fa-inbox"></i><b>Messages</b></a></li>
<li><a href="#"><i class="fa fa-pencil"></i><b>New Post</b></a></li>
@Qtrain
Qtrain / index.html
Last active August 29, 2015 14:17
1 element slider
<input type='range' id='r1' class='tip fill fill-replace'
value='7' min='1' max='13' />
<input type='range' id='r2' class='tip fill'
value='60' />
<input type='range' id='r3' class='tip'
value='25' step='25' />
<input type='range' id='r4' class='fill'
value='87' />
@Qtrain
Qtrain / Personal-site-mockup.markdown
Created March 30, 2015 00:59
Personal site mockup
### Keybase proof
I hereby claim:
* I am qtrain on github.
* I am mikeqlinode (https://keybase.io/mikeqlinode) on keybase.
* I have a public key ASByd1OETHWx85Vm6Okdh6nJhAlF_qtbKefgbxlEz6ECJwo
To claim this, I am signing this object:
sudo -i
service mysql stop
killall -KILL mysql mysqld_safe mysqld
apt-get --yes purge mysql-server mysql-client
apt-get --yes autoremove --purge
apt-get autoclean
deluser --remove-home mysql
delgroup mysql
rm -rf /etc/apparmor.d/abstractions/mysql /etc/apparmor.d/cache/usr.sbin.mysqld /etc/mysql /var/lib/mysql /var/log/mysql* /var/log/upstart/mysql.log* /var/run/mysqld
updatedb
@Qtrain
Qtrain / tmux-cheatsheet.markdown
Created September 2, 2017 17:31 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Qtrain
Qtrain / users
Created November 30, 2017 20:29
awk -F: '($3>=1000) && ($3!=65534)' /etc/passwd > passwd.new
awk -F: '($3>=1000) && ($3!=65534) {print $1}' /etc/passwd | grep -f - /etc/shadow > shadow.new
awk -F: '($3>=1000) && ($3!=65534)' /etc/group > group.new
cat passwd.new >> /etc/passwd
cat group.new >> /etc/group
cat shadow.new >> /etc/shadow
@Qtrain
Qtrain / clone all ya gists
Last active December 1, 2017 03:55
clone all of your gists
grab a php shell with php -a
$gists = json_decode(`curl -f -s https://api.github.com/users/qtrain/gists`);
foreach($gists as $gist){
exec("git clone $gist->git_pull_url");
}
echo "done!";