Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block raininja

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
raininja /
Created Jan 12, 2018 — forked from richieforeman/
Issue Your Own Self-Signed S/MIME Certs with OpenSSL
# Run this once
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
raininja / autossh.service
Last active Jan 13, 2018 — forked from thomasfr/autossh.service
Systemd service for autossh
View autossh.service
Description=Keeps a tunnel to '' open
# -p [PORT]
# -l [user]
# -M 0 --> no monitoring
# -N Just open the connection and do nothing (not interactive)
View default,purge.vcl
[root@b9a5f77b-fbaa-45b7-a775-938bc76ada64 /]# cat /opt/local/etc/varnish/*
vcl 4.0;
import std;
backend default {
.host = "";
.port = "8080";
raininja /
Created Jan 31, 2017 — forked from tancnle/
Setup mosh on Centos 6.x
# Update latest epel
sudo rpm -Uvh epel-release-6-8.noarch.rpm
# Download and build mosh
sudo yum -y install rpm-build rpmdevtools protobuf-compiler protobuf-devel libutempter-devel zlib-devel ncurses-devel openssh-clients perl-IO-Tty openssl-devel gcc gcc-c++
cd ~/rpmbuild/SOURCES
raininja / conkyrc
Created Oct 14, 2015
conky lua rings
View conkyrc
# — Conky settings — #
background yes
update_interval 1
cpu_avg_samples 2
net_avg_samples 3
override_utf8_locale yes
double_buffer yes
raininja / gist:e1c6a3f4b60ac550b77b
Last active Aug 29, 2015
Could not compile `rustc-serialize`.
View gist:e1c6a3f4b60ac550b77b
Compiling rustc-serialize v0.3.15
/home/raijin/.cargo/registry/src/ 201:64 warning: the trait `core::marker::Sized` is not implemented for the type `Self` [E0277]
/home/raijin/.cargo/registry/src/ fn decode<D: Decoder>(d: &mut D) -> Result<Self, D::Error>;
/home/raijin/.cargo/registry/src/ 201:64 help: run `rustc --explain E0277` to see a detailed explanation
/home/raijin/.cargo/registry/src/ 201:64 note: `Self` does not have a constant size known at compile-time
raininja / gist:6587733
Created Sep 16, 2013
pyqtgraph update issues
View gist:6587733
class MainWindow(QtGui.QMainWindow):
""" init Qt and draw stuff """
def __init__(self, parent=None):
super(MainWindow, self).__init__(parent)
area = DockArea()
dock1 = Dock("one", size=(150,550), hideTitle=True)
raininja / example.profile
Created Sep 3, 2013
example user profile
View example.profile
VOCZ Neural Impulse Actuator
raininja / gist:3652050
Created Sep 6, 2012 — forked from tranthamp/gist:2721326
D-Bus and Connman notes
View gist:3652050
# Connman Technology API examples: (Object Path: /net/connman/technology/<wifi/ethernet>, Interface: net.connman.Technology)
# GetProperties
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.GetProperties
# Scan
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.Scan
# Disable/Enable wifi
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.SetProperty string:Powered variant:boolean:true
You can’t perform that action at this time.