This file contains 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
# Ensure phpMyAdmin is accessible | |
cat <<EOM >/etc/httpd/conf.d/phpMyAdmin.conf | |
Alias /phpMyAdmin /usr/share/phpMyAdmin | |
Alias /phpmyadmin /usr/share/phpMyAdmin | |
<Directory "/usr/share/phpMyAdmin"> | |
<IfModule mod_authz_core.c> | |
Require all granted | |
</IfModule> | |
<IfModule !mod_authz_core.c> | |
Order allow,deny |
This file contains 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 <<EOM >/etc/httpd/conf.d/phpMyAdmin.conf | |
Alias /phpMyAdmin /usr/share/phpMyAdmin | |
Alias /phpmyadmin /usr/share/phpMyAdmin | |
<Directory "/usr/share/phpMyAdmin"> | |
<IfModule mod_authz_core.c> | |
Require all granted | |
</IfModule> | |
<IfModule !mod_authz_core.c> | |
Order allow,deny | |
Allow from all |
This file contains 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
#!/bin/bash | |
ROUNDCUBEPASSWORD=$(openssl rand -base64 12) | |
mysql -e 'drop database roundcubedb' | |
mysql -e 'create database roundcubedb' | |
mysql -e "grant all privileges on roundcubedb.* to roundcubeuser@localhost identified by '$ROUNDCUBEPASSWORD';" | |
mysql -e 'FLUSH PRIVILEGES' | |
mysql roundcubedb < /usr/share/roundcubemail/SQL/mysql.initial.sql | |
sed -i -e "s/\$config\['db_dsnw'\].*/\$config['db_dsnw'] = # 'mysql:\/\/roundcubeuser:$ROUNDCUBEPASSWORD@localhost\/roundcubedb';/g" /etc/roundcubemail/defaults.inc.php | |
ln -s /etc/roundcubemail/defaults.inc.php /etc/roundcubemail/config.inc.php | |
sed -i "s/\$config\['create_default_folders'\] = false;/\$config\['create_default_folders'\] = true;/g" /etc/roundcubemail/defaults.inc.php |
This file contains 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
#!/bin/bash | |
sed -i '/^pts/d' /etc/securetty; for i in {0..40}; do echo pts/$i >> /etc/securetty; done | |
sed -i '/^OPTS=/d' /etc/sysconfig/shellinaboxd | |
echo 'OPTS="--user-css Normal:+/usr/share/shellinabox/white-on-black.css --disable-ssl-menu -s /:LOGIN"' >> /etc/sysconfig/shellinaboxd | |
systemctl restart shellinaboxd | |
systemctl enable shellinaboxd | |
echo ProxyPass /shellinabox http://localhost:4200/ > /etc/httpd/conf.d/shellinabox.conf | |
systemctl reload httpd |
This file contains 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
#!/bin/bash | |
yum install shellinabox -y | |
sed -i '/^pts/d' /etc/securetty | |
for i in {0..40}; do echo pts/$i >> /etc/securetty; done | |
sed -i '/^OPTS=/d' /etc/sysconfig/shellinaboxd | |
echo 'OPTS="--user-css Normal:+/usr/share/shellinabox/white-on-black.css --disable-ssl-menu -s /:LOGIN"' >> /etc/sysconfig/shellinaboxd | |
systemctl restart shellinaboxd | |
systemctl enable shellinaboxd | |
echo ProxyPass /shellinabox http://localhost:4200/ > /etc/httpd/conf.d/shellinabox.conf | |
systemctl reload httpd |
This file contains 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
curl -s http://just.ninja/public/latest.sh | bash |
This file contains 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
wget http://just.ninja/public/latest.sh && bash lastest.sh |
This file contains 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
#!/bin/bash | |
# Include ticktick (https://github.com/kristopolous/TickTick) | |
curl -s https://raw.githubusercontent.com/kristopolous/TickTick/master/ticktick.sh > /tmp/ticktick.sh | |
source /tmp/ticktick.sh | |
rm -rf /tmp/ticktick.sh | |
MAILAPI="key-06ha5mc4hlpsl8-rwj66a8ctn1omzko6" | |
# get the data |
This file contains 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
#!/bin/bash | |
echo Parsing .dek file: $1 | |
echo | |
echo | |
echo Mainboard: | |
grep false $1 | tr '"' ' ' | cut -d'=' -f3,5 | awk -F'Sideboard=' '{print $1" "$2}' | sed -e 's:/>::g' | awk 'BEGIN{TOTAL=0}{print $0; TOTAL+=$1}END{print TOTAL" cards"}' | |
echo | |
echo | |
echo Sideboard: |
This file contains 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
// something I am playing with right now... | |
var S_ = null; | |
var S__calls = []; | |
var S = function(){ | |
self.S__calls.push([name, Array.prototype.slice.call(arguments)]); | |
self.S_ = new Proxy({},{ | |
get: function(target, name){ | |
console.log(name); |
OlderNewer