Skip to content

Instantly share code, notes, and snippets.

View Ad5001's full-sized avatar
💭
Mirror of https://git.ad5001.eu/Ad5001

Ad5001 Ad5001

💭
Mirror of https://git.ad5001.eu/Ad5001
View GitHub Profile
@Ad5001
Ad5001 / plugin.yml
Last active December 30, 2015 19:34
Test - Auto-generated gist plugin stub by pmt.mcpe.me InstaPlugin
---
name: Test
author: Ad5001
version: "0.01"
api: 1.13.0
main: Ad5001\Test\Main
website: http://ad5001.tk
description: A simple test plugin to trying to create a pocketmine plugin
commands:
@Ad5001
Ad5001 / Troll.ps1
Created July 16, 2016 12:47
Troll persons on your windows computer witha simple script !
# How to use ? Open the powershell then copy paste this code and press Enter ! You will get infinite notification with an annoying sound xD
# To stop this script, simply stop the "Windows PowersShell" Process !
$t = '[DllImport("user32.dll")] public static extern bool ShowWindow(int handle, int state);'
add-type -name win -member $t -namespace native
[native.win]::ShowWindow(([System.Diagnostics.Process]::GetCurrentProcess() | Get-Process).MainWindowHandle, 0)
while($i -lt 9999) {
$i++
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null
[Windows.UI.Notifications.ToastNotification, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null
[Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime] | Out-Null
@Ad5001
Ad5001 / compile.sh
Last active September 2, 2017 17:09
Compiles PocketMine with the C-Anvil class & level DB
#!/bin/bash
[ -z "$PHP_VERSION" ] && PHP_VERSION="7.2.0RC1"
PHP_IS_BETA="yes"
ZEND_VM="GOTO"
ZLIB_VERSION="1.2.11"
MBEDTLS_VERSION="2.4.2"
GMP_VERSION="6.1.2"
@Ad5001
Ad5001 / JSBrainfuck.js
Created December 10, 2017 21:26
Can you guess what it does?
[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]][([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(!![]+[])[+[]]+([]+{})[+!![]]+(!![]+[])[+!![]]](([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(![]+[])[!+[]+!![]]+([][[]]+[])[!+[]+!![]+!![]]+[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]][([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(!![]+[])[+[]]+([]+{})[+!![]]+(!![]+[])[+!![]]]((!![]+[])[+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+!![]]+([]+{})[!+[]+!![]+!![]+!![]+!![]+!![]+!![]]+([][[]]+[])[+[]]+([][[]]+[])[+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(![]+[])[!+[]+!![]+!![]]+([]+{})[!+[]+!![]+!![]
@Ad5001
Ad5001 / odt2tts.sh
Last active December 19, 2017 18:10
Adds TTS to ODT formats
#!/bin/sh
INSTALL="";
NEED_INSTALL=false;
if which pico2wave >/dev/null; then
echo "Found pico2wave..."
else
INSTALL="pico2wave"
NEED_INSTALL=true;
echo "Installing pico2wave..."
fi
@Ad5001
Ad5001 / img2odt.sh
Last active December 20, 2017 10:25
Script to transcript an image to an ODT file for linux & macos. Dependencies: tesseract-ocr, docutils (https://sourceforge.net/projects/docutils/?source=typ_redirect)
#!/bin/sh
convert $1 /tmp/out.tif
tesseract -l ${1:fra} /tmp/out.tif /tmp/out > /tmp/img2odt.log || echo "Error! Image conversion failed. Check /tmp/img2odt for more infos"
rst2odt.py /tmp/out.txt "$(pwd)/out.odt"
@Ad5001
Ad5001 / screenshot.png
Last active October 19, 2020 18:31
Compress tabs to show dozens of them. For Firefox. How to add custom userChrome.css: https://www.userchrome.org/how-create-userchrome-css.html
screenshot.png
@Ad5001
Ad5001 / example.php
Created March 19, 2018 18:29
This should just work... Right?
<?php
$test = "test";
echo $test;
if ⟮$test ⩶ "test"⟯{
⧣ We checked an always true solution!
$test = $test ․ "bar";
echo $test︕⩵ "testbar" || $test ⩵ "test"︖ "Hey"︓ "None";