Skip to content

Instantly share code, notes, and snippets.

import re
myfile = open('list', 'r')
callnos = myfile.readlines()
p = re.compile("""^(?P<aclass>[A-Z]{1,3})
(?P<nclass>\\d{1,4})(\\ ?)
(\\.(?P<dclass>\\d{1,3}))?
(?P<date>\\ [A-Za-z0-9]{1,4}\\ )?
# generated by Slic3r 1.1.7 on Wed Dec 31 09:39:49 2014
[filament:ABS]
bed_temperature = 85
bridge_fan_speed = 100
cooling = 1
disable_fan_first_layers = 3
extrusion_multiplier = 1
fan_always_on = 0
fan_below_layer_time = 60
#!/bin/sh
# VPN and Torrent on Ubuntu 14.04 on Digital Ocean
# References:
# Torrent - https://gist.github.com/timothyandrew/6162351
# Torrent - http://filesharefreak.com/2012/05/10/seedbox-from-scratch-new-server-to-seeding-in-less-than-5-minutes
# VPN - https://www.digitalocean.com/community/articles/how-to-setup-a-multi-protocol-vpn-server-using-softether
DIR="`pwd`"
apt-get update -y && apt-get upgrade -y
{
"alt-speed-down": 50,
"alt-speed-time-begin": 360,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 30,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,

Keybase proof

I hereby claim:

  • I am bitsandbooks on github.
  • I am bitsandbooks (https://keybase.io/bitsandbooks) on keybase.
  • I have a public key whose fingerprint is BF02 A42C B992 9B01 5FC2 BB20 7C07 9884 F4CE FB5D

To claim this, I am signing this object:

FROM phusion/baseimage:latest
MAINTAINER Rob Dumas <robdumas@gmail.com>
ENV LC_ALL=C
ENV DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update && apt-get upgrade -y &&\
groupadd -r openldap &&\
useradd -r -g openldap openldap &&\
@bitsandbooks
bitsandbooks / courses-slash-detail.html
Created January 24, 2016 04:41
Django static and media folders
<h1>{{ course.name }}</h1>
<p><strong>Description:</strong> {{ course.description }}</p>
<p><strong>Student Type:</strong> {{ course.get_student_type_display }}</p>
<p><strong>Image</strong> /{{ course.featured_image.url }}<br>
<img src="/{{ course.featured_image.url }}"></p>
<p><strong>Instructor:</strong> {{ course.instructor }}</p>
[username@machine ~]# lastb
root ssh:notty 46.100.50.143 Wed Mar 9 07:45 - 07:45 (00:00)
root ssh:notty 125.88.177.87 Wed Mar 9 07:30 - 07:30 (00:00)
root ssh:notty 125.88.177.87 Wed Mar 9 07:30 - 07:30 (00:00)
root ssh:notty 125.88.177.87 Wed Mar 9 07:30 - 07:30 (00:00)
root ssh:notty 125.88.177.87 Wed Mar 9 07:30 - 07:30 (00:00)
root ssh:notty 125.88.177.87 Wed Mar 9 07:30 - 07:30 (00:00)
root ssh:notty 125.88.177.87 Wed Mar 9 07:30 - 07:30 (00:00)
root ssh:notty 125.88.177.87 Wed Mar 9 07:30 - 07:30 (00:00)
root ssh:notty 125.88.177.87 Wed Mar 9 07:30 - 07:30 (00:00)
@bitsandbooks
bitsandbooks / template.php
Created August 9, 2016 03:22
Template Example
<?php
/**
* @file
* template.php
*/
function sitename_menu_tree__menu_block__1(array $variables) {
return '<ul class="menu">' . $variables['tree'] . '</ul>';
}
@bitsandbooks
bitsandbooks / lastbusers.txt
Last active December 16, 2016 21:56
Lastb Failed Users
List of Usernames and # of Attempts to
Log In Over the Last Few Weeks
Att, User
– – – – –
4974 root
320 admin
316 oracle
248 test
218 postgres