Skip to content

Instantly share code, notes, and snippets.

View meghprkh's full-sized avatar

Megh Parikh meghprkh

  • Bloomberg
  • New York
View GitHub Profile
@meghprkh
meghprkh / Compress
Last active December 10, 2021 16:39
Nautilus Tweaks #fedora
#!/bin/bash
xyz='file-roller '
IFS=$'\n'
for i in `echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"`
do
xyz="$xyz -d \"$i\""
done
eval "$xyz"
@meghprkh
meghprkh / environment
Last active July 10, 2019 16:27
Fedora Setup Help #fedora
# NO LONGER NEEDED COZ TRANSPARENT PROXY
http_proxy="http://proxy.iiit.ac.in:8080/"
https_proxy="http://proxy.iiit.ac.in:8080/"
ftp_proxy="http://proxy.iiit.ac.in:8080/"
no_proxy="localhost,127.0.0.1,.iiit.ac.in"
HTTP_PROXY="http://proxy.iiit.ac.in:8080/"
HTTPS_PROXY="http://proxy.iiit.ac.in:8080/"
FTP_PROXY="http://proxy.iiit.ac.in:8080/"
NO_PROXY="localhost,127.0.0.1,.iiit.ac.in"
@meghprkh
meghprkh / fedora dcpp.md
Last active May 9, 2019 09:38
DCPP #fedora

Fedora dc++

  • NO LONGER NEEDED: Enable my copr repos:
    dnf copr enable meghprkh/eiskaltdcpp
    
  • Install eiskaltdcpp

dnf install eiskaltdcpp-qt

@meghprkh
meghprkh / iiith-moodle-attendance.user.js
Last active May 9, 2019 09:23
Convenient attendance viewing for IIIT-H Moodle - See first *comment* at the end of the page #userscript
// ==UserScript==
// @name iiith-moodle-attendance
// @namespace http://meghprkh.github.io/
// @version 0.6
// @description Convenient attendance viewing for IIIT-H Moodle
// @author Megh Parikh <meghprkh@gmail.com>
// @match https://moodle.iiit.ac.in/my/
// @match https://moodle.iiit.ac.in/mod/attendance/view.php?*mode=1*
// @homepage https://gist.github.com/meghprkh/3ae064196d562f18d156c6d902505d20
// @updateURL https://gist.github.com/meghprkh/3ae064196d562f18d156c6d902505d20/raw/iiith-moodle-attendance.user.js

Keybase proof

I hereby claim:

  • I am meghprkh on github.
  • I am meghprkh (https://keybase.io/meghprkh) on keybase.
  • I have a public key ASAYrtkf-1crcIDKFouCRYuliwWZ5kM6qZLOfBKl2fl4dAo

To claim this, I am signing this object:

@meghprkh
meghprkh / mathjax-editing.js
Created September 14, 2016 19:20 — forked from gdalgas/mathjax-editing.js
StackExchange MathJax editing code
// The MIT License (MIT)
//
// Copyright (c) 2016 Stack Exchange
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@meghprkh
meghprkh / python-is-shit.py
Created August 31, 2016 19:27
When you dont have compile time errors
#!!/usr/bin/env python3
import curses
class IO:
def __init__(self):
self.stdscr = curses.initscr()
self.stdscr.nodelay(True)
@meghprkh
meghprkh / meson.build
Last active July 4, 2016 20:24
Vala wiki meson build
project('valaprog', ['c', 'vala'])
glib = dependency('glib-2.0')
gobject = dependency('gobject-2.0')
executable('valaprog', 'prog.vala',
dependencies: [glib, gobject])
/**
* A class to store the GUID of the gamepad.
*
* The GUID is a unique 128-bit identifier issued by the driver which is
* dependent on the gamepad only and does not vary with time
*/
public class LibGamepad.Guid : Object {
/**
* Raw GUID data : 128-bits stored as eight 16-bit unsigned integers
*/