Skip to content

Instantly share code, notes, and snippets.

View 1a57danc3's full-sized avatar
⛱️
On vacation

Howard 1a57danc3

⛱️
On vacation
View GitHub Profile
require 'net/http'
require "cairo"
def get_url time, x, y
str = "http://himawari8-dl.nict.go.jp/himawari8/img/D531106/20d/550/#{time}00_#{x}_#{y}.png"
end
def merge time
puts "Start image process"
w = 20
@1a57danc3
1a57danc3 / himawari.ps1
Created July 27, 2016 00:27 — forked from MichaelPote/himawari.ps1
Windows Powershell Script to download the latest image from the Himawari-8 satelite, combine the tiles into a single image, convert to jpg and then set as the desktop background.
#
# Himawari-8 Downloader
#
#
#
# This script will scrape the latest image from the Himawari-8 satellite, recombining the tiled image,
# converting it to a JPG which is saved in My Pictures\Himawari\ and then set as the desktop background.
#
# http://himawari8.nict.go.jp/himawari8-image.htm
#
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadContent</key>
<dict>
<key>com.google.Chrome</key>
@1a57danc3
1a57danc3 / TTL2016.txt
Created November 21, 2016 07:10 — forked from CHEF-KOCH/TTL2016.txt
Torrent Tracker List [2016 Edition]
udp://tracker.coppersurfer.tk:6969/announce
udp://p4p.arenabg.ch:1337
udp://p4p.arenabg.com:1337
http://bttracker.crunchbanglinux.org:6969/announce
http://tracker.aletorrenty.pl:2710/announce
@1a57danc3
1a57danc3 / gist:af8004914ddf9f10914c5a32e7d644a9
Created September 11, 2017 05:51 — forked from kyanny/gist:1326893
javascript timezone convert
// http://www.techrepublic.com/article/convert-the-local-time-to-another-time-zone-with-this-javascript/6016329
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title></title>
</head>
<body>
<h1></h1>
[
{
"id" : "73F3F654-9EC5-4876-8BF6-474E22029A49",
"assets" : [
{
"url" : "http://a1.phobos.apple.com/us/r1000/000/Features/atv/AutumnResources/videos/comp_GL_G004_C010_v03_6Mbps.mov",
"accessibilityLabel" : "Greenland",
"type" : "video",
"id" : "D388F00A-5A32-4431-A95C-38BF7FF7268D",
"timeOfDay" : "day"
<?xml version="1.0" encoding="utf-8"?>
<spnOverrides>
<!-- Afghanistan -->
<spnOverride numeric="41201" spn="AWCC" />
<spnOverride numeric="41240" spn="Areeba" />
<spnOverride numeric="41250" spn="Etisalat" />
<spnOverride numeric="41220" spn="Roshan" />
<!-- Albania -->
<spnOverride numeric="27601" spn="AMC" />
@1a57danc3
1a57danc3 / cheatsheet.rb
Created August 31, 2018 15:21 — forked from JeremyOttley/cheatsheet.rb
Rails CheatSheet
#!/usr/bin/env ruby
#CHEATSHEET_DIR = ".cheatsheets"
cheatsheet = File.open("#{CHEATSHEET_DIR}/rails_cheatsheet.txt", "r")
reader = ->line { puts line }
cheatsheet.each_line &reader
@1a57danc3
1a57danc3 / Ruby-Cheatsheet.md
Created August 31, 2018 15:21
Ruby Cheatsheet

Ruby Cheatsheet

Looping

  1. .times: execute block x number of times - Ex: 5.times { puts "executed" }

If

  1. execute if true statements can be added to the end of a line: puts "true" if true
@1a57danc3
1a57danc3 / T2.keys
Created March 16, 2020 03:41 — forked from xerub/T2.keys
=== iBridge2,1,iBridge2,3,iBridge2,4,iBridge2,5,iBridge2,7,iBridge2,8_3.5_16P5200_Restore.ipsw
Firmware/dfu/iBEC.j137.RELEASE.im4p
3723c95ba25706b4650a92177afc28af57e0a236fd0e46b83cffb6140392b63355562b5ed671bda6b5929ff728f0b324
Firmware/dfu/iBSS.j140k.RELEASE.im4p
34d7aa36e00b5c772bf7381c821253a714ed2714552a48a478b391faac32bc0eef2577d5a04e01f462648754eb9af69e
Firmware/dfu/iBSS.j137.RELEASE.im4p
4bb3ecf8b19401a009b5c0003b64ac3bae8258f6d9c42b91831927e348957dfde01384caa3fbee1b6e665d168b46fc47
Firmware/dfu/iBEC.j680.RELEASE.im4p
893d17aa768a6ebd8f85b4251ef8f692c766f7b1868bd974a3dc9fcd0dd9608e4e0709bd9208752d9515a636c129378c