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 | |
sudo apt update -y | |
sudo apt upgrade -y | |
sudo apt install zsh git-core | |
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh | |
sudo chsh -s $(which zsh) ubuntu | |
sudo apt install -y nginx |
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 NiceScale (lowerBound, upperBound, _maxTicks) { | |
var maxTicks = _maxTicks || 10; | |
var tickSpacing; | |
var range; | |
var niceLowerBound; | |
var niceUpperBound; | |
calculate(); |
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
@echo off | |
C:\Users\<user>\.babun\cygwin\bin\env.exe CHERE_INVOKING=1 /bin/zsh - |
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'; | |
var path = require('path'); | |
var gulp = require('gulp'); | |
var conf = require('./conf'); | |
var fs = require('fs'); | |
var url = require("url"); | |
var browserSync = require('browser-sync'); | |
var browserSyncSpa = require('browser-sync-spa'); |
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
<style type="text/css"> | |
/* Client-specific Styles */ | |
#outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */ | |
body{-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin-top: 15px; margin-left: 10px; margin-bottom: 30px; margin-right: 10px; padding:0;} | |
/* Prevent Webkit and Windows Mobile platforms from changing default font sizes, while not breaking desktop design. */ | |
.ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */ | |
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing. */ | |
body .signature-container { margin: 0px 0px !important; margin-top: 10px !important; } | |
.signature-container a:link {color:#F17E29; text-decoration:underline;} |
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
<?php | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2012-2013 Andy Hausmann <[email protected]>, sota studio | |
* All rights reserved | |
* | |
* This script is part of the TYPO3 project. The TYPO3 project is | |
* free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by |
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 | |
function say { | |
printf "\n--------------------------------------------------------\n" | |
printf "\t$1" | |
printf "\n--------------------------------------------------------\n" | |
} | |
say "Prepare machine..." |
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
$($0).find('path').each(function(idx, path) { | |
var coords = $(path) | |
.attr('d') | |
.split(' ') | |
.filter(function(el) { | |
return /^(M|L)/.test(el); | |
}) | |
.map(function(el) { | |
return el.replace(/^(M|L)/, '').split(','); | |
}); |
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
# Based on https://gist.github.com/fernandoaleman/5083680 | |
# Start the old vagrant | |
$ vagrant init ubuntu_saucy | |
$ vagrant up | |
# You should see a message like: | |
# [default] The guest additions on this VM do not match the install version of | |
# VirtualBox! This may cause things such as forwarded ports, shared | |
# folders, and more to not work properly. If any of those things fail on |
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
# If you are using Windows as your Vagrant host OS, there is a limitation in Windows where any given folder path | |
# cannot be more than 260 characters long. This becomes a problem with Vagrant because, for example, if you | |
# install a Linux guest environment and try to create a deep directory structure in a synced folder, Linux will | |
# throw errors. This is because the synced folder is under the constraints of the Windows host. A common example | |
# of this happening is when installing node.js modules. NPM is known for creating some very long, deep | |
# folder paths because each node depenency has it's own dependencies, which have their own dependencies, etc... | |
# | |
# This gist solves the problem and works around the Windows 260 character path limit. Add it to your Vagrantfile. | |
# | |
# NOTE: This bug in Vagrant was fixed in 1.7.3, but reverted back in 1.7.4 due to some regression bugs. |