Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View slickplaid's full-sized avatar

Evan slickplaid

View GitHub Profile
@slickplaid
slickplaid / install_wkhtmltopdf.sh
Last active September 11, 2022 12:51
How to install version 0.12.0 (latest as of 5/10/13) of wkhtmltopdf on Ubuntu 12.04 LTS headless server.
sudo apt-get update && sudo apt-get upgrade -y;
sudo apt-get build-dep -y libqt4-gui libqt4-network libqt4-webkit;
sudo apt-get install -y openssl build-essential xorg git git-core libssl-dev libxrender-dev t1-xfree86-nonfree xfonts-scalable ttf-ubuntu-font-family ttf-mscorefonts-installer poppler-utils libqt4-dev qt4-dev-tools;
cd ~;
git clone git://gitorious.org/~antialize/qt/antializes-qt.git wkhtmltopdf-qt;
git clone git://github.com/antialize/wkhtmltopdf.git wkhtmltopdf;
cd wkhtmltopdf;
qmake-qt4;
cd ../wkhtmltopdf-qt;
git checkout 4.8.4;
@slickplaid
slickplaid / .gitignore
Created August 7, 2012 20:00
Multi-domain Socket.io
node_modules/
@slickplaid
slickplaid / zillowEstimate.js
Last active January 16, 2020 05:25
Get Zillow Estimate and Image from Zillow's API, Quick and Dirty
/* Quick and dirty, should be wrapped better but this is just a demo */
var app = app || {};
app.apikeys = app.apikeys || {};
app.urls = app.urls || {};
app.methods = app.methods || {};
app.apikeys.zillow = 'YOUR API KEY HERE';
app.urls.zillow = {
@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