Skip to content

Instantly share code, notes, and snippets.

View kdoran's full-sized avatar

Kevin Doran kdoran

  • Billiam
  • Various
View GitHub Profile
<html>
<head>
<title>Advanced</title>
<script type="text/javascript"
src="//sheridan.ugc.bazaarvoice.com/bvstaging/static/9516-en_au/bvapi.js">
</script>
<script type="text/javascript">
$BV.configure("global", {
submissionContainerUrl: "http://gavinhealy.com/bv/advanced.php?"
});
@kdoran
kdoran / Installing lightgbm on Ubuntu 16 Xenial with GPU Support.sh
Last active August 3, 2017 19:55
Installing lightgbm on Ubuntu 16 Xenial with GPU Support
sudo apt-get update
apt-get install -y python-pip nginx npm nodejs-legacy supervisor opencl-headers libboost-all-dev libboost-dev libboost-system-dev libboost-filesystem-dev ocl-icd-libopencl1 ocl-icd-opencl-dev git
apt-get install software-properties-common
add-apt-repository ppa:george-edison55/cmake-3.x
apt-get update
export BOOST_ROOT=/usr/include/boost
sudo apt-get install cmake
# this is where it gets ugly, tried: sudo add-apt-repository ppa:kylelutz/compute; sudo apt-get install boost-compute; with no dice.
# kept getting: boost/compute/core.hpp: No such file or directory
@kdoran
kdoran / backup-dbs.sh
Last active January 14, 2019 22:00
backup all couchdbs except system dbs every 30 days
#!/bin/bash
TIMESTAMP=$(date +"%d")
BACKUP_DIR="./backups"
export $(cat .env)
COUCHDB=$COUCHDB_USER:[email protected]:5984
mkdir -p "$BACKUP_DIR"
dbs=`curl -X GET http://$COUCHDB/_all_dbs | grep -Po '[A-Za-z0-9_.]*'`