Skip to content

Instantly share code, notes, and snippets.

View llkats's full-sized avatar
💭
still affable

Lydia Kats llkats

💭
still affable
View GitHub Profile

Bash key combinations and shortcuts

The bash shell uses a library called GNU Readline that provides easy and quick CLI key combination access to bash history, screen movement and line editing commands. I've collected some of these here along with some builtin bash shortcuts for history and other functions.

Note: The command bind -p will list all the keybindings and the readline functions they call.

@JawsomeJason
JawsomeJason / !react-sublime-snippets.md
Last active September 6, 2017 17:18
Sublime Text Completions and Snippets for React
  • Place these in your Packages/User/Snippets folder
  • Use any of them with their tab trigger value.
  • call snippets using the first letter of each word plus the entire last word (e.g. rpch.. => react-proptypes-children.sublime-snippet
@othiym23
othiym23 / wtf.md
Last active September 10, 2017 03:35
An experiment. Subject to change.
@max-mapper
max-mapper / test.js
Last active August 29, 2015 14:24
tape + http local server test scaffolding
// the two testing modules I like
var test = require('tape')
var spawn = require('tape-spawn')
var execspawn = require('npm-execspawn') // can spawn from require() scope, check it out!
// put this in outer scope so we can kill the local server at the end
var server
test('start test server', function (t) {
@makenai
makenai / gist:8fa425316db85e8c73e2
Created April 30, 2015 18:26
Incremental JSHint and LintSpaces checking
var JAVASCRIPT_FILES = ['lib/**/*.js', 'routes/**/*.js', 'public/js/**/*.js'];
grunt.initConfig({
jshint: {
options: {
reporter: require('jshint-stylish'),
force: true,
/* https://github.com/gruntjs/grunt-contrib-jshint
http://jshint.com/docs/options/ */
},
@brenna
brenna / anon-function.sublime-snippet
Last active August 29, 2015 14:17
Sublime Text snippet - JS anonymous function
<snippet>
<content><![CDATA[
function(){
${1}
}
]]></content>
<tabTrigger>fn</tabTrigger>
<scope>source.js</scope>
</snippet>
@ericelliott
ericelliott / essential-javascript-links.md
Last active May 17, 2024 03:38
Essential JavaScript Links
@gggritso
gggritso / console.lol.js
Created October 10, 2014 03:33
console.lol
console.lol = function() {
var harray = [], harrumpf = Math.floor( Math.random() * 10 + 2 );
while ( harrumpf-- ) harray.push( 'ha' );
console.log( harray.join( '' ) + '!' );
}

Stealing WiFi

/etc/hosts

This will let you access any google owned site. This includes: youtube, google cache, google translate, google search, gmail, google news, etc.

  • Install the HTTPS Everywhere extension
  • Add these rules to your /etc/hosts file
// HTML:
<div class="display-type"></div>
// CSS:
// set the content of an element depending on the media query