Skip to content

Instantly share code, notes, and snippets.

View killshot13's full-sized avatar
Working remotely

Michael R. killshot13

Working remotely
View GitHub Profile
@killshot13
killshot13 / .wslconfig
Last active March 24, 2024 20:22
My personal configuration files [.wslconfig & wsl.conf] for Windows Subystem for Linux 2. These example do contain all of the most recent options for said files, but do not represent the default values in each situation. (asterisk = only available on Win 11)
[wsl2]
# An absolute Windows path to a custom Linux kernel.
# kernel=The Microsoft built kernel provided inbox (default)
# How much memory to assign to the WSL 2 VM, this can be set as whole numbers using GB or MB. Default is 50% of total memory on Windows or 8GB, whichever is less; formerly 80% of total memory on Windows.
memory=5700MB
# How many logical processors to assign to the WSL 2 VM.
# processors=The same number of logical processors on Windows (default)
@killshot13
killshot13 / settings.jsonc
Last active May 21, 2023 14:43
vscode-colorized-brackets
{
// Controls whether bracket pair colorization is enabled or not. Use 'workbench.colorCustomizations' to override the bracket highlight colors.
"editor.bracketPairColorization.enabled": true,
// Controls whether the editor should render indent guides.
"editor.guides.indentation": true,
// Controls whether bracket pair guides are enabled or not.
// - true: Enables bracket pair guides.
// - active: Enables bracket pair guides only for the active bracket pair.
// - false: Disables bracket pair guides.
"editor.guides.bracketPairs": "active",
@killshot13
killshot13 / pandoc-install-intro.md
Last active August 1, 2023 07:59
A guide to installing and configuring Pandoc on the Windows & the Linux OS.

What is Pandoc?

Pandoc is open-source software used to transform various filetypes such as .md into more user-friendly filetypes including .pdf, .docx, and .html.

@abiosoft
abiosoft / .wslconfig
Last active March 31, 2022 08:07
wsl2 config
[wsl2]
kernel= # An absolute Windows path to a custom Linux kernel.
memory= # How much memory to assign to the WSL2 VM.
processors= # How many processors to assign to the WSL2 VM.
swap= # How much swap space to add to the WSL2 VM. 0 for no swap file.
swapFile= # An absolute Windows path to the swap vhd.
localhostForwarding= # Boolean specifying if ports bound to wildcard or localhost in the WSL2 VM should be connectable from the host via localhost:port (default true).
# entries must be absolute Windows paths with escaped backslashes, for example C:\\Users\\Ben\\kernel
# entries must be size followed by unit, for example 8GB or 512MB
@zutigrm
zutigrm / cra-sitemap1.js
Last active April 16, 2023 02:00
Sitemap With Create React App
import { sitemapBuilder as buildSitemap } from 'react-router-sitemap';
import routes from '../routes';
import path from 'path'; // add path which will be needed for file write
import fs from 'fs'; // import file system object
// use your website root address here. Optimally you can
// include dev and production enviorenments with variable
const hostname = 'http://localhost:3000';
// define our destination folder and sitemap file name
@sajithneyo
sajithneyo / bracket-pair-colorizer-2-settings
Created June 25, 2019 14:23
Settings you need for bracket pair colorizer 2
{
"bracket-pair-colorizer-2.colors": [
"Gold",
"Orchid",
"LightSkyBlue",
"Salmon",
"LawnGreen",
"DarkOrange",
"Cornsilk"
],
@ClintonLang
ClintonLang / fortune_funnyloadingmsgs.txt
Last active November 16, 2020 20:09
Funny Slack loading messages
......... Oh shit, you were waiting for me to do something? Oh okay, well then.
%
Not panicking...totally not panicking...er...everything's fine...
%
Following the white rabbit....
%
"Going the distance..."
%
The Elders of the Internet are contemplating your request...
%
@pkirkovsky
pkirkovsky / yubikey-reset.sh
Last active October 20, 2023 21:57
Utility for resetting a Yubikey to factory defaults using gpg-connect-agent. This will wipe out any stored keys and reset PINs to default values.
# Adapted from https://developers.yubico.com/ykneo-openpgp/ResetApplet.html
gpg-connect-agent <<EOF
/hex
scd serialno
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
@versedi
versedi / kill-ssh-agents.bat
Created August 30, 2015 10:57
Kill all ssh-agents Windows
taskkill /F /IM ssh-agent.exe /T
@nkbt
nkbt / .eslintrc.js
Last active May 11, 2024 13:03
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {