Skip to content

Instantly share code, notes, and snippets.

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

mar10 obar1

🏠
Working from home
View GitHub Profile
@davidteren
davidteren / nerd_fonts.md
Last active October 9, 2026 13:47
Install Nerd Fonts via Homebrew [updated & fixed]
@dentechy
dentechy / WSL-ssh-server.md
Last active September 14, 2026 07:04
A step by step tutorial on how to automatically start ssh server on boot on the Windows Subsystem for Linux

How to automatically start ssh server on boot on Windows Subsystem for Linux

Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.

  1. Edit the /etc/ssh/sshd_config file by running the command sudo vi /etc/ssh/sshd_config and do the following
    1. Change Port to 2222 (or any other port above 1000)
    2. Change PasswordAuthentication to yes. This can be changed back to no if ssh keys are setup.
  2. Restart the ssh server:
    • sudo service ssh --full-restart
  3. With this setup, the ssh server must be turned on every time you run Bash on Ubuntu on Windows, as by default it is off. Use this command to turn it on:
@itod
itod / split_keyboards.md
Last active September 6, 2026 02:44
Every "split" mechanical keyboard currently being sold that I know of
@fomightez
fomightez / remove blank lines regex.md
Last active May 26, 2026 04:26
remove all blank lines using regular expressions
@mbostock
mbostock / .block
Last active May 13, 2026 06:40
The Gist to Clone All Gists
license: gpl-3.0
@obar1
obar1 / my_snippets.json
Last active March 9, 2026 10:45
snippets/my_snippets.json
{
"Convert to Markdown Link": {
"prefix": "_here",
"body": [
"## ${1:here}",
"[here](${1:here}/readme.md)"
]
},
@obar1
obar1 / rebase_with_git.md
Created September 17, 2025 10:39
rebase_with_git
export MY_BRANCH=feat/DC1121-7769

git switch $MY_BRANCH

if [ "$(git branch --show-current)" = "$MY_BRANCH" ]; then
  echo "✅ You are on branch: $MY_BRANCH"
else
@obar1
obar1 / ka.sh
Created September 27, 2025 11:30
keep alive girthub codespace
#!/bin/bash
# Interval in seconds (e.g., 300 = 5 minutes)
INTERVAL=300
echo "Keeping Codespace alive. Press [CTRL+C] to stop."
while true; do
echo "Ping at $(date)" > /tmp/keepalive.txt
sleep $INTERVAL
@vsjov
vsjov / delete-linkedin-posts.js
Last active March 12, 2025 08:33
Delete all LinkedIn posts version for June 2021.
(() => {
let speedMs = 500
setInterval(() => {
let dropdown = document.querySelector('.feed-shared-update-v2__control-menu .artdeco-dropdown button')
dropdown.click()
setTimeout(() => {
let optionDel = dropdown.parentElement.parentElement.parentElement.querySelector('.option-delete .tap-target')
#!/usr/bin/env bash
# This script clones all repos in a GitHub org
# It requires the GH CLI: https://cli.github.com
# It can be re-run to collect new repos and pull the latest changes
set -euo pipefail
USAGE="Usage: gh-clone-org <user|org>"