Skip to content

Instantly share code, notes, and snippets.

View SirJson's full-sized 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 / README.md
Last active October 17, 2020 23:28
Grabs a bunch of stats from vcgencmd and prints them out

This is just a useful monitoring script for the Raspberry Pi. Especially useful if you are running one in an environment where you are not sure if it will survive ;-)

You can use it just as a one off thing by calling the script or combine it with watch like this:

watch pistats.sh

That way you get automatic updates of the health of your pi to your terminal.

@SirJson
SirJson / processKiller.csx
Created May 17, 2020 16:29
Cleanup your Workspace (almost)
#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 09:39
My take on the fman default css. Improved visibility especially in the locationbar.
* {
font-size: 9pt;
font-family: "Segoe UI", monospace;
}
th {
padding: 1ex 2ex 3ex 2ex;
font-size: 10pt;
border: 1px solid #34352f;
border-bottom: none;
ssh-keygen -t ed25519 -C "your@mail.com"
@SirJson
SirJson / rpi-mkusr.sh
Last active September 25, 2020 22:52
Create a new user on raspbian with the groups of pi
useradd -m -G $(groups pi | cut -b 9- | tr ' ' ',') arthur
@SirJson
SirJson / PKGBUILD
Created April 3, 2020 00:31
notes-up 2.0.2 AUR patch
# 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 April 1, 2020 22:17
Skim + Ripgrep + VSCode = Code search jumping
#!/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 March 31, 2020 01:40
Scans the current directory tree for symlinks and where they are linked
@SirJson
SirJson / .tmux.conf.local
Last active March 17, 2020 14:02
Extended oh-my-tmux local file with theming support. This revision implements Monokai colors and small improvements for the prefix marker.
# 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 February 23, 2020 18:56
This batch script will create symlinks so you can call both python 2 and 3 like on linux
@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