Prereq:
apt-get install zsh git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
Prereq:
apt-get install zsh git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
# Bol.com Lookup Command | |
class BolLookupCommand < Command | |
def help | |
'Searches for products in the Bol.com catalog.' | |
end | |
def syntax | |
'/bol <search query>' | |
end |
Easily work with sketch templates on Git, by having a script that updates them from your repository
#!/usr/bin/env ruby | |
# Get values from | |
branch_name = ARGV[0] | |
commit_count = ARGV[1].to_i > 0 ? ARGV[1].to_i : 1 | |
# If no branch is given, or it is a question for help, show usage | |
if branch_name.nil? or ['-h', '--help'].include? branch_name | |
puts <<-USAGE | |
usage: git move-to-branch <branch name> [commits] |
Verifying that +jeroenvisser101 is my blockchain ID. https://onename.com/jeroenvisser101 |
# lib/tasks/assets.rake | |
require 'image_optim' | |
require 'image_optim/runner' | |
namespace :assets do | |
desc 'Runs image_optim on the assets.' | |
task :optimize do | |
image_optim = ImageOptim::Runner.new(recursive: true) | |
image_optim.run!(Dir['app/**/*.{svg,jpg,png,jpeg,gif}']) | |
end | |
end |
<?php | |
use Invitious\Invitious; | |
// Basic code | |
echo Invitious::generate(Invitious::ENGLISH_WORD_GENERATOR); | |
// Custom length | |
echo Invitious::generate(Invitious::ENGLISH_WORD_GENERATOR, 4); | |
// Custom separator |