Skip to content

Instantly share code, notes, and snippets.

RACK_ENV=production bundle exec sidekiq -r ./bootstrap.rb -C ./config/sidekiq.yml
rvmsudo rvm get stable
rvmsudo rvm install 2.0.0
@windix
windix / note.md
Last active May 1, 2019 20:25
Raspberry PI 3 Setup

My Default Packages

  • vim
  • byobu
  • aria2

Version Information

Software Information

https://andi34.github.io/
http://android.stackexchange.com/questions/62985/how-do-i-install-cyanogenmod-11-on-a-samsung-galaxy-tab-2-gt-p5113/62986#62986
http://forum.xda-developers.com/showthread.php?t=2571498
http://forum.xda-developers.com/showthread.php?t=2676180
Current version: 4.2.2
#!/bin/bash
## Copyright (C) 2009 Przemyslaw Pawelczyk <przemoc@gmail.com>
## License: GNU General Public License v2, v3
#
# Lockable script boilerplate
### HEADER ###
LOCKFILE="/var/lock/`basename $0`"
@windix
windix / rubyconf_au_2017.md
Last active February 13, 2017 23:54
RubyConf AU 2017
#include <Wire.h> // This library allows you to communicate with I2C
#include <Adafruit_GFX.h> // Adafruit GFX graphics core library
#include <Adafruit_SSD1306.h> // Driver library for 'monochrome' 128x64 and 128x32 OLEDs
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
#if (SSD1306_LCDHEIGHT != 64)
#error("Height incorrect, please fix Adafruit_SSD1306.h!");
@windix
windix / brew-perms.sh
Last active June 15, 2018 04:51 — forked from jaibeee/brew-perms.sh
Configure homebrew permissions to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
sudo chgrp -R admin /usr/local/*
sudo chmod -R g+w /usr/local/*
@windix
windix / bakeACake.js
Created August 19, 2018 11:42 — forked from jh3y/bakeACake.js
Baking a cake with async + await
// helper function for stock check
const doTheyHaveIt = () => Math.random() > 0.1
// boilerplate functions for getting the different ingredients
const getButter = () => new Promise((resolve, reject) => {
setTimeout(doTheyHaveIt() ? resolve('Butter') : reject('Sorry, no butter'), 1000)
})
const getFlour = () => new Promise((resolve, reject) => {
setTimeout(doTheyHaveIt() ? resolve('Flour') : reject('Sorry, no flour'), 1000)
})
@windix
windix / ecs.sh
Created July 20, 2019 04:21
Bash script to get ec2 instance-id from ecs service
#!/usr/bin/env bash
ENV=dev
AWS_PROFILE=${ENV}
CLUSTER=${ENV}-cluster
if [[ -z $1 ]]; then
echo "USAGE: $0 service-keyword"
exit 1
@windix
windix / jamf.md
Created July 23, 2019 22:14 — forked from a7ul/jamf.md
removing all restrictions on jamf managed macos device - Provided you have root access.

REMOVE JAMF RESTRICTIONS ON MAC

REMOVE ONLY RESTRICTIONS

sudo jamf removeMDMProfile removes all restrictions

sudo jamf manage brings back all restrictions and profiles

REMOVE ALL RESTRICTIONS AND DISABLE JAMF BINARIES WHILE KEEPING YOUR ACCESS TO VPN AND OTHER SERVICES

sudo jamf removeMDMProfile removes all restrictions