This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "nuget:System.Management/4.7.0" | |
using System; | |
using System.Diagnostics; | |
using static System.Console; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Management; | |
Dictionary<string, string> procs = new Dictionary<string, string>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
font-size: 9pt; | |
font-family: "Segoe UI", monospace; | |
} | |
th { | |
padding: 1ex 2ex 3ex 2ex; | |
font-size: 10pt; | |
border: 1px solid #34352f; | |
border-bottom: none; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -t ed25519 -C "your@mail.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
useradd -m -G $(groups pi | cut -b 9- | tr ' ' ',') arthur |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: NicoHood <archlinux {cat} nicohood {dog} de> | |
# Maintainer: Matthew Sexton <wsdmatty (at) _gmail_ (dot) _com_> | |
# PGP ID: 97928FA059F8050487930EAFACF6C1A315EDCB52 | |
pkgname=notes-up | |
_pkgname=Notes-up | |
pkgver=2.0.2 | |
pkgrel=2 | |
pkgdesc="Markdown style notes manager written for elementary OS" | |
arch=('i686' 'x86_64') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# shellcheck disable=SC2068 | |
set -Euo pipefail | |
_fail() { | |
printf '\e[0m' | |
printf '\n\e[38;2;200;0;0m%s\e[0m\n' "FAIL: $1" | |
exit 1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
resolve_link() { | |
printf "%s => %s\n" "$1" "$(readlink -nf $1)" | |
} | |
find . -type l -print0 | while IFS= read -r -d '' file; do resolve_link "$file"; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/gpakosz/.tmux | |
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license, | |
# without any warranty. | |
# Copyright 2012— Gregory Pakosz (@gpakosz). | |
# -- color theme ---------------------------------------------------------------- | |
omt_theme_active='#86b42b' | |
omt_theme_msg_bg='#9d65ff' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem This batch script will create symlinks so you can call both python 2 and 3 like on linux | |
mklink C:\Python27\python2.exe C:\Python27\python.exe | |
mklink C:\Python38\python3.exe C:\Python38\python.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ ! -f /proc/version ]] && grep -Pq '[Mm]?icrosoft' /proc/version; then | |
echo "Only works with WSL" | |
exit 1 | |
fi | |
/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe Start-Process -FilePath "$@" -Verb open |