Skip to content

Instantly share code, notes, and snippets.

@m14t
m14t / fix_github_https_repo.sh
Created July 5, 2012 21:57
Convert HTTPS github clones to use SSH
#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'`
if [ -z "$REPO_URL" ]; then
echo "-- ERROR: Could not identify Repo url."
echo " It is possible this repo is already using SSH instead of HTTPS."
exit
fi
@damokuro
damokuro / fix_github_https_repo.sh
Created March 21, 2018 11:45 — forked from m14t/fix_github_https_repo.sh
Convert HTTPS github clones to use SSH
#!/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'`
if [ -z "$REPO_URL" ]; then
echo "-- ERROR: Could not identify Repo url."
echo " It is possible this repo is already using SSH instead of HTTPS."
exit
fi
@peltho
peltho / svelte.md
Last active May 16, 2024 03:44
Svelte cheatsheet
@ryoakg
ryoakg / imwheel.service
Created February 12, 2021 00:45
imwheel systemd unit file
[Unit]
Description=IMWheel
Wants=display-manager.service
After=display-manager.service
[Service]
Type=simple
Environment=XAUTHORITY=%h/.Xauthority
ExecStart=/usr/bin/imwheel -d
ExecStop=/bin/kill -INT $(MAINPID)