script for batch adding users to a WordPress website.
DO NOT use in production environments.
This is just for testing purposes.
USE AT YOUR OWN RISK!
DO NOT BLAME ME IN CASE OF DAMAGES!!
#! /bin/bash | |
#### SCRIPT OPTIONS #### | |
# the docroot for your webserver | |
WEBSERVER="/home/www/htdocs" | |
# hidden directory inside the docroot (if you want to use another directory outside of the docroot you have to change the whole script) | |
BASEDIR=".base" | |
# where the temp files has to be stored? | |
TMPDIR="/tmp/wp_manager" | |
# if you know WordPress this is self explanatory ;) |
#! /bin/bash | |
##### EXIT STATUS ##### | |
E_INTERROR=71 | |
E_NOINPUTVIDEOT=72 | |
E_ALREADYTHM=73 | |
E_NOSEC=74 | |
E_NOINPUTVIDEOV=75 |
#!/bin/bash | |
WPAPERS="/home/danix/Immagini/natura" | |
while true; do | |
find $WPAPERS -type f \( -name '*.jpg' -o -name '*.png' \) -print0 | | |
shuf -n1 -z | xargs -0 fbsetbg -f | |
sleep 10m | |
done |
data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> | |
<!-- | |
For other language: Instead of `ace/mode/ruby`, Use | |
Markdown -> `ace/mode/markdown` | |
Python -> `ace/mode/python` | |
C/C++ -> `ace/mode/c_cpp` | |
Javscript -> `ace/mode/javascript` | |
Java -> `ace/mode/java` | |
Scala- -> `ace/mode/scala` |
# no annoying audible bell, please | |
vbell on | |
# detach on hangup | |
autodetach on | |
# don't display the copyright page | |
startup_message off | |
# emulate .logout message |
<a href="javascript:var%20uri=window.location.href;xhr=new%20XMLHttpRequest();xhr.open('POST','https://www.googleapis.com/urlshortener/v1/url',false);xhr.setRequestHeader('Content-Type','application/json');xhr.send(JSON.stringify({longUrl:uri}));var%20json=xhr.responseText;var%20obj=JSON.parse(json);alert(obj.id);">goo.gl this page</a> |
#!/bin/bash | |
# qrencoder.sh - qrencoder.sh - a little bash script that uses libqrencode to build a QR Code with your infos | |
# libqrencode by Fukuchi Kentaro | |
# http://fukuchi.org/works/qrencode/ - official website | |
# https://github.com/fukuchi/libqrencode - development version on github | |
if [[ ! -z $1 ]];then |
# we have a test file | |
FILE=test.avi | |
# and we want to output just its filename without the extension | |
echo ${FILE%.avi} | |
# this returns | |
# test | |
# ;) |
// adds custom default gravatar for not logged in users | |
function sog_default_gravatar($avatar_defaults) { | |
$myavatar = get_bloginfo('stylesheet_directory') . '/images/mystery_danixland.jpg'; | |
$avatar_defaults[$myavatar] = "danixland"; | |
return $avatar_defaults; | |
} | |
add_filter( 'avatar_defaults', 'sog_default_gravatar' ); |