This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
watchlist=/opt/scripts/watch-cult-merch.txt | |
sendAlert() { | |
echo "STOCKED! sending sms alert" | |
curl https://api.dev.ratatxt.com/outbox \ | |
-u 'ak_somekeys:' \ | |
-X POST -d '{ | |
"device_id": "c2fslnn0eqtq26rmcn2g", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ver=$1 | |
if [ -z "$ver" ] | |
then | |
echo go version required | |
exit | |
fi | |
echo Downloading go version $ver... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"strings" | |
"net/http" | |
"io/ioutil" | |
"os/exec" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"fmt" | |
"os" | |
"net" | |
"net/http" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<keymap version="1" name="Sublime Text win" parent="Sublime Text"> | |
<action id="ActivateFavoritesToolWindow" /> | |
<action id="ActivateProjectToolWindow" /> | |
<action id="ActivateRunToolWindow" /> | |
<action id="ChangesView.ShelveSilently" /> | |
<action id="DatabaseView.SqlGenerator" /> | |
<action id="DuplicatesForm.SendToLeft" /> | |
<action id="DuplicatesForm.SendToRight" /> | |
<action id="FileChooser.GotoHome" /> | |
<action id="FileChooser.GotoModule" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const ImmortalSSE = url => { | |
let url | |
let instance | |
let listeners = [] | |
const timeout = 2000 | |
const create = () => { | |
if (url == undefined) { | |
return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apache 2 & PHP 5.6 | |
cd ~ | |
yum update -y | |
yum install -y httpd httpd-devel | |
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm | |
yum install -y php56w php56w-opcache php56w-devel php56w-gd php56w-imap php56w-mcrypt php56w-mysql php56w-pdo php56w-pear | |
yum install -y php56w-pecl-geoip php56w-pgsql php56w-bcmath php56w-mbstring git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget -q https://github.com/atom/atom/releases/latest -O /tmp/latest | |
wget --progress=bar -q 'https://github.com'$(cat /tmp/latest | grep -o -E 'href="([^"#]+)atom-amd64.deb"' | cut -d'"' -f2 | sort | uniq) -O /tmp/atom-amd64.deb -q --show-progress | |
sudo dpkg -i /tmp/atom-amd64.deb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'backing up ...' | |
# sql dump all | |
mysqldump -v -u dev -p --all-databases > mysql-`date '+%d-%m-%Y'`.sql | |
# project files | |
tar jcvf project-`date '+%d-%m-%Y'`.tar.bz2 /project/ | |
# put all together | |
tar jcvf backup-`date '+%d-%m-%Y'`.tar.bz2 project-* mysql-* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'go install ...' | |
wget https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz; | |
tar xvf go1.5.1.linux-amd64.tar.gz; | |
sudo mv go /usr/local | |
export PATH=$PATH:/usr/local/go/bin | |
sudo mkdir /project/go | |
export GOPATH=/project/go | |
echo 'done!' |
NewerOlder