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 build.boot
:source-paths #{"src/scss" "src/clj" "src/cljs" "src/cljc"}
:resource-paths #{"html" "resources"}
:dependencies '[[org.clojure/clojure "1.10.1"]
[org.clojure/clojurescript "1.10.520"]
;; server
[compojure "1.6.1"]
[ring/ring-core "1.7.1"]
[ring/ring-jetty-adapter "1.7.1"]
print("hello from python")
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 / 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 / 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 / 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 / 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 / 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 /
Last active Sep 14, 2019
A Cheatsheet for Emacs Smarparens example configuration

An animated cheatsheet for smartparens using the example configuration specified here by the smartparens author. Inspired by this tutorial for paredit.


C-M-f sp-forward-sexp
C-M-b sp-backward-sexp
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
You can’t perform that action at this time.