Skip to content

Instantly share code, notes, and snippets.

👌
yolo

Liam Stanley lrstanley

👌
yolo
Block or report user

Report or block lrstanley

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
@lrstanley
lrstanley / mysite.service
Created Mar 25, 2019
example simple systemd file (go sites?)
View mysite.service
; can go in /etc/systemd/system/mysite.service
; make sure to:
; $ systemctl enable <app>
; $ systemctl start <app>
[Unit]
Description=mysite
Wants=network-online.target
After=network-online.target
[Service]
@lrstanley
lrstanley / ddns.sh
Created Dec 10, 2018
Simple Cloudflare DDNS (Dynamic DNS) updating script in bash
View ddns.sh
#!/bin/bash
# Copyright (c) 2018 Liam Stanley <me@liamstanley.io>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@lrstanley
lrstanley / twss.json
Created Jun 8, 2018
TWSS entries for Code (Python IRC bot)
View twss.json
{"lines": ["why the fck would you pull out right when im coming", "come on guys 69 isnt even that hard someone do 69 infront of the class now", "hes not going to be able to get in the backdoor theres a stool in the way", "just no matter what keep making me take it even if you have to shove it down my throat", "make sure your grip on the shaft is tight and your strokes long and hard", "would you like the black one or the white one she answered it doesnt matter ill suck on both", "you have to go in hard and come out wet and breathless youll feel good when youre done", "i was lying on my back in bed playing with it and it exploded in my face", "best 4 inches ever", "hurry up its getting hard its getting hard without thinking i respond im trying but its getting all over my hands", "i cant go 2 minutes without getting railed from behind", "god i love cox", "its so awkward i hate how he always tries to have a conversation with me while hes in my mouth", "if you play with it in front of me im going to want to touch
@lrstanley
lrstanley / github-backup.sh
Created Jun 6, 2018
GitHub backup script, which utilizes python-github-backup
View github-backup.sh
#!/bin/bash
USER="${1:?usage: $0 <user> <archive>}"
ARCHIVE_LOC="${2:?usage: $0 <user> <archive>}"
which github-backup > /dev/null 2>&1 || pip install github-backup
if [ -z "$GH_BACKUP_TOKEN" ];then
echo 'missing $GH_BACKUP_TOKEN...'
exit 1
View keybase.md

Keybase proof

I hereby claim:

  • I am lrstanley on github.
  • I am lstanley (https://keybase.io/lstanley) on keybase.
  • I have a public key ASDXjT2anLGva2hcUOnyRZQokE_fN-yT1n66GzU3pPy6jgo

To claim this, I am signing this object:

@lrstanley
lrstanley / exiclean-old.py
Created Jun 25, 2016
Old Exiclean version, in Python. Here for reference.
View exiclean-old.py
#!/usr/bin/python
"""
Exiclean -- Exim mail queue cleaner/spam removal script
-----------------------------------------------------------------------------
LICENSE: The MIT License (MIT)
Copyright (c) 2016 Liam Stanley <me@liamstanley.io>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@lrstanley
lrstanley / tunnel_4to6.py
Last active Oct 17, 2019
How to use tunnelbroker tunnels on KVM/OpenVZ/etc. (Debian)
View tunnel_4to6.py
"""
HE-2-4 Copyright (C) 2014 Liam Stanley
License: Eiffel Forum License, version 2
- https://links.ml/FFa1
Website: https://liamstanley.io
NOTE: THIS IS FOR KVM BASED SERVERS ONLY.
I'M NOT ADDING CUSTOM CHECKS TO SEE IF
YOU'RE USING KVM.
"""
@lrstanley
lrstanley / shorten.py
Last active Aug 29, 2015
Weechat script to auto convert links into a shortened link, using http://links.ml (Put this in ~/.weechat/python/shorten.py)
View shorten.py
import weechat as w
import re, urllib, urllib2, json
weechat = w
SCRIPT_NAME = "shorten"
SCRIPT_AUTHOR = "Liam Stanley <me@liamstanley.io>"
SCRIPT_VERSION = "0.2"
SCRIPT_LICENSE = "GPL3"
SCRIPT_DESC = "Convert/Shorten all links to http://links.ml/ links"
@lrstanley
lrstanley / jsonapi-v2.py
Last active Aug 29, 2015
JSONAPI basic HTTP Python API
View jsonapi-v2.py
#!/usr/bin/python
import json
from hashlib import sha256
from urllib2 import urlopen
from urllib import quote
# https://github.com/alecgorge/jsonapi/wiki/Analyzing-the-jsonapi-request-and-response-format
# http://alecgorge.github.io/jsonapi/
# NEW API USAGE: http://mcjsonapi.com/apidocs/
@lrstanley
lrstanley / install_supervisor.sh
Created Jan 26, 2014
Supervisord basic install instructions for Debian (Ubuntu)
View install_supervisor.sh
#!/bin/bash
# First, install supervisor. Don't install through your package manager because those packages are unupdated!
sudo apt-get install python-setuptools python-pip curl
easy_install supervisor
# Use pip too
pip install supervisor
You can’t perform that action at this time.