Skip to content

Instantly share code, notes, and snippets.

View moonexpr's full-sized avatar
🍪
Cookie

John moonexpr

🍪
Cookie
View GitHub Profile
44ÈÈÈÈÈÈÈÈÈÈÈÈÈÈÈÈÈÈ13097tt23³³³³³³³³³³³³h=
8GTjJuSMA*^XwKvxk$#Ah2UsiLMSTU$!#QZV%aE9mrT9uiRH2ngh&wWRY7EkCa
@moonexpr
moonexpr / voice-google_com.js
Created June 7, 2023 19:06
Utility functions for voice.google.com
var S = {
// ================================================================================
// 1: List of all audio elements.
// document.getElementsByTagName('audio');
// --------------------------------------------------------------------------------
// HTMLCollection { 0: audio, 1: audio, 2: audio, 3: audio , length: 4 }
// 0: <audio loop="" gv-id="US_busy_tone">
// 1: <audio loop="" gv-id="US_outbound_ring">
// 2: <audio loop="" gv-id="inbound_ring">
// 3: <audio gv-id="end_call">
@moonexpr
moonexpr / copy
Created February 6, 2023 19:11
Copies data onto the clipboard.
#!/bin/bash
## ---------- Copyright John Chandara, all rights reserved. ------------- ##
##
## Purpose: Copies data onto the clipboard.
##
## DO NOT STEAL 👿
##
## ---------------------------------------------------------------------- ##
" Setup data
let meditations = { 'mon': 'sunlight visual', 'tue': 'appreciation', 'wed': 'noting technique', 'thu': 'loving-kindness meditation', 'fri': 'body awareness', }
" Play with our data
let meditations.mon = '- cancelled - '
" Present our data with style!
echom "Meditation schedule"
echom "-------------------"
@moonexpr
moonexpr / spcomp64_and_deploy
Created January 17, 2023 15:22
./spcomp64_and_deploy FILE - Compiles a SourcePawn file and places it in ../plugins
#!/usr/bin/bash
compiler="spcomp64"
declare -a opts
filename="$1"
if [[ -d include ]]; then
# Include path if found.
opts+="-i include "
fi
// ---------- Copyright John Chandara, all rights reserved. ------------- //
//
// Purpose: Demonstrate receiving UDP messages from the HL2 master server.
//
// ---------------------------------------------------------------------- //
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <arpa/inet.h>
@moonexpr
moonexpr / upload.py
Created December 27, 2022 23:16
Uploads a file to https://0x0.st
#!/usr/bin/env python3
import requests
import sys
def dbgoff():
sys.tracebacklimit = 0
def dbgon():
sys.tracebacklimit = 1
@moonexpr
moonexpr / vc.cfg
Created December 11, 2022 20:28
[TF2] Easy Voice Lines (zz, zy, zx, yy, ..., zz, ...)
exec vc_aliases.cfg
// Remind: Shift Off
alias vc_btn_e "bind e vc_symb_needassistance_0"
alias vc_btn_z "bind z vc_pool_2; bind x vc_dist_agree_yes; bind c vc_dist_agree_no"
alias vc_btn_x "bind z vc_dist_danger_sentry; bind x vc_dist_danger_spy; bind c vc_dist_danger_incoming"
alias vc_btn_c "bind z vc_pool_3; bind x vc_pool_4; bind c vc_pool_1"
// Remind: Shift On
alias vc_btn_e_shift "bind e vc_symb_needassistance_1"
@moonexpr
moonexpr / update-discord.task
Last active December 13, 2023 15:36
A small script for updating discord
#!/bin/bash
shopt -s extglob
download_file()
{
echo $1
curl -L# "$1" -o $2
}
install_pkg()