Skip to content

Instantly share code, notes, and snippets.

Avatar
:electron:
Am Heimcomputer sitz' ich hier, und programmier' die Zukunft mir

Raffael Zica SirJson

:electron:
Am Heimcomputer sitz' ich hier, und programmier' die Zukunft mir
View GitHub Profile
@SirJson
SirJson / processKiller.csx
Created May 17, 2020
Cleanup your Workspace (almost)
View processKiller.csx
#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>();
@SirJson
SirJson / Theme.css
Created May 10, 2020
My take on the fman default css. Improved visibility especially in the locationbar.
View Theme.css
* {
font-size: 9pt;
font-family: "Segoe UI", monospace;
}
th {
padding: 1ex 2ex 3ex 2ex;
font-size: 10pt;
border: 1px solid #34352f;
border-bottom: none;
View gist:817790626928d194bb1966009d840951
ssh-keygen -t ed25519 -C "your@mail.com"
@SirJson
SirJson / rpi-mkusr.sh
Last active Sep 25, 2020
Create a new user on raspbian with the groups of pi
View rpi-mkusr.sh
useradd -m -G $(groups pi | cut -b 9- | tr ' ' ',') arthur
@SirJson
SirJson / PKGBUILD
Created Apr 3, 2020
notes-up 2.0.2 AUR patch
View PKGBUILD
# 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')
@SirJson
SirJson / codesk.sh
Created Apr 1, 2020
Skim + Ripgrep + VSCode = Code search jumping
View codesk.sh
#!/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
}
@SirJson
SirJson / scanlinks.sh
Created Mar 31, 2020
Scans the current directory tree for symlinks and where they are linked
View scanlinks.sh
@SirJson
SirJson / .tmux.conf.local
Last active Mar 17, 2020
Extended oh-my-tmux local file with theming support. This revision implements Monokai colors and small improvements for the prefix marker.
View .tmux.conf.local
# 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'
@SirJson
SirJson / fixpymulti.bat
Created Feb 23, 2020
This batch script will create symlinks so you can call both python 2 and 3 like on linux
View fixpymulti.bat
@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
@SirJson
SirJson / win32-open
Created Feb 19, 2020
A WSL replacement for xdg-open
View win32-open
#!/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