Skip to content

Instantly share code, notes, and snippets.

@pritambaral
pritambaral / affirmation
Created Nov 4, 2016
MuleSoft Contributor Agreement Acceptance by Chhatoi Pritam Baral
View affirmation
I, Chhatoi Pritam Baral, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Fri Nov 04 2016 06:17:48 GMT+0530 (IST)
@pritambaral
pritambaral / merge-css.js
Created Apr 3, 2015
Merge Duplicate CSS rules; detected by selector
View merge-css.js
#!/usr/bin/env node
if (process.argv.length < 3) {
console.error('Usage:', process.argv.join(' '), '/path/to/file.css');
process.exit(1);
}
file = process.argv[2];
var fs = require('fs');
View keybase.md

Keybase proof

I hereby claim:

  • I am pritambaral on github.
  • I am pritambaral (https://keybase.io/pritambaral) on keybase.
  • I have a public key whose fingerprint is 6B4E 38EF 3EF5 D73F 1AB3 FB23 B72C AA89 80F4 6562

To claim this, I am signing this object:

@pritambaral
pritambaral / dkms-mt7601.PKGBUILD
Last active Mar 8, 2017
PKGBUILD for MediaTek's mt7601usb wifi chip
View dkms-mt7601.PKGBUILD
# Maintainer: Yong-hyu Ban <maneulyori@gmail.com>
pkgname=dkms-mt7601u
pkgver=v3.0.0.4
pkgrel=1
pkgdesc="Driver for Ralink MT7601U chipset wireless adaptors"
arch=('i686' 'x86_64')
url="http://www.ralinktech.com"
license=('GPL')
depends=('dkms' 'linux-headers')
conflicts=()
@pritambaral
pritambaral / techsupport.sh
Created Jan 10, 2014
Tech Support. SSH+screen for non-tech-savvy clients.
View techsupport.sh
#!/bin/bash
# Script to safely provide access to tech-support over-the-network.
# Uses 'ssh' for connection
# 'screen' for terminal screen-sharing
# The COMMAND a few lines below limits tech-support's access,
# so they can't have absolute control over your system without supervision
# For developers: change SSH public key and name ('pritam') before sending this out to customers
# Dev. usage: ssh -t user@hostname. -t (force create pty) is compulsory.
@pritambaral
pritambaral / jumpd.sh
Last active Dec 22, 2015
Quick search and select track from MPD playlist. REQUIRES: bash, grep, zenity, notify-send
View jumpd.sh
#!/bin/bash
# Prompts user to select song from mpd playlist by search tag.
# Randomizes if multiple matches found and first try was unwanted
if [ ! -f /tmp/jumpd.status ]
then
touch /tmp/jumpd.status;
fi