Skip to content

Instantly share code, notes, and snippets.

View PandorasFox's full-sized avatar
🦊
Sleepy fox; not currently doing much OSS work.

cassandra fox PandorasFox

🦊
Sleepy fox; not currently doing much OSS work.
View GitHub Profile
// ==UserScript==
// @name sis chrome fix
// @namespace http://tampermonkey.net/
// @version 0.1
// @description fixes logging in to rpi's SIS on chrome by disabling autocomplete/fill
// @author You
// @match https://sis.rpi.edu/rss/*Login
// @grant none
// ==/UserScript==
#!/bin/zsh
scrot /tmp/screenshot.png
i3lock-color -c 333333
convert /tmp/screenshot.png -blur 0x5 /tmp/screenshot.png
pkill i3lock-color && i3lock-color -i /tmp/screenshot.png --insidevercolor=BA55D3ff --insidewrongcolor=EE00EEff --i nsidecolor=00000000 --ringvercolor=8B008Bff --ringwrongcolor=8B008Bff --ringcolor=8B008Bff --textcolor=8B008Bff --k eyhlcolor=BA55D3ff --bshlcolor=EE00EEff --separatorcolor=EE00EEff -s

RPI-Link

Why this is needed

RPI's online communities (most notably: its subreddit, /r/rpi, but also including yikyak) suffer from high amounts of toxicity. This is a concern of those in charge of moderating the communities, and an effort has been made to help cut down on some of these problems (i.e. sockpuppet accounts, brigading, trolling, completely anonymous harassment).

How it works

There are a few core parts to the linking system. It allows for account creation using a sign-in through a supported service (at this time: discord, reddit, and RPI's CAS). Once this has been done, users can link remaining services to their account on the site.

.RichEditor div[contenteditable],
.RichEditor div[contenteditable]:focus,
.RichEditor div[contenteditable].fake-focus {
color: white;
}
.js-tweet-text-container {
color: white;
}
.ProfileSidebar .TweetImpressionsModule,
.ProfileSidebar .ProfileLifelineInfo,
TOPDIR=$(shell pwd)
INSTALL=install
PREFIX=/usr
SYSCONFDIR=/etc
PKG_CONFIG=pkg-config
MANDIR=/usr/share/man
# Check if pkg-config is installed, we need it for building CFLAGS/LIBS
ifeq ($(shell which $(PKG_CONFIG) 2>/dev/null 1>/dev/null || echo 1),1)
@PandorasFox
PandorasFox / PKGBUILD
Last active December 6, 2017 17:47
fixed PKGBUILD for i3lock using autotools
# Maintainer: Brandon Clifford <brandon099 at gmail dot com>
_gitname=i3lock-color
pkgname="$_gitname-git"
pkgver=r415.b0056a5
pkgrel=1
pkgdesc="An improved screenlocker based upon XCB and PAM with color configuration support"
arch=('i686' 'x86_64')
url="https://github.com/PandorasFox/i3lock-color"
license=('MIT')

Keybase proof

I hereby claim:

  • I am PandorasFox on github.
  • I am pandorasfox (https://keybase.io/pandorasfox) on keybase.
  • I have a public key whose fingerprint is 00C8 F58D 8627 B3D1 D8ED F4CB 55DB 77C2 A03E 1EF5

To claim this, I am signing this object:

/*
* gcc ./tmp.c -lxcb -lxcb-xkb -lxkbcommon -lxkbcommon-x11 -g -fsanitize=address -fno-omit-frame-pointer
*/
#include <assert.h>
#include <err.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Soot started on Tue Feb 20 23:26:21 EST 2018
excludedPackages: [java., sun., javax., com.sun., com.ibm., org.xml., org.w3c., apple.awt., com.apple., android.support.]
java.lang.Error: Error loading java.lang.CharSequence
at soot.JastAddJ.PathPart.getCompilationUnit(PathPart.java:128)
at soot.JastAddJ.Program.getCompilationUnit(Program.java:858)
at soot.JastAddJ.Program.getLibCompilationUnit_compute(Program.java:1531)
at soot.JastAddJ.Program.getLibCompilationUnit(Program.java:1514)
at soot.JastAddJ.Program.lookupLibType_compute(Program.java:1479)
#!/bin/sh
./trans.py | xclip -selection clipboard
xclip -selection clipboard -o | ./read_stdin.py
# 0x1f3f3
# 0xfe0f
# 0x200d
# 0x26a7
# 0xfe0f