Skip to content

Instantly share code, notes, and snippets.

View pritambaral's full-sized avatar

Pritam Baral pritambaral

View GitHub Profile
@pritambaral
pritambaral / affirmation
Created November 4, 2016 00:47
MuleSoft Contributor Agreement Acceptance by Chhatoi Pritam Baral
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 April 3, 2015 02:06
Merge Duplicate CSS rules; detected by selector
#!/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');

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 March 8, 2017 05:18
PKGBUILD for MediaTek's mt7601usb wifi chip
# 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 January 10, 2014 07:46
Tech Support. SSH+screen for non-tech-savvy clients.
#!/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 December 22, 2015 17:49
Quick search and select track from MPD playlist. REQUIRES: bash, grep, zenity, notify-send
#!/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