Skip to content

Instantly share code, notes, and snippets.

@kescherCode
kescherCode / daemon
Last active December 4, 2023 11:18
A rrdtool network graph generator, as seen on https://mirror.kescher.at.
#!/usr/bin/env bash
while :; do
bash loop
sleep 5
done
@kescherCode
kescherCode / notify_updates.sh
Last active September 23, 2022 12:19
A script for Arch Linux-based machines to send update notifications via mail.
#!/usr/bin/env bash
sudouser="kescher"
aur_helper="yay"
last_update_notification="/usr/local/etc/last_update_notification"
subjectline="Update notification for $(hostname -s)"
fromaddress="Update Notification <[email protected]>"
toaddress="Jeremy Kescher <[email protected]>"
repo=$(checkupdates)
@superllama
superllama / chip8.ps1
Last active February 21, 2025 12:03
A Chip-8 Emulator written in PowerShell
param(
[string]$rom,
[int]$cpulimit = 0,
[switch]$nowrap = $false,
[switch]$noclear = $false
)
if ($rom -eq "") {
"PowerShell Chip-8 Emulator 1.0`n"+
" by SuperLlama ([email protected])`n"+
"-"*48+"`n"+
@dragonwocky
dragonwocky / discord-webhook.js
Last active December 8, 2024 12:04
js post request example for discord webhooks using the fetch web api
// node.js versions pre-v0.18.0 do not support the fetch api and require a polyfill
// const fetch = require('node-fetch');
fetch(
'https://discordapp.com/api/webhooks/738983040323289120/mzhXrZz0hqOuUaPUjB_RBTE8XJUFLe8fe9mgeJjQCaxjHX14c3SW3ZR199_CDEI-xT56',
{
method: 'post',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
@dktapps
dktapps / run.php
Last active February 15, 2023 04:52
A basic UDP proxy used to bypass client-side Xbox Live authentication in MCPE 1.2.
<?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
*

#Rules:

  • No spamming
  • No non-verified bots
  • No swearing

#Verified Bots:

  • PocketBot - Utility and fun bot with many commands. by PocketKiller
  • AmirBot - Spamming and looping bot. by Amiro
  • Tim241 - Basic Bot. by Tims_Tech
  • Anaxyn - Huge utility bot with many commands and factoids. by Xenthys
@k3ithos
k3ithos / Travis Build for Plugins
Created June 10, 2016 06:40
A Travis build script for plugins that builds them, then uploads them to a GitHub Pages site.
language: php
php:
- 7.0
branches:
only:
# Set the branches you want built here, as shown below in "master"
- master
before_script:
- pecl install channel://pecl.php.net/pthreads-3.1.6