start new:
tmux
start new with session name:
tmux new -s myname
Usage: | |
ruby mysql_backup.rb db:name [user:your_username] \ | |
[password:your_password] \ | |
[host:your_hostname] \ | |
[file:output_file.sql] | |
Feel free to use, improve, etc. I'm new to Ruby, so excuse anything that makes your palm slap your forehead. ;) |
This turns https://www.sec-consult.com/files/20120626-0_zend_framework_xxe_injection.txt | |
into a Remote Command Execution: | |
NOTE: It relies on the PHP expect module being loaded | |
(see http://de.php.net/manual/en/book.expect.php) | |
joern@vbox-1:/tmp$ cat /var/www/server.php | |
<? | |
require_once("/usr/share/php/libzend-framework-php/Zend/Loader/Autoloader.php"); | |
Zend_Loader_Autoloader::getInstance(); |
import weechat | |
hist = {} | |
histlen = 32 | |
# [head, ..., tail] | |
queue = [] | |
def enqueue(msg): | |
global queue | |
if msg is None: |
Took a little inspiration from the News widget to construct this Reddit widget. Simply add the subreddit .json feed URLs that you want to the top of the reddit.rb job script, and the widget will cycle through each one, showing top posts, their score, and comment count. You can also set the maxcount higher or lower, the default is 5 posts.
##Usage
The MIT License (MIT) | |
Copyright (c) 2014 Matteo Rinaudo | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
# Install ARCH Linux with encrypted file-system and UEFI | |
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
# Download the archiso image from https://www.archlinux.org/ | |
# Copy to a usb-drive | |
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
# Set swedish keymap |
# Enable "presence" events | |
# - http://docs.saltstack.com/en/latest/ref/configuration/master.html#presence-events | |
# - http://docs.saltstack.com/en/latest/topics/event/master_events.html#presence-events | |
presence_events: True | |
reactor: | |
# Note: This tag has a typo in it (version 2014.1.5), subject to change! | |
- 'salt/presense/change': | |
- /srv/reactor/presence.sls |
# BlackArch Mirror list | |
## Australia | |
#Server = http://blackarch.mirror.digitalpacific.com.au/$repo/os/$arch | |
#Server = rsync://mirror.digitalpacific.com.au/blackarch/$repo/os/$arch | |
## Austria | |
#Server = http://mirror.easyname.at/blackarch/$repo/os/$arch | |
#Server = ftp://mirror.easyname.at/blackarch/$repo/os/$arch | |
#Server = rsync://mirror.easyname.at/blackarch/$repo/os/$arch |
// To the extent possible under law, the Yawning Angel has waived all copyright | |
// and related or neighboring rights to orhttp_example, using the creative | |
// commons "cc0" public domain dedication. See LICENSE or | |
// <http://creativecommons.org/publicdomain/zero/1.0/> for full details. | |
package main | |
import ( | |
// Things needed by the actual interface. | |
"golang.org/x/net/proxy" |