most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
*~ | |
*.pyc | |
.vagrant | |
venv |
def m = "1234 abc" =~ /^(\d+)/ | |
def n = "abc 1234" =~ /^(\d+)/ | |
println (m.find()?m.group():"not matched") | |
println (n.find()?n.group():"not matched") | |
This tutorial guides you through creating your first Vagrant project.
We start with a generic Ubuntu VM, and use the Chef provisioning tool to:
Afterwards, we'll see how easy it is to package our newly provisioned VM
@echo off | |
SETLOCAL EnableDelayedExpansion | |
set _PELICAN=$pelican | |
set _PELICANOPTS=$pelicanopts | |
set _BASEDIR=%cd% | |
set _INPUTDIR=%_BASEDIR%/content | |
set _OUTPUTDIR=%_BASEDIR%/output | |
set _CONFFILE=%_BASEDIR%/pelicanconf.py |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> | |
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<iframe width="420" height="315" id="video"> |
node { | |
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
echo 'No quotes, pipeline command in single quotes' | |
sh 'echo $BUILD_NUMBER' // 1 | |
echo 'Double quotes are silently dropped' | |
sh 'echo "$BUILD_NUMBER"' // 1 | |
echo 'Even escaped with a single backslash they are dropped' | |
sh 'echo \"$BUILD_NUMBER\"' // 1 | |
echo 'Using two backslashes, the quotes are preserved' | |
sh 'echo \\"$BUILD_NUMBER\\"' // "1" |