gitflow | git |
---|---|
git flow init |
git init git commit --allow-empty -m "Initial commit" git checkout -b develop master |
gitflow | git
Select all and delete (actually move to buffer) | |
:%d | |
Select all and copy to buffer | |
:%y | |
Use p to paste the buffer. |
Follow below instructions to install svn 1.8 on OSX Yosemite 10.10/xcode6 install which comes with svn 1.7.17 | |
Open Terminal: | |
sudo -s | |
# | |
# create link to toolchain | |
# | |
ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain |
// OSX | |
open -na Google\ Chrome --args --disable-web-security --user-data-dir="/tmp/chrome_dev" |
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
sudo apt remove openssh-server
sudo apt install openssh-server
/etc/ssh/sshd_config
file by running the command sudo vi /etc/ssh/sshd_config
and do the following
Port
to 2222 (or any other port above 1000)UsePrivilegeSeparation
to noimport System; | |
import System.Windows.Forms; | |
import Fiddler; | |
// INTRODUCTION | |
// | |
// Well, hello there! | |
// | |
// Don't be scared! :-) | |
// |
// List all files in a directory in Node.js recursively in a synchronous fashion | |
var walkSync = function(dir, filelist) { | |
var fs = fs || require('fs'), | |
files = fs.readdirSync(dir); | |
filelist = filelist || []; | |
files.forEach(function(file) { | |
if (fs.statSync(dir + file).isDirectory()) { | |
filelist = walkSync(dir + file + '/', filelist); | |
} | |
else { |
(function () { | |
'use strict'; | |
var element = document.createElement('script'); | |
element.src = "https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.15.0/lodash.min.js"; | |
element.type = "text/javascript"; | |
document.head.appendChild(element); | |
})(); |
const traceProperty = (object, property) => { | |
let value = object[property]; | |
Object.defineProperty(object, property, { | |
get () { | |
console.trace(`${property} requested`); | |
return value; | |
}, | |
set (newValue) { | |
console.trace(`setting ${property} to `, newValue); | |
value = newValue; |