Skip to content

Instantly share code, notes, and snippets.

@ice-blaze
ice-blaze / ice-blaze-us.klc
Last active February 6, 2020 08:47
windows ice-blaze keyboard. You need `Microsoft Keyboard Layout Creator 1.4` to genereate the the .exe
KBD iceblaze "US ice-blaze with french accents"
COPYRIGHT "(c) 2018 Company"
COMPANY "Company"
LOCALENAME "en-US"
LOCALEID "00000409"
@ice-blaze
ice-blaze / .vimrc
Created December 28, 2018 15:48
vimrc without plugins
set hlsearch
set cursorline
syntax on
hi CursorLine cterm=NONE ctermbg=0
@ice-blaze
ice-blaze / gpg.md
Created October 5, 2018 09:12
git gpg in ubuntu 18

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@ice-blaze
ice-blaze / vulkan_ubuntu_18.sh
Last active December 4, 2018 22:09
Vulkan ubuntu 18
# sudo add-apt-repository ppa:ubuntu-x-swat/updates
sudo apt install cmake
sudo apt install python-minimal
sudo apt install libx11-devf
sudo apt-get install libpng-dev
sudo apt install mesa-vulkan-drivers
#!/bin/bash
set -euo pipefail
I1FS=$'\n\t'
mkdir -p /tmp/adodefont
cd /tmp/adodefont
wget -q --show-progress -O source-code-pro.zip https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip
unzip -q source-code-pro.zip -d source-code-pro
mkdir -p ~/.fonts
cp -v source-code-pro/*/OTF/*.otf ~/.fonts/
fc-cache -f
@ice-blaze
ice-blaze / spacemacs-config.txt
Last active October 5, 2018 09:13
spacemacs config
(defun dotspacemacs/user-config ()
;; tab size in space
;; (setq-default indent-tabs-mode t)
(setq tab_size 2)
(setq-default js2-basic-offset tab_size
js-indent-level tab_size)
(setq web-mode-markup-indent-offset tab_size)
(setq web-mode-code-indent-offset tab_size)
(setq c-basic-offset tab_size)
#!/bin/bash
IFS=$'\n'; set -f
for filepath in $(find ./ -name '*.avi' -or -name '*.mp4' -or -name '*.wmv'); do
if [[ $filepath == *".ignore"* ]]; then
continue
fi
dir=$(dirname $filepath)
base=$(basename $filepath)
encodeFolder="$dir/encode/"
@ice-blaze
ice-blaze / CapsLockCtrlEscape.ahk
Created May 22, 2017 16:43 — forked from sedm0784/CapsLockCtrlEscape.ahk
AutoHotkey script to map Caps Lock to Escape when it's pressed on its own, and Ctrl when used in combination with another key, à la Steve Losh. Adapted from the one that does something similar with the Ctrl Key on the Vim Tips Wiki (http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_Windows?oldid=32281). (With some extra key combos added by @r…
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
*CapsLock::
if (g_ControlRepeatDetected)
{
return
}
@ice-blaze
ice-blaze / ubuntu-us-fr-keyboard-ice-blaze
Last active October 4, 2018 07:40
US international keyboard with AltGr as dead key (for french accents)
#!/bin/sh
if [ "$(id -u)" != "0" ]; then
echo "Sorry, you are not root."
exit 1
fi
# content of /usr/share/X11/xkb/symbols/ice-blaze_keyboard
/bin/cat <<EOM >"/usr/share/X11/xkb/symbols/ice-blaze_keyboard"
default partial alphanumeric_keys
@ice-blaze
ice-blaze / GLSL-Noise.md
Created November 29, 2016 21:00 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}