Skip to content

Instantly share code, notes, and snippets.

@kaplan
kaplan / gist:1de4b6125233b0d59007878953f9bee5
Last active Dec 21, 2021
Book a meeting 1836 currently on STG
View gist:1de4b6125233b0d59007878953f9bee5
<div class="mktoForm mainForm" id="mainForm">
<form id="mktoForm_1836"></form>
<script>
MktoForms2.loadForm("//app-sj31.marketo.com", "866-NKD-303", 1836);
(function (){
// Please include the email domains you would like to block in this list
var invalidDomains =
["@gmail.","@yahoo.","@hotmail.","@live.","@aol.","@outlook.","@bright.net","@woh.rr.com","@embarqmail.com","@mindspring.com","@rcn.com","@roadrunner.com","@imail.org","@frontier.com","@adelphia.net","@ya.ru","@alltel.net","@centurytel.net","@bt.com","@usit.net","@sprynet.com","@online.de","@qq.com","@googlemail.com","@rambler.ru","@gmx.at","@wowway.com","@rr.com","@dslextreme.com","@windstream.net","@free.fr","@btinternet.com","@tiscali.co.uk","@fuse.net","@epix.net","@prodigy.net","@123.com","@coxinet.net","@bellatlantic.net","@optusnet.com.au","@freenet.de","@sapo.pt","@usa.com","@shaw.ca","@bluewin.ch","@gmx.fr","@mail2","@mac.com","@rocketmail.com","@live.","@hotmail.","@google.com","@gmx.de","@yahoo.","@verizon.net","@bigpond.com","@netsca
View Vagrantfile work 12-28-20
#@IgnoreInspection BashAddShebang
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "workalicious/ubuntu1604"
config.vm.box_check_update = false
config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
config.vm.network "private_network", ip: "192.169.43.17"
View gist:26cf1b8b59088eca9bb89821becae435
➜ workalicious.work vagrant status
Current machine states:
default not running (vmware_fusion)
The VM is powered off. To restart the VM, run `vagrant up`
➜ workalicious.work vagrant up --debug
INFO global: Vagrant version: 2.2.14
INFO global: Ruby version: 2.6.6
INFO global: RubyGems version: 3.0.3
View Marketo Form Load
<script>
MktoForms2.loadForm("//app-sj31.marketo.com", "866-NKD-303", 1836);
(function (){
// Please include the email domains you would like to block in this list
var invalidDomains =
["@gmail.","@yahoo.","@hotmail.","@live.","@aol.","@outlook.","@bright.net","@woh.rr.com","@embarqmail.com","@mindspring.com","@rcn.com","@roadrunner.com","@imail.org","@frontier.com","@adelphia.net","@ya.ru","@alltel.net","@centurytel.net","@bt.com","@usit.net","@sprynet.com","@online.de","@qq.com","@googlemail.com","@rambler.ru","@gmx.at","@wowway.com","@rr.com","@dslextreme.com","@windstream.net","@free.fr","@btinternet.com","@tiscali.co.uk","@fuse.net","@epix.net","@prodigy.net","@123.com","@coxinet.net","@bellatlantic.net","@optusnet.com.au","@freenet.de","@sapo.pt","@usa.com","@shaw.ca","@bluewin.ch","@gmx.fr","@mail2","@mac.com","@rocketmail.com","@live.","@hotmail.","@google.com","@gmx.de","@yahoo.","@verizon.net","@bigpond.com","@netscape.net","@netzero.net","@icloud.com","@wanadoo.fr","@neo.rr.com","@naver.com","
View vagrant vmware debug permissions
work-ubuntu-fpm-pool $ VAGRANT_LOG=debug vagrant up --provider vmware_fusion
INFO global: Vagrant version: 1.8.4
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_OLD_ENV_SHLVL="1"
INFO global: VAGRANT_OLD_ENV_LOGNAME="dave"
INFO global: VAGRANT_OLD_ENV_SHELL="/bin/bash"
INFO global: VAGRANT_OLD_ENV_TERM="xterm-256color"
INFO global: VAGRANT_OLD_ENV_SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.DyF4qytHET/Listeners"
@kaplan
kaplan / Vagrant VMware Fusion up with debug
Last active Dec 13, 2015
debug output: test for localhost with forwarded_port for vmware_fusion on a Ubuntu 14.04 box.
View Vagrant VMware Fusion up with debug
puphpet-ubuntu-ubuntu1404-x64_vm $ VAGRANT_LOG=debug vagrant up --provider vmware_fusion
INFO global: Vagrant version: 1.7.4
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_OLD_ENV_GEM_HOME="/Users/dave/.rvm/gems/ruby-2.0.0-p598"
INFO global: VAGRANT_OLD_ENV_IRBRC="/Users/dave/.rvm/rubies/ruby-2.0.0-p598/.irbrc"
INFO global: VAGRANT_OLD_ENV__system_type="Darwin"
INFO global: VAGRANT_OLD_ENV___CF_USER_TEXT_ENCODING="0x1F5:0x0:0x0"
INFO global: VAGRANT_OLD_ENV_RUBY_VERSION="ruby-2.0.0-p598"
@kaplan
kaplan / fontcustom-workflow-multicolor-icons.md
Last active May 15, 2022
Workflow for creating multicolor icon fonts with FontCustom
View fontcustom-workflow-multicolor-icons.md

Custom Multicolor Icon Workflow with FontCustom

goal: taking a multicolor icon and generating fonts using the same keyboard character in order to layer and color.

  • using illustrator to create the artwork and svgs
  • set the artboard to match in Illustrator: Objects > Artboard > Fit ...
  • separate the layers, and save out black svgs, knocking out the shapes from each other
  • save each layer into a separate folder with name that matches the element, the goal is to make each layer a font

now that you have each layer in its own directory, start making the fonts with FontCustom

@kaplan
kaplan / setup_vagrant_lempp.md
Last active Aug 29, 2015
Looking at a setup for a Vagrant LEMPP stack. The idea was to setup an Ubuntu 14.04 stack that could handle PHP and Ruby.
View setup_vagrant_lempp.md

Vagrant Nginx with PHP-FPM and Passenger

Stack Details

  • OS: Ubuntu 14.04 Trusty 64
  • HTTP Web Server: Nginx
  • Database: MySQL
  • PHP Server-side Scripting: PHP-FPM
  • Ruby Server-side Scripting: Passenger
@kaplan
kaplan / gist:d563fcbbb1b4370d2659
Last active Aug 29, 2015
Handy Vim Reference
View gist:d563fcbbb1b4370d2659

vim handy commands and references

commands

:e.       # list current directory  
:bd       # leave a directory listing
:put +    # paste from clipoard, this works 
"+p       # paste while in normal mode from clipboard
u         # undo in normal mode

ctrl+r # redo in normal mode

@kaplan
kaplan / deploy.rb
Last active Dec 28, 2015
Trying to setup a Capistrano 3.x deployment workflow for a Rails app on a Virtual Machine (VirtualBox or VMFusion), Vagrant with Ubuntu, Nginx, Unicorn provisioned using Chef.
View deploy.rb
set :application, 'deployrails.yo'
set :repo_url, 'http://repo.workalicio.us/deployrails1103.git'
set :deploy_to, '/home/vagrant/deployrails'
set :scm, :git
set :deploy_via, :copy
set :branch, 'master'
set :format, :pretty
set :log_level, :debug