Skip to content

Instantly share code, notes, and snippets.

View saturation's full-sized avatar
🦊

Miikka Liukkonen saturation

🦊
View GitHub Profile
@saturation
saturation / breachquery.sh
Created December 31, 2017 08:11 — forked from nlitsme/breachquery.sh
query.sh for older bash versions - from magnet:?xt=urn:btih:7ffbcd8cee06aba2ce6561688cf68ce2addca0a3
#!/bin/bash
# query.sh from BreachCompilation - magnet:?xt=urn:btih:7ffbcd8cee06aba2ce6561688cf68ce2addca0a3
# works with older bash versions.
# patch by Willem <[email protected]>
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
if [ "$1" != "" ]; then
word1=$(echo $1 | tr A-Z a-z)
letter1=$(echo $word1|cut -b1)
if [[ $letter1 == [a-zA-Z0-9] ]]; then
@saturation
saturation / breachquery.sh
Created December 31, 2017 08:11 — forked from nlitsme/breachquery.sh
query.sh for older bash versions - from magnet:?xt=urn:btih:7ffbcd8cee06aba2ce6561688cf68ce2addca0a3
#!/bin/bash
# query.sh from BreachCompilation - magnet:?xt=urn:btih:7ffbcd8cee06aba2ce6561688cf68ce2addca0a3
# works with older bash versions.
# patch by Willem <[email protected]>
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
if [ "$1" != "" ]; then
word1=$(echo $1 | tr A-Z a-z)
letter1=$(echo $word1|cut -b1)
if [[ $letter1 == [a-zA-Z0-9] ]]; then
@saturation
saturation / servo4noobs.md
Created October 16, 2015 10:32 — forked from paulrouget/servo4noobs.md
Hacking Servo For Noobs
var path = require('path');
var gulp = require('gulp');
var streamqueue = require('streamqueue');
var $gulp = require('gulp-load-plugins')({
lazy: false
});
var prependBowerPath = function (package) {
return path.join('./src/bower_components/', package);
};
//see: http://mksenzov.github.io/javascript/2014/01/18/autocurry-in-js.html
// We create a function autocurry
function autocurry(fn) {
// Autocurry takes an ordinary function `fn` as an argument
// and wraps it into a `magic` function
return function /* magic */ () {
// Magic checks the amount of formal parameters fn has: fn.length
// vs. how much paramters where passed to `magic`: arguments.length
# activewindow.scpt - track your active window and Chrome web page on OSX
# USAGE:
# while true; do osascript activewindow.scpt | tee -a log.log; sleep 1; done
set _url to ""
tell application "System Events"
set _app to name of first application process whose frontmost is true
end tell
@saturation
saturation / README.md
Created December 18, 2013 12:29 — forked from ngryman/README.md

intellij javascript live templates

Just a dump of handy live templates I use with IntelliJ. They should also work with WebStorm.

How to

  • Go to settings.
  • Search for live templates.
  • Under the javascript section you should be able to manage your templates.
Copyright (C) 2013 by Yu-Jie Lin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
Copyright (C) 2013 by Yu-Jie Lin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in