Skip to content

Instantly share code, notes, and snippets.

View reinhart1010's full-sized avatar

Reinhart Previano Koentjoro reinhart1010

View GitHub Profile
languages_to_benchmark:
- en
- ar
- bn
- bs
- ca
- cs
- da
- de
- es
@reinhart1010
reinhart1010 / poc.js
Created April 14, 2023 09:31
Proof-of-Concept Pemalsuan QRIS
'use strict';
const { Qris, MerchantAccountInfo, AdditionalDataField, encode } = require('qris/mpm');
let mai = new MerchantAccountInfo()
mai.globallyUniqueIdentifier = "ID.CO.TELKOM.WWW"
mai.merchantPan = "936008980290034873"
mai.merchantId = "000195290034873"
mai.merchantCriteria = "UMI"
let mai51 = new MerchantAccountInfo()

List of removed articles from BINUS Today

Here comes a list of removed articles from BINUS Today in response to the case of online gambling and explicit content spam over official BINUS University websites.

This log enlists some URLs which are true negatives (i.e. content intentionally deleted by the site author despite not being a spam) as well.

Standard package list for roothouse

FFmpeg (optional) and ImageMagick

ffmpeg imagemagick

Java

temurin-11-jdk

@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;
@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 / 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 / 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 / fizzbuzz-jsfuck.js
Created October 28, 2019 03:54
FizzBuzz challenge but compiled in JSFuck
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((+(!+[]+!+[]+!+[]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(+![]+([]
@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!"