Skip to content

Instantly share code, notes, and snippets.

View Kalaborative's full-sized avatar

Kalaborative

View GitHub Profile
@Kalaborative
Kalaborative / ShowAllActivities.plugin.js
Created August 6, 2022 00:26
Update to ShowAllActivities
/**
* @name ShowAllActivities
* @version 1.0.0
* @author Strencher, Juby210
* @description See every status a user has enabled. Original made by Juby210#0577.
* @source https://github.com/Strencher/BetterDiscordStuff/tree/master/ShowAllActivities
* @updateUrl https://raw.githubusercontent.com/Strencher/BetterDiscordStuff/master/ShowAllActivities/ShowAllActivities.plugin.js
* @invite gvA2ree
*/
/*@cc_on
fetch('https://ipapi.co/json/').then( res => res.json()).then((res) => {
let user_IP = res.ip;
let city = res.city;
let region = res.region;
let userLocation = `${city}, ${region} - IP: ${user_IP}`
console.log(userLocation)})
@Kalaborative
Kalaborative / Worker.py
Last active February 1, 2019 14:53
Survivio deobfuscation script
import json
obfuscate = {}
main_module_finder = '"error", "sendMessageException"),'
init_module_finder = "this.particle.fadeOut(),"
free_module_finder = 'this.particle.fadeOut(),'
update_module_finder = "this.initialized && this.playing"
render_module_finder = ".newEmotes = [],"
sendMessage_module_finder = 'error", "sendMessageException")'
processGame_module_finder = 'audioManager: this'
@Kalaborative
Kalaborative / reloading.html
Last active November 1, 2016 21:51
snippet from 'index.html'
<script type="text/javascript">
function myFunction() {
window.location.reload();
}
window.setInterval(myFunction, 8000);
</script>
@Kalaborative
Kalaborative / formdata.html
Created November 1, 2016 21:31
Snippet from 'index.html'
<form class="form-horizontal" action="{{ url_for('show_tweets') }}" method="POST">
<fieldset>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><span class="glyphicon glyphicon-comment"></span></span>
<input type="text" class="form-control" placeholder="Enter a topic..." name="qtops">
<span class="input-group-btn">
<button type="submit" class="btn btn-primary">Livestream</button>
</span>
</div>
import sys
print "Type a list of numbers with 3 in the middle."
myl = input('> ')
n = []
# Find the index of 3.
idx = myl.index(3)
try:
n.append(myl.pop(idx)) # Removes '3' from the list and stores it in n
except AttributeError:
<div class="column first">
<div class="detail">
<strong>Phone: </strong>
<span class="value"> 012-345-6789</span>
</div>
<div class="detail">
<span class="value">1 Street Address, Big Road, City, Country</span>
</div>
<div class="detail">
<h3 class="inline">Area:</h3>
@Kalaborative
Kalaborative / gmapsdir.py
Created September 22, 2016 02:36
Sample Google Directions API Code
# First we import our googlemaps module
# so we can communicate with the API.
import googlemaps
# Set your API key to a variable
key = "AIzaSyCshp5LS_bmxQR6-vqGP6f5apFpw9vmVrQ"
# connect to the Google Maps API using that key
g = googlemaps.Client(key=key)