Skip to content

Instantly share code, notes, and snippets.

@gmolveau
gmolveau / firefox_dark_background.md
Last active March 21, 2023 00:18
Firefox dark background / theme for new tab and loading screen
View firefox_dark_background.md

Firefox Dark Background

  • How to change the background on Firefox to a dark one on new tab / loading screen ?

Procedure

  • Type about:config in the URL bar
  • Search toolkit.legacyUserProfileCustomizations.stylesheets and double-click the field to set it to true
  • Type about:support in the URL bar
  • Look for Profile folder field and click on the open button next to it.
@Lexicality
Lexicality / addon_bs.lua
Last active March 21, 2023 00:17
Binary search utility for finding troublesome addons
View addon_bs.lua
--[[
Addon Binary Searcher
Copyright 2018 Lex Robinson
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@CTimmerman
CTimmerman / .prospector.yaml
Last active March 21, 2023 00:17
Out Of Memory (OOM) Killer to save your SSD and other processes.
View .prospector.yaml
pylint:
disable:
- line-too-long
- multiple-imports
- pointless-string-statement
- too-many-nested-blocks
@ajaleelp
ajaleelp / pre-commit.sample
Created June 26, 2019 17:30
Pre-commit git hook to run all linters in golangci-lint
View pre-commit.sample
#!/bin/sh
STAGED_GO_FILES=$(git diff --cached --name-only | grep ".go$")
if [[ "$STAGED_GO_FILES" = "" ]]; then
exit 0
fi
GOLANGCI_LINT=$GOPATH/bin/golangci-lint
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active March 21, 2023 00:15
set -e, -u, -o, -x pipefail explanation
@aprilmintacpineda
aprilmintacpineda / Using Multiple SSH keys - Beginner Friendly.md
Last active March 21, 2023 00:13
Beginner Friendly: Using Multiple SSH keys
View Using Multiple SSH keys - Beginner Friendly.md

How to follow this guide

The problem

I have one computer and two different github accounts. One is for work, the other is for my personal stuff. I can't use the same ssh key twice, so I have to use different ssh key for each of my accounts. How do I do that? How do I switch between these ssh keys?

@CMS0001CMS
CMS0001CMS / README.md
Created July 17, 2021 16:09 — forked from HiroNakamura/README.md
Ejercicios de programación usando OpenCobolIDE
View README.md

Curso de COBOL con OpenCobolIDE

Sentencias IF

Sentencia IF Sentencia abreviada
IF X EQUAL Y IF X = Y
IF X LESS THAN Y IF X < Y
IF X LESS OR EQUAL Y IF X <= Y
@KakersUK
KakersUK / plex-anti-sleep.ps1
Last active March 21, 2023 00:12
PowerShell 7 script to stop the PC from going to sleep if there are any active streams
View plex-anti-sleep.ps1
# Plex on Windows Anti-Sleep
#
# References
# Gist: https://gist.github.com/KakersUK/d090e1836ffb881d29c9f529b380f795
# Install PowerShell 7: https://learn.microsoft.com/en-gb/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3#winget
# X-Plex-Token: https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
# Host variables
$PlexHost = '127.0.0.1'
$PlexPort = 32400
@mithicher
mithicher / pikaday-dark.css
Created May 22, 2020 14:14
Pikaday Theme - Dark version
View pikaday-dark.css
.pikaday-dark {
--backgroundColor: #2d3748;
--textColor: #f7fafc;
--currentDateTextColor: #3182ce;
--selectedDateBackgroundColor: #3182ce;
--selectedDateTextColor: #f7fafc;
--labelTextColor: #3182ce; /* eg. May 2020 */
--weekDaysTextColor: #a0aec0; /* eg. Mo Tu We ....*/
@bramreth
bramreth / Godot4FPS.gd
Last active March 21, 2023 00:10
The code for a first person movement youtube tutorial in Godot 4
View Godot4FPS.gd
extends CharacterBody3D
const SPEED = 5.0
const JUMP_VELOCITY = 4.5
# Get the gravity from the project settings to be synced with RigidDynamicBody nodes.
var gravity: float = ProjectSettings.get_setting("physics/3d/default_gravity")
@onready var neck := $Neck
@onready var camera := $Neck/Camera3d