Skip to content

Instantly share code, notes, and snippets.

View raffifu's full-sized avatar
🌴
On vacation

Raffi Utama raffifu

🌴
On vacation
View GitHub Profile
@raffifu
raffifu / recap_nilai.sh
Created July 4, 2023 03:42
Calculated the detail of transkrip nilai from Simaster
#!/bin/bash
################################################################################
# recap_nilai.sh
# Description: Show detail of Transkrip Nilai download from Simaster
# Requirements: poppler-utils package
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@raffifu
raffifu / s3_backup.sh
Created June 2, 2023 03:30
Backup Video to Telegram & S3
#!/bin/sh
SPACE="<space-name>"
REGION="<region-code>"
STORAGETYPE="STANDARD"
KEY="<key>"
SECRET="$SECRET"
function uploadVideo() {
if [ $# -ne 1 ]; then
@raffifu
raffifu / HOW TO LAUNCH LINE MESSENGER IN LINUX
Last active October 14, 2022 04:05
Desktop File to lauch line extension from Chrome or Microsoft Ege
1. Install line extension from store; https://chrome.google.com/webstore/search/line
2. Copy line.desktop to $HOME/.local/share/applications or /usr/share/applications
```
cp line.desktop $HOME/.local/share/applications
```
3. Done.
@raffifu
raffifu / shuzhi_english_quote.sh
Created May 7, 2022 16:01
shuzhi custom script
#!/bin/bash
# Modified from original shuzhi.sh [https://github.com/tuberry/shuzhi/blob/main/shuzhi%40tuberry/shuzhi.sh]
# API from https://github.com/lukePeavey/quotable
res=$(curl -s https://api.quotable.io/random?maxLength=80)
content=$(echo $res | jq -r .content)
test -z "$content" && exit 1
author=$(echo $res | jq -r .author)
gap='<span font=\"0.4em\"> </span>\n'
@raffifu
raffifu / AutoEdom.js
Last active February 2, 2022 09:21
Script Otomatis Evaluasi Dosen Simaster UGM. DISCLAIMER: Pembuat tidak bertanggung jawab atas penyalahgunaan kode dibawah. (Do With Your Own Risk) DWYOR
// Buka Halaman evaluasi dosen => Klik dosen yang ingin dinilai
// Open Console (Click F12)
// Copy Paste kode dibawah ke console
// Enter kode checkEdom(1, 3)
const checkEdom = (from, to) => {
if(from < 1 || from > 4 || to < 1 || to > 4)
return throwError(`${from} or ${to} is not a valid number`);
for(let i = 1; i < 13; i++) {