This file contains 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
### pip install youtube-dl | |
### rip "https://www.youtube.com/watch?v=7jR1JWQwqNo" | |
rip() { | |
youtube-dl -f bestaudio --extract-audio --audio-format mp3 --audio-quality 0 "$1" | |
} |
This file contains 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
'use strict'; | |
const fs = require('fs'); | |
const path = require('path'); | |
const webpack = require('webpack'); | |
const resolve = require('resolve'); | |
const PnpWebpackPlugin = require('pnp-webpack-plugin'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); | |
const InlineChunkHtmlPlugin = require('react-dev-utils/InlineChunkHtmlPlugin'); |
This file contains 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
function installTeamCityAgent() | |
{ | |
TARGET=~/Desktop/TC/ | |
CONF=conf/buildAgent.properties | |
rm -rf $TARGET | |
cd /tmp/ | |
rm buildAgent.zip | |
curl -O https://teamcity.illumina.com/update/buildAgent.zip |
This file contains 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
PIP= | |
# Install python3 you don't have python3: | |
if python -V 2>&1 | grep -qE "3\.[0-9]\.[0-9]"; then | |
echo "python3 found as system python. we can just use pip." | |
PIP=pip | |
elif command -v python3 1>/dev/null; then | |
echo "python3 found on path, wiring in pip3" | |
PIP=pip3 | |
else | |
echo "We need python3" |
This file contains 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
sudo launchctl unload /Library/launchdaemons/com.cylance.agent_service.plist |
This file contains 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
import numpy as np | |
import pandas as pd | |
import inspect | |
import os | |
import datetime as dt | |
import pylab | |
import subprocess | |
import tempfile | |
import plotly.plotly as py |
This file contains 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
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update && brew upgrade | |
brew tap homebrew/science | |
brew install octave | |
## Install Python3 / Jupyter | |
brew install python3 |
This file contains 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
BUILDDIR=/tmp/cudabuild | |
mkdir -p $BUILDDIR | |
curl -O https://gist.githubusercontent.com/bo01ean/763a604d30c257b2589d530eb7f40027/raw/6583646eed75ebf945da246e56f549455132adef/install.sh | |
curl -O https://gist.githubusercontent.com/bo01ean/f42540ae42c67b39f1f386a3cd6f970f/raw/6b2663389ba44fc3ccc1ed1f65e17e2408ebaff3/commandMaps.sh | |
chmod +x install.sh commandMaps.sh | |
sudo ./install.sh |
This file contains 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 | |
# | |
# chkconfig: 2345 55 25 | |
# Description: Nginx init.d script, put in /etc/init.d, chmod +x /etc/init.d/nginx | |
# For Debian, run: update-rc.d -f nginx defaults | |
# For CentOS, run: chkconfig --add nginx | |
# | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all |
This file contains 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
{% set local_source = '/usr/local/src' -%} | |
{% set output_folder = '/tmp' -%} | |
{% set nginx = pillar.get('nginx', {}) -%} | |
{% set openresty_config = nginx.get('openresty', {}) -%} | |
{% set openresty_version = openresty_config.get('version', '1.9.7.5') -%} | |
{% set openresty_checksum = openresty_config.get('checksum', 'sha1=e4313c35364c4551523eeb751fcfcc4b32c89b56') -%} | |
{% set openresty_package = 'ngx_openresty-' + openresty_version + '.tar.gz' -%} |
NewerOlder