This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function bruteforce(id, pass) { | |
pass = ('0000' + pass).slice(-4) | |
const resc = await (async function f() { | |
try { | |
const res = await (await fetch(`${window.location.href.replace(/\/+$/, '')}/resc/`)).text() | |
const match = res.match(/(\d+(?:\+|\-)\d+)[\s\S]+value=(.+)>/) | |
if (match) { | |
return { | |
formula: match[1], | |
solution: eval(match[1]), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script mutes spotify when it plays an advertisement | |
# Requires playerctl and pactl | |
check_deps() { | |
if ! [ -x "$(command -v playerctl)" ]; then | |
echo 'Error: playerctl is not installed or not in PATH. Check https://github.com/altdesktop/playerctl' >&2 | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <arpa/inet.h> | |
#include <string.h> | |
#include <string> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#IF statment will use this var to notify user about low battery | |
LESS_THAN=70 | |
#Interval in sec | |
INTERVAL=30 | |
while true; | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// extend strings with the method "contains" | |
String.prototype.contains = function(str) { return this.indexOf(str) != -1; }; | |
// profanities of choice | |
var profanities = new Array("ass", "cunt", "pope"); | |
var containsProfanity = function(text){ | |
var returnVal = false; | |
for (var i = 0; i < profanities.length; i++) { | |
if(text.toLowerCase().contains(profanities[i].toLowerCase())){ |