Skip to content

Instantly share code, notes, and snippets.

View displague's full-sized avatar
🐝
Mergin' 🎶 on a Sunday afternoon 🎶

Marques Johansson displague

🐝
Mergin' 🎶 on a Sunday afternoon 🎶
View GitHub Profile
# -*- mode: ruby -*-
# vi: set ft=ruby et sw=2 sts=2 ts=8:
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# config.vm.box = "box-cutter/debian75"
#config.vm.synced_folder 'test/', '/srv/test/'
['newark','dallas','fremont','atlanta'].each do |datacenter|
https://www.youtube.com/watch?v=e-QFj59PON4#t=0m15s
-/ohmmy/.
`-+shmMMMMMMMMMMmy/.
.:+ydNMMMMMMMMMMMMMMMMMMMMmy+.
-/oymNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNy+-
yMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNh:
:MNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNmdhms
`dNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMNmdysssssdy
@displague
displague / gist:a00b1acbb95b9461a895
Last active November 19, 2017 19:59
push vagrant-linode gem
vi lib/vagrant-linode/version.rb
vi CHANGELOG.md
git commit -m 'version 0.1.2' lib/vagrant-linode/version.rb CHANGELOG.md
git tag -s v0.1.2 # -u E2D09AB6
git push --tags origin master
gem build vagrant-linode.gemspec
gem push vagrant-linode-0.1.2.gem
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.0.2-x86_64-linode56 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
<!--- Child.cfc --->
<cfcomponent extends="Parent">
<!--- No init method here. Inherits from Parent.cfc --->
</cfcomponent>
"============================================================================
"File: cflint.vim
"Description: Syntax checking plugin for cflint-syntastic
"
"============================================================================
" See http://vimdoc.sourceforge.net/htmldoc/quickfix.html#efm-ignore
"
" Sample Follows
"
"
@displague
displague / mvn-install.log
Created March 30, 2015 00:05
cflint mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building CFLint 0.4
[INFO] ------------------------------------------------------------------------
[WARNING] The artifact ant:ant:jar:1.7.0 has been relocated to org.apache.ant:ant:jar:1.7.0
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ CFLint ---
[INFO] Deleting /home/displague/src/CFLint/target
[INFO]
<pre>
<cfscript>
function x() {
z = "1";
y();
}
function y() {
writeOutput("child sees " & z & "<br>");
}
@displague
displague / puphpet_local.patch
Created November 8, 2014 14:56
Run puphpet with: APP_ENV=dev php -S 127.0.0.1:8000 -t web/ web/app_dev.php
diff --git a/web/app_dev.php b/web/app_dev.php
index 453b353..866c46f 100644
--- a/web/app_dev.php
+++ b/web/app_dev.php
@@ -1,12 +1,18 @@
<?php
+$filename = __DIR__.preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']);
+if (php_sapi_name() === 'cli-server' && is_file($filename)) {
+ return false;