Skip to content

Instantly share code, notes, and snippets.

View ylluminate's full-sized avatar

ylluminate ylluminate

View GitHub Profile
@max-mapper
max-mapper / readme.md
Last active March 16, 2023 15:18
Video stabilization using VidStab and FFMPEG (Mac OS X)

Video stabilization using VidStab and FFMPEG

Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.

Here's an example video I made

Install ffmpeg with the vidstab plugin from homebrew

brew install ffmpeg --with-libvidstab
@Nilpo
Nilpo / wpbackup.sh
Created December 8, 2015 23:27
A Wordpress Backup Shell Script
#!/bin/bash
# usage: ./wpbackup.sh domain.com
DOMAIN="$1"; # domain name to backup
BACKUP="$HOME/backups"; # store backups here
HOSTPATH="$HOME"; # path where hosted domains are
backmeup () {
local _N _U _P _H FS FT TD WP;
@lopezjurip
lopezjurip / README.md
Last active September 10, 2023 06:27
Write to NTFS on OSX Yosemite and El Capitan

OUTDATED, see comments below

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Update Homebrew formulae:

brew update
@hetima
hetima / file1.markdown
Last active January 22, 2018 08:51
How to transition from EasySIMBL to SIMBL

#How to transition from EasySIMBL to SIMBL

( ~ is your home directory )

  1. Launch EasySIMBL.app. Turn OFF Use SIMBL checkbox. Quit EasySIMBL.
  2. Remove ~/Library/ScriptingAdditions/EasySIMBL.osax if exists.
  3. SIMBL directory and EasySIMBL.osax located in ~/Library/Containers/ is not needed. Find from Finder or find command like find ~/Library/Containers -name "*SIMBL*" -ls and remove manually if exists.
  4. Restart Mac (just in case).
  5. Install SIMBL-0.9.9 (original SIMBL-0.9.9.pkg is not code signed. So open from context menu)
  6. Done.
@jah2488
jah2488 / image.md
Last active April 16, 2021 16:49
Creates a Menubar application using Node Webkit and Opal

A tiny app using opal.rb and nodewebkit to get your weather in your toolbar. so small

@EugeneKay
EugeneKay / README.md
Last active May 17, 2022 17:32
Winode Instructions

NOTE: This Gist concerns the old Linode KVM Beta, NOT the current Manager. Please see linode/docs#501 (comment) for more up-to-date instructions.

You will need:

On the KVM source, run the following to create a VM:

@RickCarlino
RickCarlino / frequency.rb
Created April 18, 2015 20:48
Ruby Word Frequeuncy Counter. Great for Identifying themes in text / content marketing.
COMMON = %w(the of to and a in is
it you that he was for on
are with as I his they be
at one have this from or had
by hot but some what there we
can out other were all your when
up use word how said an each
she which do their time if will
way about many then them would write
like so these her long make thing
#!/usr/bin/env ruby
require 'net/http'
def convert_currency(from_curr, to_curr)
doc = Net::HTTP.get('www.google.com', "/finance/converter?a=1&from=#{from_curr}&to=#{to_curr}")
regexp = Regexp.new("(\\d+\\.{0,1}\\d*)\\s+#{to_curr}")
regexp.match doc
$1.to_f
end
@jah2488
jah2488 / map_join.md
Created March 20, 2015 05:03
I would like this

I like to manipulate data structures. Sometimes the final out put of that manipulation is a string. So I find myself using the pattern of map + join and its starting to feel like the map + flatten of old. Sadly, ruby does not have an answer for this yet, so this is what I've written in the mean time.

def map_join(arr, sep, &block)
 arr.map(&block).join(sep)
end

map_join([1, 2, 3, 4, 5], '-') { |x| x ** 2 } #=> '1-4-9-16-25'