Skip to content

Instantly share code, notes, and snippets.

View slickplaid's full-sized avatar

Evan slickplaid

View GitHub Profile
@slickplaid
slickplaid / install_rsync_windows_gitbash.md
Last active February 18, 2019 17:41
Install Rsync on Windows's Git Bash
@slickplaid
slickplaid / extract.bat
Created January 13, 2019 21:21
Extract all compressed files, recursively in windows
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
)
<?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 December 11, 2018 18:52
Install gitlab-ci runner for ChromeOS
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 December 11, 2018 18:37
Install facebook/watchman on ChromeOS 72.0.3625.0 dev 64-bit pixel slate
sudo apt update
sudo apt install \
libtool \
m4 \
automake \
pkg-config \
libcrypto++-dev \
python-dev
git clone https://github.com/facebook/watchman.git
@slickplaid
slickplaid / install_steam_chromeos.sh
Created July 31, 2018 20:26
Install Steam on ChromeOS
#!/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 July 30, 2018 17:46
Raspberry PI Temperature Sensor BME280 Installation Script
#!/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 01:59
Create an AP on a raspberry pi

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
045e4a129a42d99765944f99c25c71c8e6a91417f7b8514d80e1447ebf230fc0c70f8c3ac2a0ab3077f0a6414541698cdb8dd8f10cf9b4f293b801bb7cf6509667
@slickplaid
slickplaid / notes.sh
Created October 2, 2017 16:57
CLI Notes => ~/notes.md
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