Skip to content

Instantly share code, notes, and snippets.

module.exports = function(grunt) {
grunt.initConfig({
concat: {
options: {
separator: ';',
},
js_vendor: {
src: [
'./bower_components/jquery/dist/jquery.js',
<?php
class BrainFuck
{
private $tape;
private $ptr;
public function __construct()
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
@rtgnx
rtgnx / Contract Killer 3.md
Created February 10, 2016 18:14
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: October 8th 2015
  • Original post

Keybase proof

I hereby claim:

  • I am rtgnx on github.
  • I am rtgnx (https://keybase.io/rtgnx) on keybase.
  • I have a public key whose fingerprint is EC33 3C05 6659 999D 1C62 FA35 3A3A CD33 4734 A8DC

To claim this, I am signing this object:

@rtgnx
rtgnx / container.json
Last active September 27, 2016 15:34
[JSON] systemd container description file
{
"name": "test",
"_comment": "type is either arch or image",
"type": "arch|image",
"_comment": "if arch then specifiy packages beside base ",
"packages": [
"vim",
"git"
],
"_comment": "if image then specifiy either url or path to img",
@rtgnx
rtgnx / [email protected]
Created February 3, 2017 18:20
[PGP] Public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFfluOABEADEJq5tNGzOLBrJ2ciZmIniDlw04XOO7O7Mb0LPyOMeX2Bhkjlt
iZ6ndQ/kDC71tNzRlR0I5kf4MTcJj6/YTinEUZ2U91GjRpaUGEENIjawX1RJwdU6
LYkJhE4aj5Y9RA3r955NAMJg68U4rMnAI7f5tNgG/yJYGG5rYPezNhVpmuCDZlOv
UG3BDInGB9t51+38PDRaG/i4IcMTJHSTe5FiHRtVzJSRBBAFkmra+sRErLyl6sg+
iKC0wWLWRw6wIlNIeCCRvT1xywez6D/kTnyTUSwOgu2Q57JvyJ70ddf/zxxLbu/B
XJtsinup9YPIkhUThueRl7kqSV7ONmWba7b5lGKhBqwGJM57ke2UHyNevDpga5W5
yq3J9maPDE9BmFXYTVyXuJ6G3bw8o78vtIdSTEPsqcaBvI5wWrhs5Tc41qAl/fHe
t/fDoSFNseUGecWwMI+GulaXbAW7xjAeDdARt1fJztTSvbqhRlBZRTTlnZOVvo1v
@rtgnx
rtgnx / png_fix.go
Created June 2, 2017 00:48
Solution to challenge from live stream (https://goo.gl/jRPkth)
package main
/*
Solution to challenge from live stream (https://goo.gl/jRPkth)
Generate colormap
perl -e ' print "\xff\x00\x00\x00\xff\x00\x00\x00\xff\xff\xff\x00"; print "\x00"x12;' > colormap.bin
$: go run png_fix.go file.png colormap.bin
@rtgnx
rtgnx / wifi.sh
Created July 20, 2018 17:13
Wifi menu script
#!/bin/bash
function wifi_list() {
wpa_cli list_networks | tail -n +3 | rofi -dmenu | cut -d' ' -f1
}
wpa_cli select_network "$(wifi_list)"
@rtgnx
rtgnx / getpass.sh
Created September 16, 2018 09:31
Select password from password store with rofi. Fills clipboard with garbage after 30s
#!/bin/bash
[ ! -f "$(command -v rofi)" ] && echo "rofi not found" && exit 1
[ ! -f "$(command -v pass)" ] && echo "pass not found" && exit 1
PASWORD_STORE="$HOME/.password-store"
garbage() {
# Use only for throwing garbage into clipboard !!!!
tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 32 | head -n 1