Skip to content

Instantly share code, notes, and snippets.

😻
meow

Bailey Stoner monokrome

😻
meow
Block or report user

Report or block monokrome

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View freenode_channels.txt
This file has been truncated, but you can view the full file.
2391 ##linux Channel website: https://freenode.linux.community | Pastebin: https://paste.linux.community | Need an op? Join ##linux-ops | CoC? ##linux-offtopic, please.
1931 #python Don't paste, use https://paste.pound-python.org/ | http://bit.ly/psf-coc | Tutorial: http://bit.ly/MCAhYx | New programmer? http://bit.ly/23X7emF | Specify 2.x or 3.x in your question | Find your local User Group: http://goo.gl/S1Zsq | #python-fr #python.de #python-es #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #python-hu #python-dk #python-dev
1926 #freenode Welcome to #freenode | Feel free to message staff at any time. You can find us using /stats p (shows immediately-available staff) or /who freenode/staff/* (shows all staff) | See https://freenode.net/news/spambot-attack regarding spam | User mode +R blocks unregistered user PMs
@monokrome
monokrome / firefox.md
Created Oct 31, 2017 — forked from maxzinkus/firefox.md
Configuring Firefox for security and privacy (as of Oct. 2017)
View firefox.md

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
@maxzinkus
maxzinkus / firefox.md
Last active Sep 14, 2019
Configuring Firefox for security and privacy (as of Oct. 2017)
View firefox.md

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
View linux-workstation-security.md

Linux workstation security checklist

This is a set of recommendations used by the Linux Foundation for their systems administrators. All of LF employees are remote workers and we use this set of guidelines to ensure that a sysadmin's system passes core security requirements in order to reduce the risk of it becoming an attack vector against the rest of our infrastructure.

Even if your systems administrators are not remote workers, chances are that they perform a lot of their work either from a portable laptop in a work

@monokrome
monokrome / allow_docker_access.sh
Last active Dec 27, 2015
Allow Shipyard to access docker on port 4243.
View allow_docker_access.sh
sudo ufw allow from $(docker inspect $(docker ps | grep 'shipyard/shipyard' | grep Up | cut -d \ -f 1) | grep IPAddress | cut -f 4 -d \") to any port 4243
@jed
jed / how-to-set-up-stress-free-ssl-on-os-x.md
Last active Nov 4, 2019
How to set up stress-free SSL on an OS X development machine
View how-to-set-up-stress-free-ssl-on-os-x.md

How to set up stress-free SSL on an OS X development machine

One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.

Most workflows make the following compromises:

  • Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the secure flag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection.

  • Use production SSL certificates locally. This is annoying

@monokrome
monokrome / itunes_receipts.py
Last active Dec 19, 2015
Search within a mailbox for iTunes receipts, and write a JSON representation of all iTunes receipts as 'receipts.json'.
View itunes_receipts.py
#!/usr/bin/env python
import mailbox
mailbox_root = 'your_mailbox'
mailbox_type = mailbox.Maildir
###########################################
###########################################
## Configuration section finished. ##
@monokrome
monokrome / models.coffee
Last active Dec 19, 2015
Polymorphic relatedModel for backbone-associations
View models.coffee
{polymorphic} = require 'polymorphic'
class OtherModel extends Backbone.Model
class YetAnotherOtherModel extends Backbone.Model
class MyModel extends Backbone.Model
relations: [
type: Backbone.One
key: 'otherUri'
@monokrome
monokrome / nginx
Last active Dec 19, 2015
Makes loading and running Homebrew's nginx on OS X easier.
View nginx
#!/usr/bin/env sh
fail() {
echo "Failed to authenticate as superuser."
exit
}
# Verify that we have privileges or fail
test sudo || fail
@monokrome
monokrome / example.py
Created Jun 20, 2013
Templates using built-in Python string formatting.
View example.py
from .utils import template
x = template('example.sh', '~', options='-al')
You can’t perform that action at this time.