Skip to content

Instantly share code, notes, and snippets.

View navjotjsingh's full-sized avatar
🏠
Working from home

Navjot Singh navjotjsingh

🏠
Working from home
View GitHub Profile
@MaximilianKohler
MaximilianKohler / xenforo-forum-guide.md
Last active April 1, 2024 04:32
Detailed startup guide for newbies on migrating to, and setting up a Xenforo forum. Including reddit-like titles, and threaded comment view. [Centmin Mod]
@OndrejValenta
OndrejValenta / install_postgres_rockylinux.md
Last active April 6, 2024 23:47
Install PostgreSQL 15 on RockyLinux 9
/* You need to take care of the compatibility */
/* For firefox ::-moz-range-thumb */
/* For IE ::-ms-thumb */
input[type="range"] {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
@OlafHaag
OlafHaag / figure.html
Created April 13, 2020 00:32
Hugo Magnific Popup figure shortcode with fallback image
<!-- use either src or link-thumb for thumbnail image -->
{{ $src := .Get "src" }}
{{ $url := (.Get "link" | default (.Get "src")) }}
<!-- Allow local and remote images -->
{{ if and $src (not (findRE "^(/|http(s?)://)" $src)) }}
{{ $src = ($.Page.Resources.GetMatch (.Get "src")).RelPermalink }}
{{ end }}
{{ if not (findRE "^(/|http(s?)://)" $url) }}
{{ $url = ($.Page.Resources.GetMatch $url).RelPermalink }}
{{ end }}
@felixarntz
felixarntz / google-site-kit-track-comments.php
Last active November 21, 2019 10:25
WordPress mini plugin as an extension to Site Kit that tracks WordPress comment form submissions via Google Analytics.
<?php
/**
* Site Kit by Google Track Comments plugin file.
*
* @package Google\Site_Kit_Track_Comments
* @author Felix Arntz, Google
* @license GPL-2.0-or-later
* @copyright 2019 Google Inc.
*
* @wordpress-plugin
@felixarntz
felixarntz / google-site-kit-anonymize-ips.php
Last active August 25, 2021 17:02
WordPress mini plugin as an extension to Site Kit that ensures the inserted Google Analytics snippet anonymizes IP addresses.
<?php
/**
* Site Kit by Google Anonymize IPs plugin file.
*
* @package Google\Site_Kit_Anomyize_IPs
* @author Felix Arntz, Google
* @license GPL-2.0-or-later
* @copyright 2019 Google Inc.
*
* @wordpress-plugin
@tatianamac
tatianamac / tatiana-mac-speaker-rider.md
Last active March 24, 2024 12:22
Tatiana Mac's Speaker Rider

Speaker Rider

by Tatiana Mac

Last updated 14 April 2021

What is a speaker rider?

As speaking comes with immense privilege, I have crafted a speaker rider to set expectations and boundaries around my engagement. I am grateful to all the conference organisers who have brilliantly hosted me. I would love to continue to exercise this privilege to speak at conferences, and use this privilege to make the landscape more accessible and beneficial to tech's most historically excluded and marginalised communities.

Considerations

😫 I provide a lot of explanations for those of you who never had to consider these things. Most thoughtful conferences I've attended check most of these boxes intrinsically, particularly when conference runners are experienced speakers. They get it.

@TrillCyborg
TrillCyborg / mastodon-docker-setup.md
Last active May 5, 2024 22:42
Mastodon Docker Setup

Mastodon Docker Setup

Setting up

Clone Mastodon's repository.

# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live

cd ~/live

@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active May 4, 2024 15:47
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@justlaputa
justlaputa / unstar-all-repos.md
Last active May 1, 2024 02:42
How to unstar all your github starred repos