Skip to content

Instantly share code, notes, and snippets.

View AstraLuma's full-sized avatar
🐍
snek snek snek snek

Jamie Bliss AstraLuma

🐍
snek snek snek snek
View GitHub Profile
@fluffy-critter
fluffy-critter / README.md
Created January 3, 2019 20:45
simple git merge review tool

Simple code review tool thingy

  1. Put diff2html somewhere on your path
  2. Put this on your path too

Now you can quickly visualize a branch's code changes with e.g.

git cr

or

@Twipped
Twipped / Trans-feminine HRT Changes.md
Last active June 3, 2022 15:15
My collective research and experiences with trans-feminine (male to female) hormone therapy

UPDATE: This gist is now deprecated, please visit The Gender Dysphoria Bible for the latest version of this document.

This is a compilation of report medical transition changes, collected from testimonials of trans women from various discussion forums and chat rooms, backed up by my own experiences.

Note that this is a list of possible changes. There is no guarentee that a person on HRT will experience all of these. As always, your milage may vary.

Changes connected to reduction of Testosterone:

  • Reduction in general body odor and change in the smell of ones sweat. Many report gaining a sweet smell.
  • Skin softens and becomes thinner.
@diiq
diiq / dice.py
Last active September 9, 2017 06:17
import random
from collections import defaultdict
def raw_roll(num):
dice = [random.randint(1, 10) for _ in range(num)]
# Extra dice for 10s
dice += [random.randint(1, 10) for _ in range(dice.count(10))]
# Drop the lowest
@OrkoHunter
OrkoHunter / app.py
Created February 24, 2017 00:06
Keep Heroku server
# -*- coding: utf-8 -*-
import json
import os
from flask import Flask, request, g, session, redirect, url_for, Response
from flask import render_template_string, render_template
import requests
from sqlalchemy import create_engine, Column, Integer, String, Text
from sqlalchemy.orm import scoped_session, sessionmaker
@kristianmandrup
kristianmandrup / Converting libraries to Ember CLI addons.md
Last active April 21, 2023 17:14
Guide to Developing Addons and Blueprints for Ember CLI

Converting libraries to Ember CLI addons

In this guide we will cover two main cases:

  • Ember specific library
  • vendor library

Ember library

The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.

@acdha
acdha / paramiko-using-ssh-config.py
Created July 23, 2013 17:16
Connecting with paramiko using the user's OpenSSH config
client = paramiko.SSHClient()
client._policy = paramiko.WarningPolicy()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh_config = paramiko.SSHConfig()
user_config_file = os.path.expanduser("~/.ssh/config")
if os.path.exists(user_config_file):
with open(user_config_file) as f:
ssh_config.parse(f)
@AstraLuma
AstraLuma / gist:5970631
Created July 10, 2013 21:49
A basic spider to aggregate statuses
#!/usr/bin/python -i
import argparse
import collections
import Queue
import logging
import requests
import threading
import urlparse
from bs4 import BeautifulSoup
@trenton42
trenton42 / packages.md
Last active March 2, 2017 16:02
Handy Python Packages
  • appdirs store user data in the right spot on different platforms
  • APScheduler In-process task scheduler with Cron-like capabilities
  • blessings A thin, practical wrapper around terminal coloring, styling, and positioning
  • boto Python interface to Amazon Web Services.
  • cmd2 create better shells
  • docopt Command-line interface description language
  • elementflow xml creation
  • fabric Pythonic remote execution and deployment.
    • Cuisine Provides light weight Chef-like functionality for Fabric
  • google-charwrapper Python wrapper for the Google Chart API.
@liuw
liuw / ctype_async_raise.py
Created April 17, 2012 16:02
Nasty hack to raise exception for other threads
#!/usr/bin/env python
# liuw
# Nasty hack to raise exception for other threads
import ctypes # Calm down, this has become standard library since 2.5
import threading
import time
NULL = 0
@soemarko
soemarko / theme.html
Created November 26, 2011 16:18
embed github gist to tumblr
<!-- Add the following lines to theme's html code right before </head> -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script>
<script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script>
<!--
Usage: just add <div class="gist">[gist URL]</div>
Example: <div class="gist">https://gist.github.com/1395926</div>
-->