Skip to content

Instantly share code, notes, and snippets.

View rummik's full-sized avatar
💤
Sleeping to escape reality

*Kim Zick rummik

💤
Sleeping to escape reality
View GitHub Profile
@rummik
rummik / gist:5960281
Created July 9, 2013 19:07
Nginx configs have gotten really short.
server {
server_name example.com;
return 301 http://www.example.com$uri;
}
server {
server_name www.example.com;
root /var/www/example.com;
try_files $uri /index.php?$args;
@rummik
rummik / -
Created March 21, 2014 01:08
console.log((+(-~[]+([]+!![])[!![]-~[]-~[]]+-~[]+[+[]]+[+[]]+[+[]])+[])[+[]]+([]+{})[+(-~[]+[+[]])+~[]+~[]+~[]]+(+([!![]-~[]-~[]]+[!![]-~[]]))[([]+!![])[+[]]+([]+{})[-~[]]+(+[]+([]+{})[([]+{})[!![]-~[]-~[]-~[]-~[]]+([]+{})[-~[]]+([]+{}[[]])[-~[]]+([]+![])[!![]-~[]-~[]]+([]+!![])[+[]]+([]+!![])[-~[]]+([]+{}[[]])[+[]]+([]+{})[!![]-~[]-~[]-~[]-~[]]+([]+!![])[+[]]+([]+{})[-~[]]+([]+!![])[-~[]]])[-~[]+[+[]]]+([]+!![])[+[]]+([]+!![])[-~[]]+([![]]+{}[[]])[-~[]+[+[]]]+([]+{}[[]])[-~[]]+(+[]+[![]]+([]+{})[([]+{})[!![]-~[]-~[]-~[]-~[]]+([]+{})[-~[]]+([]+{}[[]])[-~[]]+([]+![])[!![]-~[]-~[]]+([]+!![])[+[]]+([]+!![])[-~[]]+([]+{}[[]])[+[]]+([]+{})[!![]-~[]-~[]-~[]-~[]]+([]+!![])[+[]]+([]+{})[-~[]]+([]+!![])[-~[]]])[[!![]-~[]]+[+[]]]]([!![]-~[]-~[]]+[!![]-~[]-~[]])+([]+!![])[-~[]]+([![]]+{}[[]])[-~[]+[+[]]]+([]+!![])[+[]]+([]+!![])[!![]-~[]-~[]]+([]+{})[+(-~[]+[+[]])+~[]+~[]+~[]]+([]+!![])[+[]]+(+(-~[]+[+[]]+[-~[]]))[([]+!![])[+[]]+([]+{})[-~[]]+(+[]+([]+{})[([]+{})[!![]-~[]-~[]-~[]-~[]]+([]+{})[-~[]]+([]+{}[[]])[-~[]]+([]
'hello world'
fusk.js: (1458 bytes)
(+(-~[]+[+[]]+[-~[]]))[([]+!![])[+[]]+([]+{})[-~[]]+(+[]+([]+{})[([]+{})[!![]-~[]-~[]-~[]-~[]]+([]+{})[-~[]]+([]+{}[[]])[-~[]]+([]+![])[!![]-~[]-~[]]+([]+!![])[+[]]+([]+!![])[-~[]]+([]+{}[[]])[+[]]+([]+{})[!![]-~[]-~[]-~[]-~[]]+([]+!![])[+[]]+([]+{})[-~[]]+([]+!![])[-~[]]])[-~[]+[+[]]]+([]+!![])[+[]]+([]+!![])[-~[]]+([![]]+{}[[]])[-~[]+[+[]]]+([]+{}[[]])[-~[]]+(+[]+[![]]+([]+{})[([]+{})[!![]-~[]-~[]-~[]-~[]]+([]+{})[-~[]]+([]+{}[[]])[-~[]]+([]+![])[!![]-~[]-~[]]+([]+!![])[+[]]+([]+!![])[-~[]]+([]+{}[[]])[+[]]+([]+{})[!![]-~[]-~[]-~[]-~[]]+([]+!![])[+[]]+([]+{})[-~[]]+([]+!![])[-~[]]])[!![]-~[]+[+[]]]](!![]-~[]+[-~[]])[-~[]]+([]+!![])[!![]-~[]-~[]]+([]+![])[!![]-~[]]+([]+![])[!![]-~[]]+([]+{})[-~[]]+([]+{})[+(-~[]+[+[]])+~[]+~[]+~[]]+(+(!![]-~[]-~[]+[!![]-~[]]))[([]+!![])[+[]]+([]+{})[-~[]]+(+[]+([]+{})[([]+{})[!![]-~[]-~[]-~[]-~[]]+([]+{})[-~[]]+([]+{}[[]])[-~[]]+([]+![])[!![]-~[]-~[]]+([]+!![])[+[]]+([]+!![])[-~[]]+([]+{}[[]])[+[]]+([]+{})[!![]-~[]-~[]-~[]-~[]]+([]+!![])[
@rummik
rummik / -
Created March 21, 2014 21:22
alias drop-caches='echo 3 | sudo tee /proc/sys/vm/drop_caches'
// JS hooks for toggling style (think a wordy `$('.toggle-source a').click(function() { ... });`)
[].forEach.call(document.querySelectorAll('.toggle-source a'), function(element) {
element.onclick = function() {
document.body.className = this.getAttribute('id').replace('view-', '');
return false;
};
});
// a slightly Markdown parser
var xhr = new XMLHttpRequest();
@rummik
rummik / for.di
Last active April 10, 2019 04:44
Random Dimond code examples
#**
* For statement definition
*
* @example
* for { $i=0; $i<20; $i++ } {
* ...
* }
*#
define { Function, Function } 'for' {

Keybase proof

I hereby claim:

  • I am rummik on github.
  • I am rummik (https://keybase.io/rummik) on keybase.
  • I have a public key whose fingerprint is D72F 9A68 A075 14C3 815A 0D31 739C F2CB EF82 02E5

To claim this, I am signing this object:

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.14 (GNU/Linux)
hQEMA8SKrfgQ00IJAQf+L4SZ1UGLmy1BRxmaa0y0MajRWM/vljwvW3JDaOBPh+9g
a6zTdzwkfdqXwQ+Dt0HbkZT7gSHj8lM4mQ6+HQ2u05CaSAiMtDRxebxyLK0uJwvp
DPqagVPF2iUOTkTyhBybBaKMe8cbJXhS8lwb7z1OgiSfpbFvUg3FdqBcWqsqkjK+
ORETR6BbddesmKksFRqoBQgTdIRIw7N4492qsBMDIPiBq5OQsyY+vEsVDHi2VxI9
lanbn454nsKkb5qewVF/YAhk6HJWwWHH788qLYRA0vFNaEk+pIC202VB+3odcT0y
y7aD2CXL0RPFJCR5lqt5SzJqKxzlfSLywRJWCu+mrdI7AVda1TyqIjP+qzI/TMfa
kzhNfeHBjhl/jI/q/a8FRusaLE0CLo+Uz9qlmZSv/8kvA+dvkS4QCPt/WhU=
@rummik
rummik / dabblet.css
Created April 12, 2014 23:34
Scrolly Zen Thing
/**
* Scrolly Zen Thing
*/
.test {
height: 500px;
width: 200px;
background: -webkit-linear-gradient(top, #fafafa, transparent 200px),
-webkit-linear-gradient(bottom, #fafafa, transparent 200px),
-webkit-radial-gradient(top, rgba(0, 0, 0, .3), transparent 70%),
@rummik
rummik / tdw.user.js
Last active October 2, 2018 20:53
Backing up a script I wrote forever ago...
// ==UserScript==
// @name WTF? Comments!
// @description Show hidden comments in TDWTF articles (especially Remy Porter's)
// @author rummik
// @include https://thedailywtf.com/*
// @version 0.009.35
// ==/UserScript==
!function() {
'use strict';