Skip to content

Instantly share code, notes, and snippets.

@rektide
rektide / defense.md
Created April 12, 2019 16:18
Digital Defense Against the Dark Arts

Editor: all that follows is a backed up post. Seems like it could be useful in a lot of settings, as well as when dealing with the terroristic Fox News Nazis.

ok, I wrote up a guide to what to do if you're targeted by the right-wing smear machine. (remember that your relative importance doesn't matter AT ALL; they love crushing the defenseless even more.) https://mobile.twitter.com/chick_in_kiev/status/1116499716911652864

What to do if you find yourself targeted online:

  1. Lock down your social media accounts for 24-48 hours (the approximate period of a shitstorm)- ALL OF THEM, not just Twitter.
  2. Check out http://crashoverridenetwork.com for a comprehensive guide to digital safety.
  3. If you're getting death threads, use a service like http://abine.com/deleteme or privacyduck to wipe info from people-finding websites like whitepages and spokeo.
#!/bin/sh
# uses https://github.com/osm0sis/mkbootimg
# some guidance via stackoverflow.com/questions/29803996/repacak-existing-boot-img-using-mkbootimg-cyanogenmod-12-1-lollipop
set -ex
CM=~/Downloads/cm-12.1-20150730-UNOFFICIAL-fireballx.zip
# extract: unzip, unpackbootimg, zcat, cpio
test -d cm || (mkdir cm && cd cm && unzip $CM)
test -d unpack || (mkdir unpack && cd unpack && unpackbootimg -i ../cm/boot.img -o .)
test -d ramdisk-cpio || (mkdir ramdisk-cpio && cd ramdisk-cpio && zcat ../unpack/boot.img-ramdisk.gz > ramdisk.cpio)
@rektide
rektide / build.log
Created November 4, 2018 22:39
lede build error
make[3]: Entering directory '/usr/local/src/lede/package/base-files'
rm -f /usr/local/src/lede/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/linux-ipq806x/base-files/.configured_*
rm -f /usr/local/src/lede/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/stamp/.base-files_installed
[ -s /usr/local/src/lede/key-build -a -s /usr/local/src/lede/key-build.pub ] || /usr/local/src/lede/staging_dir/host/bin/usign -G -s /usr/local/src/lede/key-build -p /usr/local/src/lede/key-build.pub -c "Local build key"
[ -s /usr/local/src/lede/key-build.ucert ] || /usr/local/src/lede/staging_dir/host/bin/ucert -I -c /usr/local/src/lede/key-build.ucert -p /usr/local/src/lede/key-build.pub -s /usr/local/src/lede/key-build
Makefile:205: recipe for target '/usr/local/src/lede/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/linux-ipq806x/base-files/.configured_4d5248d1a6ded9ff903db6e28899f202_8e081b74cf069e1e6800a5bbcbb282f0' failed
make[3]: *** [/usr/local/src/lede/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eab
@rektide
rektide / css-cascade.markdown
Created October 28, 2018 19:01
CSS Cascade
@rektide
rektide / getter-setter-ideal.js
Created October 12, 2018 19:19
Properties the declarative way
const $frequency = Symbol.for("Overthruster:frequency")
export class Overthruster
{
constructor({frequency}={}){
this[$frequency]= frequency
}
get frequency(){
return this[ $frequency]
}
import { makeFoo, makeBar } from "./providers.js"
/**
* Create property `name` on `obj` that will run `provider`'s factory method the first time
*/
function makeLazyGetter(obj, name, provider){
let value
Object.defineProperty(obj, name, {
get: function(){
if(!value){
@rektide
rektide / cargo-build-log
Last active September 9, 2018 23:03
issues compiling input.rs
Downloading libc v0.2.43
Downloading bitflags v1.0.4
Downloading udev v0.2.0
Downloading libudev-sys v0.1.4
Downloading pkg-config v0.3.14
Compiling pkg-config v0.3.14
Compiling input-sys v1.9.0 (file:///home/rektide/src/archive/input.rs/input-sys)
Compiling libc v0.2.43
Compiling bitflags v1.0.4
Compiling libudev-sys v0.1.4
@rektide
rektide / basic
Last active January 5, 2018 04:39
Trying to launch xlogo in xpra via the system service
$ xpra start --start=xlogo --start-via-proxy=yes
2018-01-04 22:39:09,965 server failure: disconnected before the session could be established
2018-01-04 22:39:09,966 server requested disconnect: server error (error accepting new connection)
2018-01-04 22:39:09,971 Error: printing disabled:
2018-01-04 22:39:09,971 No module named cups
xpra initialization error:
failed to start-via-proxy: unknown general failure
$ sudo journalctl -xef -u xpra
Jan 04 22:39:09 nanomachine xpra[17604]: New unix-domain connection received on /run/xpra/system
@rektide
rektide / terminal.log
Created November 27, 2017 01:26
xpra start error
$ xpra start :99
Warning: invalid option: 'shadow-fullscreen'
Warning: cannot use the system proxy for 'start' subcommand,
failed to connect to '/run/xpra/system':
[Errno 111] Connection refused
Warning: invalid option: 'shadow-fullscreen'
InitException: cannot open log file '${HOME}/.xpra/:99.log': [Errno 2] No such file or directory: '${HOME}/.xpra/:99.log'
xpra initialization error:
cannot open log file '${HOME}/.xpra/:99.log': [Errno 2] No such file or directory: '${HOME}/.xpra/:99.log'
@rektide
rektide / hipchat-apt-key-add.log
Last active August 2, 2017 20:27
hipchat install on Debian/stretch
wget -O - https://atlassian.artifactoryonline.com/atlassian/api/gpg/key/public | sudo apt-key add -
--2017-08-02 16:01:43-- https://atlassian.artifactoryonline.com/atlassian/api/gpg/key/public
Resolving atlassian.artifactoryonline.com (atlassian.artifactoryonline.com)... 34.225.205.210, 52.44.119.99
Connecting to atlassian.artifactoryonline.com (atlassian.artifactoryonline.com)|34.225.205.210|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1641 (1.6K) [text/plain]
Saving to: 'STDOUT'
- 100%[================================================>] 1.60K --.-KB/s in 0s