Skip to content

Instantly share code, notes, and snippets.

View jogerj's full-sized avatar
🟢
Online

Jonathan Joewono jogerj

🟢
Online
View GitHub Profile
@jogerj
jogerj / importer.ps1
Last active July 31, 2024 08:23 — forked from MadeBaruna/importer.ps1
Paimon.moe Local Importer (Windows)
Add-Type -AssemblyName System.Web
Write-Host "Paimon.moe Wish Importer" -ForegroundColor Cyan
Write-Host "1. Open Genshin Impact in this PC"
Write-Host "2. Then open the wish history and wait it to load"
Write-Host "3. When you are ready press [ENTER] to continue! (or any key to cancel)"
Write-Host "Waiting..."
$keyInput = [Console]::ReadKey($true).Key
if ($keyInput -ne "13") {
@jogerj
jogerj / telegram-http.sh
Last active October 7, 2022 17:37 — forked from dideler/bot.rb
Send Telegram messages from bash
#!bin/bash
TELEGRAM_BOT_TOKEN="botid:token"
CHAT_ID="1234567890"
send_telegram () {
title="$1"
timestamp="$(date -R)"
msg="$title\n$timestamp\n\n$(echo "$2" | sed -z -e 's|\\|\\\\|g' -e 's|\n|\\n|g' -e 's|\t|\\t|g' -e 's|\"|\\"|g')"
entities="[{\"offset\":0,\"length\":${#title},\"type\":\"bold\"},{\"offset\":$((${#title}+1)),\"length\":${#timestamp},\"type\":\"italic\"}]"
@jogerj
jogerj / hide-promoted-tweets.user.js
Last active July 15, 2022 00:49 — forked from cb372/hide-promoted-tweets.user.js
A simple userscript to hide promoted tweets on twitter.com - Modified for Tampermonkey v4
// ==UserScript==
// @name Hide Promoted Tweets
// @namespace https://github.com/jogerj
// @source https://gist.github.com/jogerj/333221ea0b5e8e09a051c38a09150127
// @version 0.1
// @description Hide promoted tweets on twitter.com
// @author JogerJ
// @author cb372
// @icon https://abs.twimg.com/favicons/favicon.ico
// @grant none
@jogerj
jogerj / mc_backup.sh
Last active January 25, 2023 16:53 — forked from renamedquery/backup.sh
RCON bash script to backup minecraft server directory
#!/bin/bash
MCRCON_PATH="/usr/local/bin"
BACKUP_PATH="/home/opc/mc_backup"
MC_PATH="/home/opc/minecraft"
IP="127.0.0.1"
PORT="25575"
PASS="[password]"