Skip to content

Instantly share code, notes, and snippets.

View troglodyne's full-sized avatar
🧱
Stacking the bricks

Andy Baugh troglodyne

🧱
Stacking the bricks
View GitHub Profile
@troglodyne
troglodyne / dark_orb4WebMail.css
Created September 10, 2019 15:40
WebMail Dark mode CSS for cPanel & WHM
@-moz-document regexp("^http[s]?://[a-zA-Z0-9._-]+:209[56]/.*") {
body {
background-color: black;
}
#content {
filter: invert(100%);
}
}
@troglodyne
troglodyne / dark_orb4cP.css
Created September 10, 2019 15:35
cPanel Dark mode CSS
@-moz-document regexp("^http[s]?://[a-zA-Z0-9._-]+:208[23]/.*") {
body {
background-color: black;
}
#sidebar,
#quickjump,
body#home .table,
body#home #boxes .panel-body {
background-color: lightgray;
filter: invert(100%);
@troglodyne
troglodyne / dark_orb.css
Last active October 12, 2023 17:27
WHM Dark mode CSS for use in Stylus plugin
/*
You may need to replace the line below with something like:
@-moz-document domain("whm.my.domain.name") if using the whm proxy subdomain
*/
@-moz-document regexp("^http[s]?://[a-zA-Z0-9._-]+:208[67]/.*") {
#topFrameWrapper > div {
background-color: #1d1d1d;
color: white;
}
#pageContainer {
@troglodyne
troglodyne / disable_all_user_notifications_of_types.pl
Last active November 2, 2017 23:33
Script for disabling iContact notifications of the types you pass in for ALL cPanel Accounts
#!/usr/local/cpanel/3rdparty/bin/perl
package skiddie::iContactDisabler4Users;
use strict;
use warnings;
use Cpanel::CustInfo::Model ();
use Cpanel::ArrayFunc::Uniq ();
use JSON::MaybeXS ();
@troglodyne
troglodyne / cookieMonster.js
Created July 25, 2017 21:20
JS Cookie getter/setter
function getCookies() {
var cookies = document.cookie.split("; ");
for( var i = 0; i < cookies.length; i++ ) {
cookies[i] = cookies[i].split("=");
}
return cookies;
}
function setCookies(cookies) {
for( var i = 0; i < cookies.length; i++ ) {
@troglodyne
troglodyne / keybase.md
Created April 9, 2017 16:09
keybase.md

Keybase proof

I hereby claim:

  • I am troglodyne on github.
  • I am troglodyne (https://keybase.io/troglodyne) on keybase.
  • I have a public key ASBnb7tl4Yprcq8Tsz3otwAMecWGbIuECVP91lZsgiO6awo

To claim this, I am signing this object:

@troglodyne
troglodyne / cP_clevel_mongler.pl
Last active February 17, 2022 20:55
[cPanel] Perl Mechanize script for setting all /var/cpanel/clevels.conf values at once
use strict;
use warnings;
use WWW::Mechanize;
use Term::ReadKey;
use Getopt::Long;
# Get options
my ( $host, $password, %opts );
GetOptions(