Skip to content

Instantly share code, notes, and snippets.

Avatar

Evan slickplaid

View GitHub Profile
@slickplaid
slickplaid / install_rsync_windows_gitbash.md
Last active Feb 18, 2019
Install Rsync on Windows's Git Bash
View install_rsync_windows_gitbash.md
@slickplaid
slickplaid / extract.bat
Created Jan 13, 2019
Extract all compressed files, recursively in windows
View extract.bat
FOR /D /r %%F in ("*") DO (
pushd %CD%
cd %%F
FOR %%X in (*.rar *.zip *.001) DO (
"C:\Program Files\7-zip\7z.exe" x -aos "%%X"
)
popd
)
View checkstyle2junit.xslt
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="UTF-8" method="xml"></xsl:output>
<xsl:template match="/">
<testsuite>
<xsl:attribute name="tests">
<xsl:value-of select="count(.//file)" />
</xsl:attribute>
<xsl:attribute name="failures">
@slickplaid
slickplaid / install-gitlab-runner.sh
Created Dec 11, 2018
Install gitlab-ci runner for ChromeOS
View install-gitlab-runner.sh
curl -sSL https://get.docker.com/ | sh
sudo usermod -aG docker $USER
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash
sudo apt install gitlab-ci-multi-runner
gitlab-runner
echo "Done :)"
@slickplaid
slickplaid / install-watchman.sh
Last active Dec 11, 2018
Install facebook/watchman on ChromeOS 72.0.3625.0 dev 64-bit pixel slate
View install-watchman.sh
sudo apt update
sudo apt install \
libtool \
m4 \
automake \
pkg-config \
libcrypto++-dev \
python-dev
git clone https://github.com/facebook/watchman.git
View install_steam_chromeos.sh
#!/usr/bin/env bash
wget https://steamcdn-a.akamaihd.net/client/installer/steam.deb
dpkg -i steam.deb
sudo apt install python python-apt konsole zenity
sudo dpkg -i steam.deb
sommelier -X --scale=0.6 --dpi=120 steam &
@slickplaid
slickplaid / install_bme280_raspi0.sh
Created Jul 30, 2018
Raspberry PI Temperature Sensor BME280 Installation Script
View install_bme280_raspi0.sh
#!/usr/bin/env bash
# raspi zero w
# 2->VIN
# 3->SDI
# 5->SCK
# 6->GND
# be in home
cd
@slickplaid
slickplaid / README.md
Last active May 8, 2018
Create an AP on a raspberry pi
View README.md

Raspi Atlas AP

This will set up a raspbian access point with all traffic masqueraded through eth0

Usage

wget -O- https://gist.githubusercontent.com/slickplaid/a55bdcd5ad9c1ecc933bb0fd245dbbf6/raw/df2b624fc25ee742d971f999de85a4f4e2daaaf8/raspi-chromecast-ap.sh | sh
View genesis_public_key
045e4a129a42d99765944f99c25c71c8e6a91417f7b8514d80e1447ebf230fc0c70f8c3ac2a0ab3077f0a6414541698cdb8dd8f10cf9b4f293b801bb7cf6509667
@slickplaid
slickplaid / notes.sh
Created Oct 2, 2017
CLI Notes => ~/notes.md
View notes.sh
notes() {
if [ ! -z "$1" ]; then
# Using the "$@" here will take all parameters passed into
# this function so we can place everything into our file.
echo "$@" >> "$HOME/notes.md"
else
# If no arguments were passed we will take stdout and place
# it into our notes instead.
cat - >> "$HOME/notes.md"
fi