Skip to content

Instantly share code, notes, and snippets.

View monokrome's full-sized avatar
😻
meow

Bailey Stoner monokrome

😻
meow
View GitHub Profile
@monokrome
monokrome / layout2.jade
Last active September 26, 2015 18:28 — forked from kmiyashiro/layout2.jade
!!! 5
//if lt IE 7
<html class="no-js lt-ie9 lt-ie8 lt-ie7">
//if IE 7
<html class="no-js lt-ie9 lt-ie8">
//if IE 8
<html class="no-js lt-ie9">
// [if gt IE 8] <!
html(class="no-js", lang="en")
// <![endif]
http = require "http"
server = http.createServer (request, response) ->
response.writeHead 200,
"Content-Type": "text/plain"
response.write "Hello World"
response.end()
server.listen 8888
// ==UserScript==
// @name MocoSpace Plus
// @namespace http://monokro.me/
// @version 0.1
// @description Makes mocospace not-so-lame.
// @match http://www.mocospace.com/html/chat/*
// @copyright 2012+, Brandon R. Stoner
// ==/UserScript==
(function(undefined) {
function boundWidths(min, max) {
// jQuery Deparam - v0.1.0 - 6/14/2011
// http://benalman.com/
// Copyright (c) 2011 Ben Alman; Licensed MIT, GPL
(function($) {
// Creating an internal undef value is safer than using undefined, in case it
// was ever overwritten.
var undef;
// A handy reference.
var decode = decodeURIComponent;
@monokrome
monokrome / Sherkhan mad
Last active December 14, 2015 06:49 — forked from anonymous/Sherkhan mad
<p>
<a href=http://vampirefreaks.com/gallery/Thesis>
<center>
<img src=http://oi47.tinypic.com/o74mz8.jpg />
</center>
</a>
</p>
<p>
<a href=http://vampirefreaks.com/user_comment.php?user=thesis&amp;uid=4703510&amp;comment_id=312534571>
from django.core.serializers import json
def increase_by(amount):
def addition(original):
return original + amount
return addition
numbers = map(increase_by(5), [1, 2, 3])
@monokrome
monokrome / pre-commit
Last active December 25, 2015 03:39 — forked from fearofcode/pre-commit
#!/usr/bin/env sh
# rename pre-commit.sample in the hooks directory to pre-commit and replace its content with this
set_traces=`git grep ".set_trace()"`
if [ ! -z "$set_traces" ] ; then
echo "You have pdb.set_trace() in your code! Commit aborted!"
echo $set_traces
exit 1
@monokrome
monokrome / README.md
Created October 12, 2013 19:50 — forked from nikcub/README.md
@monokrome
monokrome / firefox.md
Created October 31, 2017 06:09
Configuring Firefox for security and privacy (as of Oct. 2017)

Configuring/Hardening Firefox for Security and Privacy

Source for some of these

  1. about:config
  • dom.event.clipboardevents.enabled => false
  • clipboard.plainTextOnly => true
  • referer spoofSource => true
  • media.peerconnection
@monokrome
monokrome / firefox.md
Created October 31, 2017 06:09
Configuring Firefox for security and privacy (as of Oct. 2017)

Configuring/Hardening Firefox for Security and Privacy

Source for some of these

  1. about:config
  • dom.event.clipboardevents.enabled => false
  • clipboard.plainTextOnly => true
  • referer spoofSource => true
  • media.peerconnection