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 / php-channel-example.spec
Created December 22, 2014 10:28
RPM (Fedora) PHP Channel SPEC
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%global pear_channel pear.example.org
%global pear_channel_name example
Name: php-channel-%{pear_channel_name}
# Use REST version
Version: 1.3
Release: 1%{?dist}
Summary: Adds %{pear_channel_name} channel to PEAR
Group: Development/Languages
@meghprkh
meghprkh / php-pear-CakePHP.spec
Created December 22, 2014 11:09
php-pear-CakePHP.spec
%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%global pear_name CakePHP
%global pear_channel pear.cakephp.org
Name: php-pear-%{pear_name}
Version: 2.5.7
Release: 1%{?dist}
Summary: %{pear_name} Rapid Development Framework
@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 / demo_out.js
Created May 30, 2016 18:53
Guitar Tuner JSX GTK demo output
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/**
* 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
*/
@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])
@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 / 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 / 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 / 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"