Skip to content

Instantly share code, notes, and snippets.

@ihilt
ihilt / chacha.hpp
Last active June 25, 2021 12:36 — forked from imneme/chacha.hpp
C++11 ChaCha implementation.
#ifndef CHACHA_HPP_INCLUDED
#define CHACHA_HPP_INCLUDED 1
/*
* A C++ version of ChaCha PRNG (*modified* from Orson Peters original code)
*
* Changes Copyright (c) 2017-18 Melissa E. O'Neill, licence as below.
*
* Changes compared to original 2015 version:
* - Some formatting fixes
@ihilt
ihilt / .Xresources
Last active June 29, 2021 12:11
Xresources
XTerm.termName: xterm-256color
XTerm.vt100.locale: false
XTerm.vt100.utf8: true
XTerm.vt100.scrollTtyOutput: false
XTerm.vt100.scrollKey: true
XTerm.vt100.bellIsUrgent: true
XTerm.vt100.metaSendsEscape: true
XTerm.vt100.selectToClipboard: true
XTerm.vt100.saveLines: 99999
XTerm.vt100.geometry: 132x43
@ihilt
ihilt / mutt_config.md
Last active June 1, 2020 15:31
mutt config for gmail and email in google apps for business

mutt config

The environment variables are sourced from a private file with .bashrc.

~/.mbsyncrc

Create Slave
SyncState *

IMAPAccount gmail
@ihilt
ihilt / xorg.conf
Created May 5, 2020 23:19
x11 config for dell u3818dw and hp 850 g3
Section "Monitor"
Identifier "HDMI-1"
Modeline "3840x1600_30.00" 246.25 3840 4040 4440 5040 1600 1603 1613 1630 -hsync +vsync
EndSection
@ihilt
ihilt / keyboard_settings.reg
Created January 6, 2020 21:37
Keyboard Settings
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Accessibility\Keyboard Response]
"Flags"="59"
"DelayBeforeAcceptance"="0"
"AutoRepeatDelay"="250"
"AutoRepeatRate"="10"
"BounceTime"="0"
@ihilt
ihilt / InstallApps.ps1
Last active January 10, 2020 13:27
chocolately script
$chocolateyAppList = "everything,googlechrome,sql-server-management-studio,greenshot,wavebox,vscode,7zip,1password,vlc,git,php,wireshark,composer,filezilla,visualstudio2019community,python2,powerbi,wsl,wsl-ubuntu-1804,winscp,winmerge,sql-server-2019,r,r.studio,rtools,dejavufonts,dotnetcore,postman"
if ([string]::IsNullOrWhiteSpace($chocolateyAppList) -eq $false -or [string]::IsNullOrWhiteSpace($dismAppList) -eq $false)
{
try{
choco config get cacheLocation
}catch{
Write-Output "Chocolatey not detected, trying to install now"
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
}
@ihilt
ihilt / ssh-config
Created June 8, 2019 02:54
ssh config file
Host *
AddKeysToAgent yes
IgnoreUnknown UseKeyChain
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
@ihilt
ihilt / .bashrc
Last active October 8, 2021 15:11
Bashrc dot file
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
@ihilt
ihilt / .profile
Last active May 5, 2020 23:24
Profile dot file
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
@ihilt
ihilt / .tmux.conf
Last active November 9, 2021 13:57
Tmux config
unbind-key C-b
set -g prefix `
bind-key e send-prefix
bind-key ` last-window
set-option -sa terminal-overrides ",xterm*:RGB"
set -g default-terminal "tmux-256color"
set-window-option -g mode-keys vi
set -g bell-action none