Skip to content

Instantly share code, notes, and snippets.

@indritix
indritix / dns-sync.sh
Created September 16, 2021 13:29 — forked from matthiassb/dns-sync.sh
Init.d script for keeping WSL resolv.conf in-sync with Windows
#! /bin/bash
### BEGIN INIT INFO
# Provides: dns-sync
# Required-Start:
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Synchronizes /etc/resolv.conf in WLS with Windows DNS - Matthias Brooks
### END INIT INFO
@indritix
indritix / generate-ssh-key.sh
Created March 24, 2021 09:37 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa
@indritix
indritix / profile.ps1
Created April 24, 2020 06:20 — forked from joejag/profile.ps1
Powershell profile
# Install-Module posh-git -Scope CurrentUser -AllowPrerelease -Force
# Install-Module git-aliases -Scope CurrentUser -AllowClobber
# Install-Module PSReadLine -Scope CurrentUser -AllowPrerelease -Force
# Install-Module nvm -Scope CurrentUser
# Copy of the robby russell theme
function Prompt {
if ($?) {
Write-Host '➜' -NoNewline -ForegroundColor Green
}
@indritix
indritix / zshrc
Created October 2, 2019 17:02 — forked from LukeSmithxyz/zshrc
# Luke's config for the Zoomer Shell
# Enable colors and change prompt:
autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
# History in cache directory:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/zsh/history
@indritix
indritix / Makefile
Created September 13, 2019 08:42 — forked from vkroz/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@indritix
indritix / README.md
Created August 27, 2019 14:09 — forked from willprice/README.md
Install OpenCV 4.1.0 for Raspberry Pi 3 or 4 (Raspbian Buster)

Install OpenCV 4.1.0 on Raspbian Buster

$ chmod +x *.sh
$ ./download-opencv.sh
$ ./install-deps.sh
$ ./build-opencv.sh
$ cd ~/opencv/opencv-4.1.0/build
$ sudo make install
@indritix
indritix / PKGBUILD
Created September 16, 2018 15:19
flirc pkgbuild
pkgname=flirc-bin
_pkgname=flirc
_pkgver=3.20.1
pkgver=${_pkgver/-/.}
pkgrel=1
pkgdesc="CLI and GUI application to program your Flirc device"
arch=('x86_64')
url="http://flirc.tv"
license=('unknown')
depends=('libusb' 'hidapi' 'qt5-svg' 'qt5-xmlpatterns')
@indritix
indritix / arch-linux-install
Created April 29, 2018 14:36 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap