Skip to content

Instantly share code, notes, and snippets.

View Wagahai's full-sized avatar

Wagahai

  • St. Louis, MO
View GitHub Profile

i3-gaps notes

As root

apt install terminator npm nodejs xterm dbus-x11
systemd-machine-id-setup
npm install --global base16-builder 
add-apt-repository ppa:kgilmer/speed-ricer
apt-get update
apt install i3-gaps i3-snapshot i3xrocks polybar xrescat
@Wagahai
Wagahai / crouton-notes.md
Last active January 3, 2020 17:57
Crouton notes

Crouton notes

Install crouton

  • Enable Dev mode on tablet
  • Install extension Xiwi target
  • Download the crouton executable to ~Downloads
  • CTRL-ALT-T to get a prompt
  • Type: shell
  • Add crouton: sudo sh ~/Downloads/crouton -r xenial -t x11,chrome,xorg,xiwi,keyboard,touch,unity,xfce
@Wagahai
Wagahai / nifi-basic-mft-demo.md
Last active June 29, 2020 12:46
Nifi for Managed File Transfer

Complete overkill, but fun to learn and play with..

Basic steps:

  • Install NiFi
  • Secure NiFi (see NiFi Toolkit for home use)
  • Create process group for the transfer
  • Drag "ListSFTP" to the canvas, set host, port, user, pass.
  • Drag "FetchSFTP" to the canvas, set host, port, user, pass.. set remote file to ${path}/{file}
    Also set the settings tab to terminate the relationship for everything except success.
  • Drag "PutFile" to the canvas, set directory to put the files in.
    On the settings tab, click the terminate boxes for both Success and Failure.
    (Alternately you cansend to SFTP or other destinations)
  • Drag the arrow from ListSFTP to FetchSFTP and set it to Success when prompted.

Consolidated notes for Ubuntu 18 as of 1/25/2020

Ubuntu

Install erlang requirement

echo "deb https://dl.bintray.com/rabbitmq/debian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/rabbitmq.list
apt update -y
apt install -y erlang-base erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key erlang-runtime-tools erlang-snmp erlang-ssl erlang-syntax-tools erlang-tftp erlang-tools erlang-xmerl
@Wagahai
Wagahai / mplayer-rtsp-pi.md
Created December 26, 2021 23:18
Using mplayer on raspberry pi for cctv monitoring

Since omxplayer seems depreciated on the newer Raspbian installs, needed a way to stream 4xRTSP streams to console, without X11
My TV is connected on the HDMI port and is 1920x1080
My camera system is a LOREX with RTSP streams available.

A command line sample for mplayer

mplayer -nosound -framedrop -ao null -vo fbdev2 'rtsp://USER:PASS@192.168.1.X:554/cam/realmonitor?channel=CHANN&subtype=1' -vf scale=958:500 -geometry 0:0
@Wagahai
Wagahai / DiabloImmortal-2.md
Last active January 24, 2023 02:51
Create a junction directory to multibox diablo immortal

Using directory junction instead of copying the entire DI directory

mklink /J "C:\Program Files (x86)\Diablo Immortal2" "C:\Program Files (x86)\Diablo Immortal"

@Wagahai
Wagahai / generic-bash-functions.sh
Last active December 15, 2023 21:26
generic-bash-functions
# Most recent version is at https://gist.githubusercontent.com/Wagahai/3ee960f210252488322f24a31d15b6af/raw/generic-bash-functions.sh
# Last updated: 2023-12-15
# Include this file to have access to the various functions it provides
# The script allows for a custom prefix before the command
# ie: it-commandname
cmdprefix="it"
enablecolors=true
# If not running interactively, don't do anything
case $- in