Skip to content

Instantly share code, notes, and snippets.

🐢

Hiraku hirakujira

🐢
Block or report user

Report or block hirakujira

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hirakujira
hirakujira / run.py
Last active Jul 19, 2018
grab SHSH2 automatically
View run.py
#!/usr/local/bin/python3
import os
import subprocess
import sys
apnonces = ['0dc448240696866b0cc1b2ac3eca4ce22af11cb3',\
'352dfad1713834f4f94c5ff3c3e5e99477347b95',\
'42c88f5a7b75bc944c288a7215391dc9c73b6e9f',\
'603be133ff0bdfa0f83f21e74191cf6770ea43bb',\
@hirakujira
hirakujira / karabiner.json
Created Sep 21, 2016
Karabiner-Elements for 3rd-party Keyboards
View karabiner.json
{
"profiles": [
{
"name": "Default profile",
"selected": true,
"simple_modifications": {
"left_command" : "left_option",
"left_option" : "left_command",
"right_command" : "right_option",
"right_option" : "right_command"
View Pokemon Emojis for Facebook
/* BIG EMOJIS */
._2jry ._9-_._3j7l {
background-image: url(http://pic.hiraku.tw/css/facebook/emoji/big_1.png) !important;
background-repeat: no-repeat !important;
background-size: auto !important;
background-position: 0 0 !important;
}
._2jry ._9-_._3j7m {
background-image: url(http://pic.hiraku.tw/css/facebook/emoji/big_2.png) !important;
View Resolution Value Generator
#/bin/bash
WIDTH=1920
HEIGHT=1080
HIRES=0
read -e -p "Please set width px of screen resolution : " WIDTH
read -e -p "Please set height px of screen resolution : " HEIGHT
read -e -p "Do you want to use HiDPI (@2x) ? (y/n) " HIRES
View Karabiner Settings For G5 Keyboard.xml
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>APPLE</vendorname>
<vendorid>0x05ac</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>APPLE_G5_KEYBOARD</productname>
<productid>0x020b</productid>
View tsv_to_yml.rb
require 'yaml'
lines = File.read(ARGV[0]).split("\n")
header = lines[0].split("\t")
lines.delete(lines[0])
hashes = []
lines.each do |line|
values = line.split("\t")
hash = Hash.new {}
View yml_to_tsv.rb
require 'yaml'
def generate_line(items)
line = ''
items.each_with_index do |item, index|
line += item
line += "\t" if index < items.length - 1
end
line += "\n"
line
View fizzbuzz.rb
## write your fizzbuzz method in this file
# see http://en.wikipedia.org/wiki/Fizz_buzz for details on FizzBuzz game
def fizzbuzz(size, &block)
fizzbuzz_array = []
num = 1
while num <= size
output = ''
output += 'Fizz' if num % 3 == 0
output += 'Buzz' if num % 5 == 0
View gist:ae658d037df30e586a0f
#!/bin/bash
if [[ $1 != "" ]]; then
if [[ $2 != "" ]]; then
channel=$2;
else
channel="general";
fi
curl --data "$1" $'https://SUBDOMAIN.slack.com/services/hooks/slackbot?token=YOURTOKENHERE&channel=%23'$channel;
exit 0;
You can’t perform that action at this time.