sudo su
mkdir /usr/share/adminer
cd /usr/share/adminer
wget "https://www.adminer.org/latest.php"
ln -s latest.php adminer.php
echo "Alias /random_string_here_for_ex_vsj935j43s /usr/share/adminer/adminer.php" > /etc/apache2/conf-available/adminer.conf
a2enconf adminer
service apache2 restart
exit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'resque/tasks' | |
require 'resque/scheduler/tasks' | |
def get_pgid(file) | |
pgid = true | |
if File.file?(file) | |
fpid = File.read(file).to_i | |
pgid = `ps -o pgid --no-headers --pid #{fpid}`.strip! | |
if pgid | |
puts "Process group ID found: #{pgid}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat <<EOF >> /etc/apt/sources.list | |
deb http://archive.ubuntu.com/ubuntu precise main restricted universe | |
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe | |
deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse | |
EOF | |
apt-get update | |
apt-get remove \ | |
apache2 \ |
wget http://nmap.org/dist/nmap-6.40.tar.bz2
tar -jxvf nmap-6.40.tar.bz2
cd nmap-6.40
./configure
make "LUA_LIBS=../liblua/liblua.a -ldl -lm"
sudo checkinstall
sudo dpkg -i nmap_6.40-1_amd64.deb
Here’s a tip to fix it: the s3cmd upload/download speed can be tuned by modifying send_chunk
/recv_chunk
variables in the s3cfg
configuration file (the default is 4096 – 4KB). source
Options>preferences>Advanced...
Turn all these settings to false:
left_rail_offer
gui.show_plus_upsell
sponsored_torrent_offer_enabled
bt.enable_pulse
gui.show_notorrents_node
offers.content_offer_autoexec
Install mod_proxy_http:
a2enmod proxy_http
Add to /etc/apache2/apache2.conf
(change ip):
<VirtualHost 11.1.11.111:80 >
ServerName site.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.request.headers.each do |header| | |
next if !header[1].is_a?(String) | |
@@debug["#{header[0]}"] = header[1] | |
end |