Skip to content

Instantly share code, notes, and snippets.

View fud's full-sized avatar

Brenton Bills fud

  • Paypa Plane
  • Brisbane, Australia.
  • 15:20 (UTC +10:00)
View GitHub Profile
@iMilnb
iMilnb / boto3_hands_on.md
Last active October 19, 2022 09:15
Programmatically manipulate AWS resources with boto3 - a quick hands on

boto3 quick hands-on

This documentation aims at being a quick-straight-to-the-point-hands-on AWS resources manipulation with [boto3][0].

First of all, you'll need to install [boto3][0]. Installing it along with [awscli][1] is probably a good idea as

  • [awscli][1] is boto-based
  • [awscli][1] usage is really close to boto's
@prologic
prologic / Dockerfile
Created April 17, 2015 00:36
My CRUX based UNIX as an IDE Docker Image and related fiels
FROM crux/base:latest
MAINTAINER James Mills <prologic@shortcircuitnet.au>
ENV USER prologic
ENV HOME /home
ENV FULLNAME James Mills
ENV locale en_US
VOLUME /var/lib/docker
@prologic
prologic / getpass
Created February 22, 2015 22:14
created by github.com/tr3buchet/gister
#!/bin/bash
function getpass() {
if [[ -f $HOME/.passwd.cpt ]]; then
password=$(ccrypt -c $HOME/.passwd.cpt | egrep $1 | cut -f 3 -d ":")
else
password=$(egrep $1 $HOME/.passwd | cut -f 3 -d ":")
fi
if [[ $password == "" ]]; then
@phillipberndt
phillipberndt / Fake xinerama
Last active April 26, 2024 23:59
Fake Xinerama configuration to split the DELL Latitude E7440 two-external monitors into two virtual heads
WHAT THIS IS
------------
The DELL LATITUDE E7440's docking station supports two external displays, and
the notebook's Haswell architecture supports having three displays active at
the same time. It works well, but the two external monitors are merged into one
big display:
$ xrandr
Screen 0: minimum 320 x 200, current 5280 x 1080, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
@yellow-sky
yellow-sky / trac2bitbucket.py
Created November 4, 2013 21:34
Trac Wiki to Bitbucket Wiki simple converter. Based on https://gist.github.com/sgk/1286682
#!/usr/bin/python
# coding=utf-8
import sqlite3
import re
import sys
from os import path, rename, walk, mkdir
import shutil
PAGE_QUERY = '''
select
@chendo
chendo / gist:6533177
Created September 12, 2013 04:50
My first assembly! Wrote a bootloader that just prints gibberish in colours. I tried to slow it down but couldn't figure out the interrupt handler stuff.
use16
org 0x7c00
xor ax, ax
xor bx, bx
xor cx, cx
xor dx, dx
mov ds, ax
mov fs, ax

Moved

Now located at https://github.com/JeffPaine/beautiful_idiomatic_python.

Why it was moved

Github gists don't support Pull Requests or any notifications, which made it impossible for me to maintain this (surprisingly popular) gist with fixes, respond to comments and so on. In the interest of maintaining the quality of this resource for others, I've moved it to a proper repo. Cheers!

@audreyfeldroy
audreyfeldroy / pypi-release-checklist.md
Last active February 23, 2023 15:03
My PyPI Release Checklist
  • Update HISTORY.md
  • Commit the changes:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
  • Update version number (can also be minor or major)
bumpversion patch
@tsmith512
tsmith512 / macadventures.md
Created November 30, 2012 04:33
My iJourney

An Introduction

Through both a yearning for familiarity and the knowledge that corporate computer defenestration is a terminal act, I have arduously forged this list of tips, less useful for those on a quest to be an ultimate iUser than for those who want to retain a glimpse, however fleeting, of the Windows/Linux they used to know.

-- [tsmith512][]

@yoneken
yoneken / remove_CLI_tools.sh
Created August 7, 2012 11:03
Xcode Command Line Tools Uninstaller
# remove_CLI_tools.sh
# written by cocoanetics:http://www.cocoanetics.com/2012/07/you-dont-need-the-xcode-command-line-tools/
# modified by yoneken
#!/bin/sh
RECEIPT_FILE1=/var/db/receipts/com.apple.pkg.DevSDK.bom
RECEIPT_PLIST1=/var/db/receipts/com.apple.pkg.DevSDK.plist
RECEIPT_FILE2=/var/db/receipts/com.apple.pkg.clang.bom
RECEIPT_PLIST2=/var/db/receipts/com.apple.pkg.clang.plist