I hereby claim:
- I am rejuvyesh on github.
- I am rejuvyesh (https://keybase.io/rejuvyesh) on keybase.
- I have a public key whose fingerprint is B974 B2C6 B0C8 289D 14C8 F460 F33B FCBE CEEA CD5D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// ==UserScript== | |
// @name Github in Page Title | |
// @description Put the string 'Github' in each github page | |
// @include https://github.com/* | |
// @version 0.1 | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
if (!document.title.contains('GitHub')) { | |
document.title = document.title + ' - ' + ' GitHub'; |
{ pkgs }: { | |
packageOverrides = self: with pkgs; rec { | |
# standard environment | |
rejuvnix = pkgs.buildEnv { | |
name = "rejuvnix"; | |
paths = let | |
hs = haskellPackages; | |
in [ |
# convert multipage pdf to single page tiff | |
gs -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -sOutputFile=%04d.tif source.pdf -c qui | |
# or use -sDEVICE=pgmraw to convert to pgm | |
# unpaper, rotate the logical page 90 degrees, each logical page contained two scanned physical pages, so we use --layout double (for input) and --output-pages 2 since we want to split these two pages. | |
unpaper -v --deskew-scan-deviation 3.0 --border-align top --deskew-scan-range 15 --no-grayfilter --no-blurfilter --no-noisefilter --overwrite --pre-rotate 90 --border-scan-step 4 --layout double --output-pages 2 %04d.pgm.pbm unpaper%04d.pbm | |
# trim the pages and convert the to single-page pdfs | |
find . -name 'unpaper*' | xargs -i -n1 -P6 convert -trim +repage {} {}.pdf |
.tabbrowser-tab { | |
-moz-appearance: none !important; | |
border-radius: 2px !important; | |
font-family: Open Sans !important; | |
font-size: 11px !important; | |
color: #808080 !important; | |
background: #dbdbdb !important; | |
max-height: 20px !important; | |
min-height: 20px !important; | |
border: none !important; |
# For turing and other cse servers | |
Host vyom | |
HostName vyom.cc.iitk.ac.in | |
User jayeshkg | |
IdentityFile ~/.ssh/cse | |
Host turing | |
HostName turing.cse.iitk.ac.in | |
User jayeshkg | |
IdentityFile ~/.ssh/cse |
#!/usr/bin/python | |
# Convert `netcat-cpi-kernel-module` to actual oggs | |
import binascii | |
import re | |
import sys | |
try: | |
s = re.sub('0x', '', re.sub('[,\n]', '', open(sys.argv[1], 'r').read())) |
#!/usr/bin/env zsh | |
# Created by rejuvyesh <mail@rejuvesh.com> | |
usage="Usage: ./cabal2pkgbuild <HACKAGE_PACKAGES_FILE>" | |
if [[ -z $1 ]]; then | |
echo $usage | |
exit 1 | |
fi |
Config { font = "xft:Consolas-8" | |
, bgColor = "#121212" | |
, fgColor = "#AFAF87" | |
, position = BottomW L 96 | |
, lowerOnStart = True | |
, commands = [ Run DynNetwork ["-t", "<dev> <fc=#387BAB><icon=/home/rejuvyesh/.xmonad/icons/net_down_03.xbm/><rx>kB</fc> <fc=#005F87><icon=/home/rejuvyesh/.xmonad/icons/net_up_03.xbm/><tx>kB</fc>", "-M", "5"] 15 | |
, Run Date "%a %d-%m %H:%M:%S " "date" 10 | |
, Run BatteryP ["BAT0"] ["-t", "<fc=#D0CFD0><acstatus></fc><left>", "-S", "True", "-L", "30", "-H", "70", "-p", "3", "-l", "#D74083", "-n", "#FF9926", "-h", "#93FF19", "--", "-O", "+", "-o", "-", "-f", "BAT0/subsystem/ADP0/online" ] 600 | |
, Run StdinReader | |
, Run Memory ["-p", "2", "-c", "0", "-S", "True","-H", "80", "-h", "#D7005F", "-L", "50", "-l", "#87FF00", "-n", "#FF8700", "-t", "RAM: <usedratio>"] 50 |
# unregister broken GHC packages. Run this a few times to resolve dependency rot in installed packages. | |
# ghc-pkg-clean -f cabal/dev/packages*.conf also works. | |
function ghc-pkg-clean() { | |
for p in `ghc-pkg check $* 2>&1 | grep problems | awk '{print $6}' | sed -e 's/:$//'` | |
do | |
echo unregistering $p; ghc-pkg $* unregister $p | |
done | |
} | |
# remove all installed GHC/cabal packages, leaving ~/.cabal binaries and docs in place. |