Skip to content

Instantly share code, notes, and snippets.

// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split("");
function f() {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@ianamunoz
ianamunoz / install-buildbot.ps1
Created May 31, 2018 13:23 — forked from peter-b/install-buildbot.ps1
PowerShell script for installing a buildbot worker on Windows
# PowerShell script for installing BuildBot 0.8.12 on Windows Server 2016
# Datacenter Edition
# For full explanation of everything in this script, see:
# http://blog.peter-b.co.uk/2017/02/deploying-buildbot-workers-on-windows.html
# Copyright (C) 2017 LiveCode Ltd.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@ianamunoz
ianamunoz / .block
Created March 6, 2018 19:25 — forked from baramuyu/.block
D3.js v4 Gantt Chart basic example.
license: mit
@ianamunoz
ianamunoz / activate.csh
Created April 19, 2017 22:00 — forked from mikecharles/activate.csh
Activate and deactivate a conda environment in C Shell
#!/bin/csh
# Get the name of this script
set script_name = `basename $0`
# Get arguments
if ( $#argv < 1 ) then
echo ""
echo "Usage: source $script_name <CONDAENV>"
exit 2
@ianamunoz
ianamunoz / OSX-Convert-MOV-GIF.md
Created May 19, 2016 21:31 — forked from tskaggs/OSX-Convert-MOV-GIF.md
Creating GIFs from .MOV files in OSX using FFmpeg and ImageMagick

Convert MOV to GIF using FFmpeg and ImageMagick

I tried a few different techniques to make a GIF via command-line and the following gives me the best control of quality and size. Once you're all setup, you'll be pumping out GIFs in no time!

Preparation

Install FFmpeg

  • $ brew install ffmpeg [all your options]
    • Example: $ brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools

Install ImageMagick

@ianamunoz
ianamunoz / gist:6fe8e0fb77b848b1892a
Created March 11, 2016 20:08 — forked from schmurfy/gist:3199254
Install pandoc Mac OS X 10.8
# Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg
$ sudo chown -R `whoami` /usr/local/texlive
$ tlmgr update --self
$ tlmgr install ucs
$ tlmgr install etoolbox
# Install pandoc view homebrew
@ianamunoz
ianamunoz / README.md
Created March 10, 2016 20:52 — forked from Sumbera/README.md
Many points with Leaflet WebGL

Leaflet and WebGL sample rendering 80T points for more info read blog post

inspired by this and by very nice WebGL tutorial here

Using Google Maps API and R

This script uses RCurl and RJSONIO to download data from Google's API to get the latitude, longitude, location type, and formatted address

library(RCurl)
library(RJSONIO)
library(plyr)