Skip to content

Instantly share code, notes, and snippets.

View dz0ny's full-sized avatar
💭
❤️✖️❓🤖

Janez Troha dz0ny

💭
❤️✖️❓🤖
View GitHub Profile
curl 'http://localhost/wp-admin/admin-ajax.php' -H 'Cookie: cookie' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' --data '_ajax_nonce=dc5ad3b9cc&plugin=akismet%2Fakismet.php&slug=akismet&username=&password=&connection_type=&public_key=&private_key=&action=update-plugin'
r 25 09:07:59 ubuntu-gnome /plugininstall.py[19543]: log-output -t ubiquity umount /target/tmp/.X11-unix
mar 25 09:07:59 ubuntu-gnome /plugininstall.py[19543]: log-output -t ubiquity chroot /target umount /sys
mar 25 09:07:59 ubuntu-gnome /plugininstall.py[19543]: log-output -t ubiquity chroot /target umount /proc
mar 25 09:07:59 ubuntu-gnome /plugininstall.py[19543]: log-output -t ubiquity umount /target/run
mar 25 09:07:59 ubuntu-gnome /plugininstall.py[19543]: log-output -t ubiquity umount /target/dev
mar 25 09:07:59 ubuntu-gnome /plugininstall.py[19543]: log-output -t ubiquity chroot /target mount -t proc proc /proc
mar 25 09:07:59 ubuntu-gnome /plugininstall.py[19543]: log-output -t ubiquity chroot /target mount -t sysfs sysfs /sys
mar 25 09:07:59 ubuntu-gnome /plugininstall.py[19543]: log-output -t ubiquity mount --bind /dev /target/dev
mar 25 09:07:59 ubuntu-gnome /plugininstall.py[19543]: log-output -t ubiquity mount --bind /run /target/run
mar 25 09:07:59 ubuntu-gnome /plugininstall.py[19543]: Verify
#!/usr/bin/env python
"""
Setuptools bootstrapping installer.
Run this script to install or upgrade setuptools.
"""
import os
import shutil
@dz0ny
dz0ny / Makefile
Last active August 29, 2015 14:16
base: post
rm -rf mkdir mopidy_chroot
test -s vivid-core-armhf.tar.gz || { wget http://cdimage.ubuntu.com/ubuntu-core/daily/current/vivid-core-armhf.tar.gz; }
mkdir mopidy_chroot
tar xvf vivid-core-armhf.tar.gz -C mopidy_chroot/ || true
pre:
test -s /usr/bin/qemu-arm-static || { echo "Please install qemu-arm-static! Exiting..."; exit 1; }
cp -f /usr/bin/qemu-arm-static mopidy_chroot/usr/bin
@mount -t proc /proc mopidy_chroot/proc/ || true
http://downloads.wordpress.org/release/wordpress-4.1-new-bundled.zip
28709 ? R 0:00 /usr/sbin/apache2 -k start
3795 ? D 0:00 \_ /usr/sbin/apache2 -k start
30231 ? S 0:00 upstart-socket-bridge --daemon
30234 ? S 0:00 upstart-file-bridge --daemon
30237 ? S 0:00 upstart-udev-bridge --daemon
1833 ? Z 0:00 [apache2] <defunct>
1844 ? R 0:00 /usr/sbin/apache2 -k start
3547 ? D 0:00 \_ /usr/sbin/apache2 -k start
2005 ? Z 0:00 [apache2] <defunct>
2149 ? R 0:00 /usr/sbin/apache2 -k start
define('WP_HOME', 'http://'.$_SERVER['HTTP_HOST'].'/');
define('WP_SITEURL', 'http://'.$_SERVER['HTTP_HOST'].'/');
@dz0ny
dz0ny / LoginWall.php
Last active August 29, 2015 14:10
Wordpress Malware List
<?php
/**
* Plugin Name: Login Wall
* Plugin URI: http://www.loginwall.com/wordpress/
* Description: This plugin enables LoginWall Protection for WordPress logins.
* Version: 1.1.0
* Author: Weak Liver
* Author URI: http://foxmail.com
* License: GPLv2+
*/
#! /usr/bin/perl
# a2query - Apache2 helper to retrieve configuration informations
# Copyright (C) 2012 Arno Töll <[email protected]>
#
# This program is licensed at your choice under the terms of the GNU General
# Public License vserion 2+ or under the terms of the Apache Software License
# 2.0.
#
# For GPL-2+:
@dz0ny
dz0ny / gist:b9e3fce83d0c52e16857
Created October 4, 2014 14:27
fix for fglrx-amdcccle depends on libc6-amd64 (>= 2.3). and fglrx depends on libc6-amd64 (>= 2.3). under ubuntu trusty
#!/bin/sh
mkdir -p driver
mkdir -p cc
dpkg-deb -R fglrx_14.301-0ubuntu1_amd64.deb driver
dpkg-deb -R fglrx-amdcccle_14.301-0ubuntu1_amd64.deb cc
sed -i "s/libc6-amd64/libc6:amd64/" driver/DEBIAN/control
sed -i "s/libc6-amd64/libc6:amd64/" cc/DEBIAN/control
dpkg-deb -b driver fglrx_14.301-0ubuntu1_amd64_fix.deb
dpkg-deb -b cc fglrx-amdcccle_14.301-0ubuntu1_amd64_fix.deb
rm -rf driver