Skip to content

Instantly share code, notes, and snippets.

View reinhart1010's full-sized avatar

Reinhart Previano Koentjoro reinhart1010

View GitHub Profile
@reinhart1010
reinhart1010 / princess2jailbreak.js
Created August 12, 2017 15:20
Replacing Princesses with Jailbreaks
// Princess2Jailbreak.js
// Because Jailbreak is... (Spoiler Alert!)
// Copyright (c) Reinhart Previano K.
// Code licensed under MIT License
// Requires UTF+8 Encoding to be set
// This script will NOT Jailbreak your iOS device (iPhone, iPad, iPod Touch).
// Instead, this is a reference to The Emoji Movie by Sony Pictures Animation.
// Want a more geeky reference?
@reinhart1010
reinhart1010 / common-voice-stats
Last active December 2, 2017 03:36
Common Voice Statistics
Common Voice Stats
=======
The following data is gathered from sample sentences of Mozilla Common Voice (https://voice.mozilla.org)
which are located in their GitHub Repository (https://github.com/mozilla/voice-web/).
Data are accurate as of commit 4963e19d8a2eadc9eb12c60a0c61b6c02d08f067 (1 Dec 2017).
1 aaa
1 aaliyah
1 abarrotes
1 abatte
Graphics Feature Status
Canvas: Hardware accelerated
CheckerImaging: Disabled
Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Native GpuMemoryBuffers: Software only. Hardware acceleration disabled
Rasterization: Software only. Hardware acceleration disabled
@reinhart1010
reinhart1010 / ua-samples.txt
Last active March 18, 2019 07:18
User-agent Samples
[engine-blink]
Baidu Spark Browser 2.x, Chrome 33.0.1
Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Spark/2.x Safari/537.36
Falkon 3.0, Chrome 61
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Falkon/3.0.0 Chrome/61.0.3163.140 Safari/537.36
Google Chrome 51
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
Maxthon Browser 4.0, Chrome 22
Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.1 (KHTML, like Gecko) Maxthon/4.0.0.2000 Chrome/22.0.1229.79 Safari/537.1
Opera 38, Chrome 51
@reinhart1010
reinhart1010 / install.sh
Created March 6, 2019 08:40
[Mirror] Fedora 29 post-install script
#!/bin/bash
# This post-install script is originated from the Fedora 29 Community Challenge by Jason Evangelho
# Bash script originally created by Tobias
# Please make sure that you run this in user mode (non-root), and make this file executable (chmod +x /path/to/install.sh)
# You can run this command with --nonfree or --steam to get no nonfree (proprietary) software or Valve's Steam client.
# For more information visit https://git.furworks.de/tobias/fedora-install
if [ $(id -u) = 0 ]; then
echo "This script changes your users gsettings and should thus not be run as root!"
echo "You may need to enter your password multiple times!"
@reinhart1010
reinhart1010 / fizzbuzz-jsfuck.js
Created October 28, 2019 03:54
FizzBuzz challenge but compiled in JSFuck
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((+(!+[]+!+[]+!+[]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(+![]+([]
@reinhart1010
reinhart1010 / streamer.html
Created October 29, 2019 16:49
Record audio stream via Web Audio API
<!DOCTYPE html>
<html>
<body>
<button onclick="record({audio: true, video: false})">Record</button>
<button onclick="stop()">Stop</button>
</body>
<script>
let timeInterval = 3000; // in milliseconds
// From https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia
@reinhart1010
reinhart1010 / data.json
Last active January 31, 2020 09:07
Design System Preferences
{
"adwaita": {
"about": {
"name": "Adwaita",
"developer": "GNOME"
},
"follows": "linux-common",
"colors": {
"blue": "#3584e4",
"green": "#33d17a",
@reinhart1010
reinhart1010 / Major-Match.md
Last active May 1, 2020 15:19
Regular Expression for fuzzy recognition of BINUS University's list of Majors

School of Computer Science

Computer Science, Global Class:

/^( )*((T(eknik){0,1}( )*I(nformatika){0,1})|(IT)|(C(omp(uter){0,1}){0,1}( )*S(ci(ence){0,1}){0,1}))[ (,-:]+(G(lobal){0,1}( )*C(lass){0,1})\){0,1}( )*$/gi

Computer Science, Master Track:

/^( )*((T(eknik){0,1}( )*I(nformatika){0,1})|(IT)|(C(omp(uter){0,1}){0,1}( )*S(ci(ence){0,1}){0,1}))[ (,-:]+(M(aster){0,1}( )*T(rack){0,1})\){0,1}( )*$/gi
@reinhart1010
reinhart1010 / nginx-proxy.conf
Last active May 27, 2022 04:08
Minimal configuration for Nginx reverse proxy
server {
server_name subdomain.example.com;
location / {
proxy_pass http://localhost:8888;
include /etc/nginx/proxy_params;
}
access_log /var/log/nginx/example-subdomain.log;
error_log /var/log/nginx/example-subdomain-error.log crit;
proxy_buffer_size 128k;
proxy_buffers 4 256k;