Skip to content

Instantly share code, notes, and snippets.

View linuxdaemon's full-sized avatar

Aspen linuxdaemon

View GitHub Profile
#!/bin/bash
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
curl https://pyenv.run | bash
echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
@linuxdaemon
linuxdaemon / tngames-donate.txt
Last active November 3, 2019 13:12
Donation information for TotallyNotGames
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
My (linuxdaemon) crypto addresses:
Bitcoin (BTC):
371FvxhwKppPWtuDkPLgXu3kNfbiLwBi4f
Stellar Lumens (XLR):
GAJWVICKSYABB6TD7AMCGJVAH3OEDRJXMA6VSRWOWILBAHOBQCBYPQIJ
Monday, October 21, 2019
From: Aspen (linuxdaemon) <[email protected]>
To: Snoonet Staff <[email protected]>
Subject: Resignation
To begin, I will continue to maintain gonzobot/CloudBot and my other projects under
https://github.com/TotallyNotRobots/. I will also be active in the larger IRC community, and I hope to remain active as a Snoonet user.
The changes announced by Darren (prawnsalad) on Saturday, October 19, 2019 contained particularly troubling points, namely pushing for policies that would:
* irrevocably compromise the security of Snoonet and its users, in particular the push to quickly implement bug patches or features without proper regard to potential or known security issues in the hopes no one intent on attack will notice before they are addressed,
import re
import pytest
from mock import MagicMock
@pytest.fixture()
def seed():
import random
random.seed(654165151864151567878451235)
def get_ops(conn, channel_name):
channels = conn.memory["chan_data"]
channel = channels.getchan(channel_name)
ops = []
for nick, membership in channel.users.items():
for status in membership.status:
if status.prefix == '@':
ops.append(membership)
return ops
###
### UNTESTED - EXAMPLE ONLY
###
import asyncio
import shlex
import sys
import re
from subprocess import PIPE

Keybase proof

I hereby claim:

  • I am linuxdaemon on github.
  • I am linuxdaemon (https://keybase.io/linuxdaemon) on keybase.
  • I have a public key whose fingerprint is 5081 378F 1BC1 D4C2 6B5E 9269 2472 4102 7B22 7ED3

To claim this, I am signing this object:

javascript:(function()%7Bvar%20blogs%20%3D%20prompt(%22Blogs%20to%20block%22)%3Bvar%20arr%20%3D%20blogs.split(%22%20%22)%3Barr.forEach(function(element)%20%7BjQuery.ajax(%7Burl%3A%20'%2Fsvc%2Fblock%2Fadd'%2Ctype%3A%20'post'%2Cdata%3A%20%7Btumblelog%3A%20%24(%22div%5Bclass%3D'navigation_inner'%5D%20h3%20a%20span%22).innerHTML%2Cblocked_tumblelog%3A%20element%7D%2Cheaders%3A%20%7B'x-tumblr-form-key'%3A%20%24(%22meta%5Bname%3D'tumblr-form-key'%5D%22).getAttribute('content')%7D%7D)%3B%7D)%7D)()
var blogs = prompt("Blogs to block");
var arr = blogs.split(" ");
arr.forEach(function(element) {
jQuery.ajax({
url: '/svc/block/add',
type: 'post',
data: {
tumblelog: $("div[class='navigation_inner'] h3 a span").innerHTML,
blocked_tumblelog: element
},
import RPi.GPIO as GPIO
import time
import sys
GPIO.cleanup()
pins = {0: {"in": 8,"out": 10},
1: {"in": 7,"out": 11},
2: {"in": 13,"out": 15},
3: {"in": 19,"out": 21},