Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jeroenvisser101's full-sized avatar
🇺🇦
Слава Україні!

Jeroen Visser jeroenvisser101

🇺🇦
Слава Україні!
View GitHub Profile
@jeroenvisser101
jeroenvisser101 / zsh.md
Last active August 29, 2015 14:06 — forked from tsabat/zsh.md

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

Keybase proof

I hereby claim:

  • I am jeroenvisser101 on github.
  • I am jeroenvisser101 (https://keybase.io/jeroenvisser101) on keybase.
  • I have a public key whose fingerprint is 3B50 B1EA 5C9E 5B1B A0CE 143E 22B2 DFE2 F918 52F4

To claim this, I am signing this object:

@jeroenvisser101
jeroenvisser101 / osx-for-hackers.sh
Created October 7, 2015 12:52 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/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
@jeroenvisser101
jeroenvisser101 / README.md
Last active February 20, 2016 19:44
Copy Sketch templates from git repository to the Sketch template folder

Easily work with sketch templates on Git, by having a script that updates them from your repository

@jeroenvisser101
jeroenvisser101 / git-move-to-branch
Last active March 4, 2016 14:58
Script that moves a specified number of commits into a branch (when accidentally committed to master)
#!/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
@jeroenvisser101
jeroenvisser101 / assets.rake
Created May 6, 2016 10:05
Simple image optimisation in image_optim
# 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