Skip to content

Instantly share code, notes, and snippets.

View sthobis's full-sized avatar
🏢
🙎‍♂️🎡

Stefanus Thobi Sinaga sthobis

🏢
🙎‍♂️🎡
View GitHub Profile
{
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
@sthobis
sthobis / gist:05c5b601d269fb6598e5da407021b40a
Last active November 29, 2021 12:35
Buka reddit tanpa VPN
1. Search notepad lewat menu start atau tekan tombol windows kemudian search notepad
2. Klik kanan, run as administrator
3. Di kiri atas notepad pilih File -> Open
4. Cari folder C:\Windows\System32\drivers\etc
5. Di bagian kanan bawah (di atas tombol open & cancel), ubah opsi "Text Documents (*.txt)" jadi "All Files"
6. Pilih file "hosts" dan klik Open
7. Copy paste text dibawah (dari ### sampai ###)
8. Save, restart browser buka reddit tanpa VPN
###
Acid Rain
Air
Airplane
Alarm Clock
Alchemist
Alcohol
Algae
Alien
Allergy
Alligator
@sthobis
sthobis / setup.ahk
Created November 13, 2019 04:52
Auto Hotkey media keys mapping
; Shift + Page Up to turn volume up
+PgUp::
Send, {Volume_Up}
return
; Shift + Page Down to turn volume down
+PgDn::
Send, {Volume_Down}
return
sudo certbot --nginx `cat domain.txt`
151.101.193.140 i.redditmedia.com
151.101.65.140 g.redditmedia.com
151.101.65.140 a.thumbs.redditmedia.com
151.101.193.140 redditgifts.com
151.101.65.140 i.redd.it
151.101.1.140 reddit.com
151.101.193.140 v.redd.it
151.101.1.140 b.thumbs.redditmedia.com
151.101.65.140 events.reddit.com
54.209.186.144 stats.redditmedia.com
pm2 deepUpdate
pm2 start npm -- start
@sthobis
sthobis / audition.md
Last active September 13, 2018 23:07

Audition Online Specification

Audition Online is a rhythm based game where you need to complete (by pressing) a sequence of arrow buttons followed by a space button every predefined interval. The interval is calculated based on the bpm of song used for the match/session. An interval is equal to the length/duration of four beats, which means higher bpm produce shorter interval, thus harder difficulty.

Audition Online

In between input interval, there's a resting interval where player does not need to press anything.

@sthobis
sthobis / Hyper config
Created July 26, 2018 12:20
hyper config modified for UI/color preferences
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@sthobis
sthobis / simple redux logger middleware
Last active September 29, 2018 09:23
simple redux logger middleware
const logger = store => dispatch => action => {
console.log("%cprev :", "color: #2ecc71", store.getState())
console.log("%caction :", "color: #3498db", action, "\n\n")
return dispatch(action);
}