Skip to content

Instantly share code, notes, and snippets.

View bergercookie's full-sized avatar
🤖
How much wood would a woodchuck chuck if a woodchuck could chuck wood?

Nikos Koukis bergercookie

🤖
How much wood would a woodchuck chuck if a woodchuck could chuck wood?
View GitHub Profile
" Settings
"set nohud
"set nosmoothscroll
set noautofocus " The opposite of autofocus; this setting stops
" sites from focusing on an input box when they load
set typelinkhints
let searchlimit = 30
let scrollstep = 70
let barposition = "bottom"
"let locale = "uk" " Current choices are 'jp' and 'uk'. This allows cVim to use sites like google.co.uk
let mapleader = ","
let blacklists = ["*://mail.google.com/*"]
unmap "d"
map "ctrl+n" nextTab
map "ctrl+p" previousTab
map "space" scrollFullPageDown
map "d" closeTab
map "<leader>n" moveTabRight
@bergercookie
bergercookie / setup_mrpt.sh
Last active May 18, 2017 13:33
Script for setting up MRPT from sources
#!/usr/bin/env bash
# Mon Sep 19 12:51:30 EEST 2016, Nikos Koukis
# Setup MRPT in the current host
#
# Script sets up the dependencies for MRPT, clones the MRPT repository from
# github and setup the MRPT build directory in the USER's home directory
######################################################################
# make sure we have the necessary set of tools
if ! [ -x "$(which git)" ]; then
_drive()
{
COMPREPLY=()
local cur prev cmd cmds files flags
cur="${COMP_WORDS[COMP_CWORD]}"
pre="${COMP_WORDS[COMP_CWORD-1]}"
cmds="about clashes copy cp deinit del delete diff du edit-desc edit-description emptytrash features file-id help id index init issue list ls md5sum move mv new open pub pull push qr quota rename report repor"
files="del delete diff edit-desc edit-description file-id id new open pub pull push rename share star stat unpub unshare untrash url"
if [ $COMP_CWORD -eq 1 ]; then
@bergercookie
bergercookie / mrpt_indentation.vim
Last active July 6, 2017 17:23
Vim indentation for MRPT
augroup mrpt_indentation
autocmd!
" mrpt uses tabs for indentation
autocmd FileType cpp set tabstop=4
autocmd FileType cpp set shiftwidth=4 " use indents of X spaces
autocmd FileType cpp set preserveindent
autocmd FileType cpp set copyindent
autocmd FileType cpp set softtabstop=0
autocmd FileType cpp set autoindent " indent at the same level of the previous line
autocmd FileType cpp set noexpandtab
@bergercookie
bergercookie / pass_open_doc.sh
Last active December 29, 2017 01:05
Script for decrypting and viewing docs stored in the Pass Unix Password Manager
#!/usr/bin/env bash
# vi:syntax=sh
# vi:filetype=sh
# Current script decrypts and opens a gpg-encrypted document that is stored in
# the password-store of the *pass* Unix password manager
#
# Support exists exclusively on Linux desktop platforms
function print_fatal_msg() {
@bergercookie
bergercookie / setup.md
Created September 14, 2017 19:21 — forked from chris-jamieson/setup.md
Set up Franz for Ubuntu
  • Download Franz for your distribution from MeetFranz.com
  • change into the same directory as the downloaded file, then sudo tar -xf Franz-linux-x64-0.9.10.tgz -C /opt/franz
  • (optional) wget "https://cdn-images-1.medium.com/max/360/1*v86tTomtFZIdqzMNpvwIZw.png" -O franz-icon.png then sudo cp franz-icon.png /opt/franz
  • (optional) sudo touch /usr/share/applications/franz.desktop then sudo vim /usr/share/applications/franz.desktop

paste the following lines into the file, then save the file:

[Desktop Entry]
Name=Franz
Comment=
@bergercookie
bergercookie / setup-franz-ubuntu.sh
Last active January 6, 2018 13:08 — forked from ruebenramirez/setup-franz-ubuntu.sh
setup franz on ubuntu
#!/bin/bash
sudo rm -fr /opt/franz
sudo rm -fr /usr/share/applications/franz.desktop
# create installation dir
sudo mkdir -p /opt/franz
#install franz
@bergercookie
bergercookie / sp
Created November 8, 2018 23:36 — forked from streetturtle/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/bin/bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#

Keybase proof

I hereby claim:

  • I am bergercookie on github.
  • I am bergercookie (https://keybase.io/bergercookie) on keybase.
  • I have a public key ASCxEtQVlL-1GkPKmucVZLWiESMMZetqFMRosyf1XPSqywo

To claim this, I am signing this object: