Skip to content

Instantly share code, notes, and snippets.

View ronsen's full-sized avatar

Ronald Nababan ronsen

View GitHub Profile
@ronsen
ronsen / gambar.py
Last active January 20, 2025 03:55
Get the latest Bing wallpaper
#!/bin/python
import sys
import requests
import string
import os
import subprocess
from pathlib import Path
debug = True
@ronsen
ronsen / simpel.xml
Last active October 3, 2024 08:54
free blogger simple template
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b'
xmlns:data='http://www.google.com/2005/gml/data'
xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<meta charset='utf-8' />
<meta content='width=device-width, initial-scale=1' name='viewport' />
<title>
@ronsen
ronsen / gempa.sh
Created March 18, 2024 05:10
Show Indonesian recent earthquake
#!/bin/sh
curl -s https://data.bmkg.go.id/DataMKG/TEWS/autogempa.json | jq
@ronsen
ronsen / attack.py
Last active December 7, 2023 04:34
sending random email and password to a certain url
#!/bin/python
import random
import requests
import secrets
import time
import string
from faker import Faker
url = "" # phising url you need to attack
@ronsen
ronsen / wp-login.php
Last active June 25, 2024 18:33
Fake wordpress login page
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Log In</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
</head>
@ronsen
ronsen / .bashrc
Created October 23, 2023 14:22
oh my posh random theme each time terminal is launched
theme=$(find "$HOME/.cache/oh-my-posh/themes/" -type f | shuf -n 1)
eval "$(oh-my-posh init bash --config $theme)"
#!/bin/python
import os
USER_FONTS_DIR = "C:\\Users\\<USER>\\AppData\\Local\\Microsoft\\Windows\\Fonts\\"
WINDOWS_FONTS_DIR = "C:\\Windows\\Fonts\\"
def main():
for i in os.listdir(USER_FONTS_DIR):
f = WINDOWS_FONTS_DIR + i
@ronsen
ronsen / script.sh
Last active October 23, 2022 16:22
I hate uppercase!
#!/bin/bash
# Go to home directory
cd ~
# Rename all directories
mv Desktop desktop
mv Documents documents
mv Downloads downloads
mv Music music