Skip to content

Instantly share code, notes, and snippets.

View SDSkyKlouD's full-sized avatar
🌠
Hoshizora

SD SkyKlouD SDSkyKlouD

🌠
Hoshizora
  • Republic of Korea
View GitHub Profile
import json
import random
dic = dict()
file = open("test.json", mode="w")
i = 0
while i < 5000000:
dic[i] = {
"int": 123456 + i + random.randrange(100000, 2 ** 30),
>= 0.5% and last 2 versions and not dead, unreleased Chrome versions, unreleased Firefox versions, unreleased Edge versions, unreleased Safari versions, unreleased iOS versions
@SDSkyKlouD
SDSkyKlouD / vultr-linode-vps-performance-comparison-20190719.md
Last active August 20, 2019 02:05
Vultr VC2 $5 vs Vultr HF $6 vs Linode Nanode $5 - performance comparison

Vultr VC2 vs Vultr HF vs Linode - $5 ~ $6 Performance Benchmarks

Benchmarked on 2019/07/19
by SD SkyKlouD (https://sdsk.one/ | Twitter @_SDSkyKlouD)

Plans compared

Vultr VC2 $5

  • CPU : Virtual CPU 714389bda930 @ 2.4GHz
  • 1 Core 1 Thread
@SDSkyKlouD
SDSkyKlouD / vultr-linode-5dollars-benchmark.txt
Created May 16, 2019 05:48
Vultr VC2 $5 vs Linode Nanode $5 - VPS system benchmark
Benchmarked on 2019/05/16
by SD SkyKlouD (https://sdsk.one/ | @_SDSkyKlouD on Twitter)
=================================================================
| Vultr VC2 $5 | Linode Nanode $5 |
> Notice -----------------------------------------------------------------
DL Speed Test - IPv4 only | Tokyo | Tokyo 2 |
| Virtual CPU 714389bda930 | AMD EPYC 7501 | <-- HOORAY!
> Vultr VC2 CPU | └ 2.4GHz KVM 1C1T | └ 2.0GHz KVM 1C1T |
Prbly Intel Xeon E5 series? | RAM 1GB | RAM 1GB |
@SDSkyKlouD
SDSkyKlouD / binary-counter.py
Last active March 29, 2019 00:55
Raspberry Pi - GPIO - Binary counter with LED and buttons
import RPi.GPIO as GPIO
from math import pow
# Definitions #
BINARY = 0b0
LED_PINS = [ 18, 23, 24, 25, 12, 16, 20, 21, 4, 17, 27, 22 ] # Change this to your LED PIN numbers. Left to right.
LED_PINS_LEN = len(LED_PINS)
INCREASE_PIN = 19 # Change this to your increase button PIN
DECREASE_PIN = 26 # Change this to your decrease button PIN
# --- #
@SDSkyKlouD
SDSkyKlouD / toggle-led-when-button-press.py
Created March 29, 2019 00:51
Raspberry Pi - GPIO - Toggle LED when button press
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
TOGGLE_PIN = 20 # Change this PIN number to your button PIN
LED_PIN = 21 # Change this PIN number to your LED PIN
GPIO.setup(TOGGLE_PIN, GPIO.IN)
GPIO.setup(LED_PIN, GPIO.OUT)
@SDSkyKlouD
SDSkyKlouD / ShowPrintableASCIICharacters.aheui
Created August 9, 2018 06:41
ASCII 코드 중 출력 가능한 문자(스페이스를 제외한 0d33 ~ 0d126)를 이어서 출력해주는 느리고 조금 더러운 아희 코드
밣밣따박따뱐웱아투
쑦뻐멓뻐떠범벓썩뻐
자욹웳소윏쎠왮셖써
희차삮반밧나다삭뽀
@SDSkyKlouD
SDSkyKlouD / ConvertAlphabetLowerUpper.aheui
Last active February 7, 2019 04:10
(한 글자) 알파벳 소문자는 대문자로, 대문자는 소문자로 변환해주는 약간 더러운 아희 코드
밢밡따밣밧따다밯빠싹파주앣
SD희멓더서써석떠법벓차붏
꽁치엕옳얿없터퍼서써석떠벞
@SDSkyKlouD
SDSkyKlouD / cpufreq_alucard.c
Created October 17, 2017 08:29
CPUFreq 'alucard' governor (compilable in Xperia 4.4 kernel)
/*
* drivers/cpufreq/cpufreq_alucard.c
*
* Copyright (C) 2011 Samsung Electronics co. ltd
* ByungChang Cha <bc.cha@samsung.com>
*
* Based on ondemand governor
* Copyright (C) 2001 Russell King
* (C) 2003 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>.
* Jun Nakajima <jun.nakajima@intel.com>
@SDSkyKlouD
SDSkyKlouD / maple-iosched.c
Last active October 13, 2017 14:36
Maple I/O Scheduler (patched for kernel 3.18 or above)
/*
* Maple I/O Scheduler
* Based on Zen and SIO.
*
* Copyright (C) 2016 Joe Maples <joe@frap129.org>
* (C) 2012 Brandon Berhent <bbedward@gmail.com
* (C) 2012 Miguel Boton <mboton@gmail.com>
*
* Maple uses a first come first serve style algorithm with seperated read/write
* handling to allow for read biases. By prioritizing reads, simple tasks should improve