Skip to content

Instantly share code, notes, and snippets.

View mkettn's full-sized avatar
🚀
Work on something new!

Mark mkettn

🚀
Work on something new!
  • 16:20 (UTC +02:00)
View GitHub Profile
@mkettn
mkettn / .dir-locals.el
Last active March 24, 2020 13:17
emacs flycheck python configuration for libraries and venv. requirements: pylint and pylint-venv
((python-mode
(flycheck-pylintrc . "./pylintrc")))
@mkettn
mkettn / i3config
Created April 19, 2019 17:37
i3 configuration file with keybindings for volume control for pulse audio and some other stuff
# set super (windows) key as mod key
set $mod Mod4
font pango:monospace 8
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from sys import stdin, stderr, argv
import re
if argv[1]=='-h':
print "%s <ytc-file> > <cue-file>" % (argv[0])
exit(0)
if len(argv) == 2 and not argv[1]=='-':
@mkettn
mkettn / .spacemacs
Last active July 16, 2018 08:05
computer engineers with hiDPI screens
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@mkettn
mkettn / vivado_sdk
Created September 23, 2017 16:50
launch sdk the sane way
#!/bin/bash
VIVADO_PATH=/opt/Xilinx/SDK/2017.2
export J2D_D3D=false
export _JAVA_OPTIONS="-Dsun.java2d.dpiaware=true -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dsun.java2d.xrender=true"
export SWT_GTK3=0
wmname LG3
source $VIVADO_PATH/settings64.sh
@mkettn
mkettn / vivado_hls
Last active September 21, 2017 15:52
start vivado_hls with a tiling wm and pass thru command line args
#!/bin/bash
VIVADO_HLS_PATH=/opt/Xilinx/Vivado_HLS/2017.2/bin
wmname LG3
$VIVADO_HLS_PATH/vivado_hls "$@"
@mkettn
mkettn / .Xdefaults
Last active July 8, 2018 13:19
configuration for rxvt-unicode
URxvt.saveLines: 1000
URxvt.scrollBar: false
URxvt.scrollBar_right: true
URxvt.geometry: 80x24
URxvt.foreground: #D8D8D8
URxvt.background: #2E3436
URxvt.secondaryScroll: true
URxvt.font: xft:Monospace:size=10:antialias=true
URxvt.letterSpace: -1
URxvt.internalBorder: 1
@mkettn
mkettn / vivado
Last active April 12, 2018 09:20
run vivado 2017.2 on linux with hidpi monitor and a tiling wm, also pass thru any arguments given, and set the current working dir to /tmp/vivado2017, hence it doesn't create various files in the current working dir. this is by far the most sane configuration i can come up with.
#!/bin/bash
VIVADO_PATH=/opt/Xilinx/Vivado/2017.2
VIVADO_TMP_DIR=`mktemp -d /tmp/vivado2017.2.XXXX`
export J2D_D3D=false
export _JAVA_OPTIONS="-Dsun.java2d.dpiaware=true -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dsun.java2d.xrender=true"
export SWT_GTK3=0
wmname LG3
source $VIVADO_PATH/settings64.sh