Skip to content

Instantly share code, notes, and snippets.

Praveen pvik

Block or report user

Report or block pvik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View adding ms sqlserver jar to maven
taken from [here]{}
mvn install:install-file -Dfile=sqljdbc4.jar -Dpackaging=jar -DartifactId=sqljdbc4 -Dversion=4.0
View gist:56c3c3a3ea655bee8aae
gnuplot> set datafile separator ","
gnuplot> plot 'calls.csv' using 2:xticlabels(1) with lines
pvik / color-doom.h
Created Sep 11, 2018
Doom Theme Colors for st (suckless terminal)
View color-doom.h
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] =
[0] = "#1c1f24", // black
[1] = "#ff6c6b", // dark red
[2] = "#98be65", // dark green
[3] = "#DA8548", // dark orange
[4] = "#51afef", // dark blue
pvik / tree-style-tab.css
Created Sep 11, 2018
Firefox Tree Style Tab Customization
View tree-style-tab.css
/* tab height */
:root {
--tab-height: 22px !important;
background-color: #000000;
.tab {
height: var(--tab-height) !important;
background: #4d4e51;
color: #bbc2cf;
pvik / userChrome.css
Created Sep 11, 2018
Firefox Customization - userChrome.css
View userChrome.css
@namespace url("");
/* to hide the native tabs */
#TabsToolbar {
visibility: collapse;
/* to hide the sidebar header */
#sidebar-header {
visibility: collapse;
pvik / userContent.css
Created Sep 11, 2018
Firefox Customization - userContent.css
View userContent.css
@-moz-document regexp("moz-extension://.+/resources/group-tab.html.*") {
:root {
background: #bbc2cf;
pvik / home.html
Last active Sep 12, 2018
custom homepage
View home.html
<!DOCTYPE html>
<link rel="shortcut icon" href="favicon.png" />
<title>elric's home</title>
<!--link rel="stylesheet" href="style.css"-->
<style media="screen" type="text/css">
html {
font-family: Hack;
font-size: 16px;
pvik / i3status.conf
Created Sep 12, 2018
i3 status bar config
View i3status.conf
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
pvik /
Last active Sep 14, 2018
Hibernate on Low Battery, when acpi does not report proper battery status
# Battery threshold below which, script will hibernate if discharging
# temporary file to store the previous battery charge value, to determine if battery is being discharged
# read in batt charge from acpi
echo "`acpi -b`, `cat /tmp/batt_charge`%" | awk -F'[:,%]' '{print $2, $3, $5, ($5 - $3), ($3-$5)<0?"discharging":"powered"}' | {
read -r acpi_status capacity old_capacity capacity_diff status
print("hello from python")
You can’t perform that action at this time.