Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am Mrigank11 on github.
  • I am mrigank (https://keybase.io/mrigank) on keybase.
  • I have a public key whose fingerprint is 1AEC 6F83 8183 8387 BE2E 5833 B284 C30D A0E9 9C63

To claim this, I am signing this object:

#backup.hook
[Trigger]
Operation = Upgrade
Operation = Remove
Type = Package
Target = linux
[Action]
Depends = coreutils
Depends = bash
@Mrigank11
Mrigank11 / klipper.sh
Last active September 12, 2018 07:44
klipper rofi integration script
#!/bin/zsh
klipper="qdbus org.kde.klipper /klipper org.kde.klipper.klipper"
get_content="$klipper.getClipboardHistoryMenu"
set_content="$klipper.setClipboardContents"
clear_history="$klipper.clearClipboardHistory"
show_klipper="$klipper.showKlipperPopupMenu"
get_item="$klipper.getClipboardHistoryItem"
#this fn. trims multiline to single line
function list(){
@Mrigank11
Mrigank11 / webpack.config.js
Created February 24, 2018 13:28
Minimal webpack3 config file configured for babel, sass and uglify
const path = require('path');
const webpack = require('webpack');
//plugins
const HtmlWebpackPlugin = require('html-webpack-plugin');
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
const ETP = require("extract-text-webpack-plugin");
//region arguments parsing
let argv = JSON.parse(process.env.npm_config_argv).original;
const prod = argv.indexOf("--prod") > -1 ? 1 : 0;