Skip to content

Instantly share code, notes, and snippets.

View kewitz's full-sized avatar
💾

Leo Kewitz kewitz

💾
View GitHub Profile
@kewitz
kewitz / .xmodmap
Last active July 11, 2021 22:21
Xmodmap Motospeed CK62
clear lock
keycode 66 = Mode_switch
keycode 9 = Escape dead_tilde dead_grave
keycode 10 = 1 exclam F1
keycode 11 = 2 at F2
keycode 12 = 3 numbersign F3
keycode 13 = 4 dollar F4
keycode 14 = 5 percent F5
keycode 15 = 6 dead_circumflex F6
keycode 16 = 7 ampersand F7
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:muport:QmYmsmsv1381845jVEzkmrNF7xgQmaoctvTYWuN3TiR3Jt ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
@kewitz
kewitz / slack_import_sucks.js
Last active February 9, 2018 23:17
Importing channels in Slack
const channelCodes = [...document.querySelectorAll('#channels_list optgroup option')].reduce((acc, n) => {
acc[n.innerText] = n.value
return acc
}, {})
TS.boot_data.all_channels.forEach(channel => {
if(channelCodes[`#${channel.name}`]) channel.mapping = channelCodes[`#${channel.name}`]
})
Cell 01 - Address: 28:32:C5:89:98:70
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=49/70 Signal level=-61 dBm
Encryption key:on
ESSID:"maneiro"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
@kewitz
kewitz / esnextbin.md
Created March 6, 2017 16:12
esnextbin sketch
@kewitz
kewitz / VimiumTheme.css
Created January 13, 2017 16:34
Vimium Black Monospace theme.
/*
Installation:
1. Right Click on the Vimium icon
2. Select "Options"
3. On the footer, click on "Show Advanced Options"
4. Paste this inside "CSS for link hints" textbox
5. On the footer, click on "Save Changes"
*/
div > .vimiumHintMarker {
background: #000;
@kewitz
kewitz / esnextbin.md
Created December 14, 2016 23:21
esnextbin sketch
@kewitz
kewitz / plot.py
Created March 30, 2016 21:40
IEEE oriented plotting for spyder
figsize = (3.5, 3.5)
#plt.style.use('grayscale')
plt.rc('font', size = 10, **{'family':'serif','serif':['Times New Roman']})
plt.rc('text', usetex=True)
plt.rc('legend', fancybox=True)
colors = plt.rcParams['axes.color_cycle']
def lines(x, ys, labels, filename):
series = len(ys)
xlabels = x;
@kewitz
kewitz / gist:484010da959767314ccf
Last active March 16, 2016 18:17
MatplotLib configuration for LaTeX articles.
mpl.rc('font', weight = 'light', size = 8, **{'family':'serif','serif':['Times New Roman']})
mpl.rc('text', usetex=True)
mpl.rc('legend', borderaxespad = 0.3, fontsize = 6, handlelength = 2, markerscale = 1, labelspacing = 0.3, numpoints = 1)
figsize = (3.3,1.8)
@kewitz
kewitz / cpf
Created January 30, 2016 20:06
intel_pstate max cpu-frequency bash script.
#!/bin/bash
# Copyleft 2015 - Leonardo Kewitz github.com/kewitz
# intel_pstate max cpu-frequency script.
PMAX=/sys/devices/system/cpu/intel_pstate/max_perf_pct
CPUINFO=/proc/cpuinfo
if [ "$#" != "1" ]
then
echo -e "Usage: cpf 30-100"