Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
### DEFINE UBUNTU VERSION SHORT CODENAME
# IF YOU ARE USING UBUNTU-BASED DISTRO, BUT NOT UBUNTU (LINUX MINT ETC.)
# RUN SCRIPT WITH NAME OF BASE UBUNTU DISTRO
# FOR LINUX MINT 17
# ./startup_install.sh trusty
#WINDOW VALUES
own_window yes
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_argb_visual yes
#VISUAL VALUES
use_xft yes
@kozak127
kozak127 / default.pa
Last active August 29, 2015 13:57
PulseAudio config
#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
{
/*
If complete_parameters is true, anaconda will add function and class
parameters to its completions.
If complete_all_parameters is true, it will add all the possible
parameters, if it's false, it will add only required parameters
*/
"complete_parameters": true,
"complete_all_parameters": true,
# MY ALIASES
alias pingg="ping google.com"
alias mtrg="mtr google.com"
alias svn_remove_missing="svn status | grep '^!' | awk '{print $2}' | xargs svn delete"
alias run-proxy="ssh -N -D 9876 misc@kozak127.eu"
# DOUBLE LOGGING
PROMPT_COMMAND='echo [$$] $(date) $(history 1) >>~/.local/share/logs/bash'
# BASH PROMPT SETUP
#!/bin/bash
#Give a name to the terminal window.
TITLE="desktop_terminal"
#HxW size given in # of charactors. Example: 25x60
DIMENSIONS=130x45
#X+Y position given in pixels. Example: 100+200
POSITION=0+0
TERMOPTS="--default-working-directory=~ --display=:0 --maximize --hide-borders --hide-toolbar --hide-menubar --title=$TITLE"
if [[ -z $DIMENSIONS || -z $POSITION ]] || [[ -z $TITLE ]] ; then
@kozak127
kozak127 / xfce4-keyboard-shortcuts.xml
Last active October 27, 2016 16:37
Code snippet to paste to xfce4-keyboard-shortcuts.xml file
<property name="XF86AudioNext" type="string" value="dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next"/>
<property name="XF86AudioPrev" type="string" value="dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous"/>
<property name="XF86AudioPlay" type="string" value="dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"/>
<property name="XF86AudioStop" type="string" value="dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop"/>
{
"caret_style": "blink",
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"font_size": 12,
"highlight_line": true,
"ignored_packages":
[
"Markdown",
"Vintage"
],
#!/bin/bash
chromium-browser-bin --process-per-tab "$@"
#############################
### GENERATE CERT AND KEY ###
#############################
# when generating key and cert, use password provided by administrator
cd ~/Workspace/Silvermedia/vpn
kozak127@callisto:~/Workspace/Silvermedia/vpn$ openssl pkcs12 -in michal.wesoly.p12 -nocerts -nodes -out michal.wesoly.key
Enter Import Password: