Skip to content

Instantly share code, notes, and snippets.

View reinhart1010's full-sized avatar

Reinhart Previano Koentjoro reinhart1010

View GitHub Profile
@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!"
@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