Skip to content

Instantly share code, notes, and snippets.

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

Howard 1a57danc3

⛱️
On vacation
View GitHub Profile
@1a57danc3
1a57danc3 / ltsc2019-act.cmd
Last active August 25, 2021 21:49
LTSC_2019_KMS
slmgr -ipk M7XTQ-FN8P6-TTKYV-9D4CC-J462D
slmgr -skms kms.03k.org
slmgr -ato
slmgr -dlv
@1a57danc3
1a57danc3 / checkHash.reg
Last active February 11, 2019 06:36
checkHash in Windows Explorer
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Check Hash]
"SubCommands"="MACTripleDES;MD5;RIPEMD160;SHA1;SHA256;SHA384;SHA512"
"MUIVerb"="Check Hash"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\MACTripleDES]
#!/bin/bash
modprobe tcp_bbr
echo "tcp_bbr" | sudo tee --append /etc/modules-load.d/modules.conf
echo "net.core.default_qdisc=fq" | sudo tee --append /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" | sudo tee --append /etc/sysctl.conf
sysctl -p
sysctl net.ipv4.tcp_available_congestion_control
sysctl net.ipv4.tcp_congestion_control
lsmod | grep bbr
@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 / 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
<?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 / com.apple.jingle.appserver.client.MZITunesClientCheck
Created July 22, 2018 16:10
com.apple.jingle.appserver.client.MZITunesClientCheck
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plist version="1.0">
<dict>
<key>iTunesMacVersion</key>
<string>12.8</string>
<key>iPodSoftwareVersions</key>
<dict>
<key>24</key>
<dict>
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plist version="1.0">
<dict>
<key>iTunesMacVersion</key>
<string>12.8</string>
<key>iPodSoftwareVersions</key>
<dict>
<key>24</key>
<dict>
{
"version" : 1,
"initialAssetCount" : 4,
"assets" : [
{
"id" : "829E69BA-BB53-4841-A138-4DF0C2A74236",
"url-1080-SDR" : "https://sylvan.apple.com/Aerials/2x/Videos/LA_A006_C008_2K_SDR_HEVC.mov",
"url-1080-HDR" : "https://sylvan.apple.com/Aerials/2x/Videos/LA_A006_C008_2K_HDR_HEVC.mov",
"url-4K-SDR" : "https://sylvan.apple.com/Aerials/2x/Videos/LA_A006_C008_4K_SDR_HEVC.mov",
"url-4K-HDR" : "https://sylvan.apple.com/Aerials/2x/Videos/LA_A006_C008_4K_HDR_HEVC.mov",
[
{
"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"