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 dmmc.md

Kindly put all your complaints and queries under this thread.

A few things to keep in mind while posting:

  1. Adding the URL/watermark is mandatory. The png files can be found under group files.
  2. We would appreciate it if you could stick to the standard meme fonts such as Roboto, Helvetica® or Impact because weird fonts make memes cringy and also it saves us the pain of re-editing the memes if they're selected to the page.
  3. Stick to the standard ratio for social media (1:1, 4:3, 16:9) while posting videos. Try to maintain 1:1 for images.
  4. We suggest the new members to dig deep in the group so that you'll get familiarised with the kinds of memes that get approved (and also check this thread for getting an idea about the memes that mostly don't get approved) and it can prevent you from creating reposts. Also, feel free to be a little extra creative and make your own templates.
View analytics.js
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-163891311-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-163891311-1');
</script>
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

You can’t perform that action at this time.