Skip to content

Instantly share code, notes, and snippets.

🔧
tinkering

Mighil mighildotcom

🔧
tinkering
Block or report user

Report or block mighildotcom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View wp-dark.css
/* Visit the attached link for full guide
Now that prefers-color-scheme is available for modern web browsers,
you can use it to enable an automatic dark mode for WordPress websites.
The recommended logic*/
@media (prefers-color-scheme: dark) {
body {
background-color: #121212;color: #fafafa;}}
@mighildotcom
mighildotcom / generate-settings-export-12-18-2019.json
Created Dec 18, 2019
Site settings for the GeneratePress Automatic Dark Mode Template. Visit https://mighil.com/gp-dark for additional CSS and guide.
View generate-settings-export-12-18-2019.json
{"modules":{"Backgrounds":"generate_package_backgrounds","Blog":"generate_package_blog","Colors":"generate_package_colors","Copyright":"generate_package_copyright","Elements":"generate_package_elements","Disable Elements":"generate_package_disable_elements","Menu Plus":"generate_package_menu_plus","Secondary Nav":"generate_package_secondary_nav","Sections":"generate_package_sections","Spacing":"generate_package_spacing","Typography":"generate_package_typography"},"mods":{"font_body_variants":"regular,italic,700,700italic","font_body_category":"serif","font_site_title_variants":"300,300italic,regular,italic,700,700italic,900,900italic","font_site_title_category":"serif","font_site_tagline_variants":false,"font_site_tagline_category":false,"font_navigation_variants":false,"font_navigation_category":false,"font_secondary_navigation_variants":false,"font_secondary_navigation_category":false,"font_buttons_variants":false,"font_buttons_category":false,"font_heading_1_variants":false,"font_heading_1_category":false,
@mighildotcom
mighildotcom / additional.css
Last active Dec 18, 2019
Additional CSS for GeneratePress Automatic Dark Mode Template. Visit https://mighil.com/gp-dark for .json file and guide.
View additional.css
.main-navigation {
border-top: 1px solid #efefef;
border-bottom: 1px solid #efefef;
}
code {
background: #72b1db;
color: #fafafa;
padding: 2px;
border-radius: 3px;
}
View vesta-wp2.sh
#!/bin/bash
# This script installs WordPress from Command Line.
#Colors settings
BLUE='\033[0;34m'
GREEN='\033[0;32m'
RED='\033[0;31m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color
@mighildotcom
mighildotcom / extra.php
Created Nov 21, 2019
Add this to the bottom of functions.php
View extra.php
/** function to shorten freshness display from say '1 month, 2 weeks' to '1 month'**/
function short_freshness_time( $output) {
$output = preg_replace( '/, .*[^ago]/', ' ', $output );
return $output;
}
add_filter( 'bbp_get_time_since', 'short_freshness_time' );
add_filter('bp_core_time_since', 'short_freshness_time');
/** redirect after login **/
function login_redirect( $redirect_to, $request, $user ){
return home_url('forums');
View follow.js
function isHidden(el) {
if(el) return (el.offsetParent === null);
else return false;
}
TotalUnfollowed = 0;
var LoadingAnimation = document.getElementsByClassName("initial-load-animation")[0];
var CatchLoadingAnimation = setInterval(function(){
if(isHidden(LoadingAnimation) == true) {
@mighildotcom
mighildotcom / unfollow.js
Last active Oct 19, 2019
LinkedIn Unfollow Script
View unfollow.js
function isHidden(el) {
if(el) return (el.offsetParent === null);
else return false;
}
TotalUnfollowed = 0;
var LoadingAnimation = document.getElementsByClassName("initial-load-animation")[0];
var CatchLoadingAnimation = setInterval(function(){
if(isHidden(LoadingAnimation) == true) {
@mighildotcom
mighildotcom / gtt-wip.md
Created Oct 16, 2019
GTT Migration WIP
View gtt-wip.md

GTT Migration Work in Progress Documentation

View qbittorrent-nox.service
[Unit]
Description=qBittorrent Command Line Client
After=network.target
[Service]
#Do not change to "simple"
Type=forking
User=qbittorrent-nox
Group=qbittorrent-nox
UMask=007
View premium-domains.md

You’re here because you want one of these domains.

  • 39.ae
  • eym.io
  • calicut.xyz
  • china.org.in
  • mgh.li
  • mz.gy
  • India.lu
  • chengdu.digital
You can’t perform that action at this time.