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
/* | |
Minecraft Server Status code for Discord.js | |
Author: https://github.com/mariolatiffathy | |
Usage: %mcserver IP:PORT | if PORT is not specified then 25565 will be used. | |
*/ | |
const { Client, Util } = require('discord.js'); | |
const Discord = require('discord.js'); | |
const client = new Client(); | |
var prefix = "%"; |
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
<?php | |
function ProtectMyCode($html) { | |
$complex_html = str_replace(array("\r","\n"),"",$html); | |
$encoded = base64_encode($complex_html); | |
session_start(); | |
$_SESSION['jsvar'] = chr(rand(65,90)).chr(rand(65,90)).chr(rand(65,90)).chr(rand(65,90)).chr(rand(65,90)).chr(rand(65,90)).chr(rand(65,90)).chr(rand(65,90)).chr(rand(65,90)); | |
$_SESSION['divid'] = chr(rand(65,90)).chr(rand(65,90)).chr(rand(65,90)).chr(rand(65,90)).chr(rand(65,90)).chr(rand(65,90)).chr(rand(65,90)).chr(rand(65,90)).chr(rand(65,90)); | |
echo ' | |
<script> | |
var '.$_SESSION['jsvar'].' = atob("'.$encoded.'"); |
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
public static void ThreadsafeWriter(String text, String file) throws IOException { | |
/* | |
@author: mariolatiffathy | |
@source: gist.github | |
@description: A thread-safe writer that you can use to write to the same file through multiple threads. | |
@usage: ThreadsafeWriter(String: text, String: file) | |
@example: ThreadsafeWriter("Hello World", "File.txt") | |
@methodType: public, static | |
*/ | |
String nodeValue = text; |
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
function sleep(milliseconds) { | |
var start = new Date().getTime(); | |
while (true) { | |
if ((new Date().getTime() - start) > milliseconds) { | |
break; | |
} | |
} | |
} | |
function deleteMessages() { |
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
<?php | |
// NOTE: Also follow this answer: https://stackoverflow.com/a/2429162/8524395 | |
set_time_limit(0); | |
$requireds = array("fid", "fname"); | |
foreach($requireds as $required) { | |
if( !isset($_GET[$required]) || empty($_GET[$required]) ) { | |
die("error."); | |
} | |
} | |
$gdrive_api_key = ""; // Not necessary to be API key for the account which uploaded the file. The file just have to be enabled for sharing with anyone. |
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
import phonenumbers | |
import requests | |
import threading | |
import time | |
import string | |
import random | |
import urllib3 | |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) |
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
const WebSocket = require('ws'); | |
const wss = new WebSocket.Server({ port: 25595 }); | |
wss.on('connection', function connection(ws, req) { | |
var timer; | |
var firstMessageSent = false; | |
var areYouSureAsked = false; | |
const ip = req.socket.remoteAddress; | |
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
""" | |
https://github.com/0sir1ss/Carbon | |
""" | |
import ast | |
import re | |
import random | |
import io | |
import tokenize | |
import os | |
import zlib, base64 |
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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools"> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.WAKE_LOCK" /> | |
<application |
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
const bodyparser = require("body-parser"); | |
const express = require("express"); | |
var admin = require("firebase-admin"); | |
var serviceAccount = require("./serviceAccountFile.json"); | |
// init | |
admin.initializeApp({ | |
credential: admin.credential.cert(serviceAccount), |
OlderNewer