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 | |
chmod 775 /usr/bin/ | |
chmod 777 /usr/bin/gnome-text-editor | |
chmod 755 /usr/bin/img_stat | |
chmod 777 /usr/bin/kotlinc-jvm | |
chmod 755 /usr/bin/mod | |
chmod 755 /usr/bin/libmcrypt-config | |
chmod 755 /usr/bin/systemd-nspawn | |
chmod 755 /usr/bin/nmblookup |
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
# 2020-12-20: | |
Moved to https://github.com/allanlaal/hide-stackexchange-sidebars [to get a stable userscript url and have multiple flavours] |
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
// @desc AIS keyboard layout | |
// @author Allan Laal <[email protected]> | |
// @install Add Estonian keyboard layout. delete old Estonian keyboard layout | |
// project location: /afs/acn/infra./laptop./keyboard./layout. | |
// actual layout path: /usr/share/X11/xkb/symbols | |
// $ sudo ln -sf /afs/acn/infra./laptop./keyboard./layout./ee /usr/share/X11/xkb/symbols/ex | |
// | |
// DEPRECATED?: RELOAD layout: setxkbmap -option lv3:caps_switch -option lv5:ralt_switch -option terminate:ctrl_alt_bksp -layout 'ex' -symbols 'alcom' | |
// setxkbmap -layout 'ex' -symbols 'alcom' -v 10 |
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
var dynamicStyles = false; | |
var dynamicStylesCache = []; | |
var dynamicStylesLastId = 0; | |
/** | |
* | |
* @param ruleName string | |
* @param ruleContents array of key value pairs of CSS rules |
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
// install the KeyConfig extension from http://mozilla.dorando.at/keyconfig.xpi and add this code as a new key | |
// First get all toolbars (that are not the tab bar) | |
var tbs = Array.filter(document.querySelectorAll('toolbar'), function (x) { | |
// remove // from the below line to keep showing the tabs toolbar: | |
//return x.id != 'TabsToolbar'; | |
return true; | |
}); | |
// For each toolbar |
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
<?php | |
/** | |
* @desc MySQL restarter | |
* @example # /root/scripts/mysql_restarter.php >> /root/scripts/mysql_restarter.log | |
* @author Allan Laal <[email protected]> | |
* @since 2013-10-05 | |
* @version DIRTY | |
*/ | |
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/sh | |
WORKDIR=/root/subdomain_bugfix_daemon/ | |
# I recommend using a dedicated MySQL user with only SELECT rights if you are paranoid: | |
user="root" | |
pass="YOUR MYSQL PASSWORD HERE" | |
db="zpanel_core" | |
(mysql -u "$user" -p"$pass" "$db" <<EOF | |
SELECT COUNT(*) AS total FROM x_vhosts | |
EOF |
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
-- | |
-- Table structure for table `currency` | |
-- | |
CREATE TABLE IF NOT EXISTS `currency` ( | |
`iso` char(3) CHARACTER SET utf8 NOT NULL DEFAULT '', | |
`name` varchar(200) COLLATE utf8_unicode_ci NOT NULL, | |
PRIMARY KEY (`iso`), | |
UNIQUE KEY `name` (`name`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
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
-- | |
-- Table structure for table `country` | |
-- | |
CREATE TABLE IF NOT EXISTS `country` ( | |
`iso` char(2) COLLATE utf8_unicode_ci NOT NULL, | |
`name` varchar(80) COLLATE utf8_unicode_ci NOT NULL, | |
`nicename` varchar(80) COLLATE utf8_unicode_ci NOT NULL, | |
`iso3` char(3) COLLATE utf8_unicode_ci DEFAULT NULL, | |
`numcode` smallint(6) DEFAULT NULL, |