Skip to content

Instantly share code, notes, and snippets.

Jai Pradeesh jaipradeesh

Block or report user

Report or block jaipradeesh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c680127e314f35a902ae87d8537f8831
From 65aa0b180b547bce4ed771186e28be10762ad955 Mon Sep 17 00:00:00 2001
From: Ashish <ashi.sinha.87@gmail.com>
Date: Sat, 24 Nov 2018 12:14:52 +0530
Subject: [PATCH] OlderThan & NewerThan configured for Days, Hours and Minutes
Previously OlderThan and NewerThan was configured for day
which has been changed to Days, Hours and minutes.
---
cmd/cp-main.go | 32 ++--
cmd/mirror-main.go | 32 ++--
View Dockerfile
core@nucleus ~ $ cat Dockerfile
FROM alpine:latest
RUN apk --no-cache add \
--repository https://dl-3.alpinelinux.org/alpine/latest-stable/community \
ca-certificates \
perl-datetime \
perl-timedate
ENV HOME /home/user
@jaipradeesh
jaipradeesh / init.el
Last active Jul 6, 2019
dolftax's dotemacs
View init.el
;;; Emacs configuration file
;;; Code:
;; -------------------------------------------------
;; Base editor configurations
;; -------------------------------------------------
;; Scrollbars, menubars, toolbars. Hide'em
(if (display-graphic-p)
View fnotify.pl
# todo: grap topic changes
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '0.0.3';
%IRSSI = (
authors => 'Thorsten Leemhuis',
contact => 'fedora@leemhuis.info',
View irssi-notify.sh
#!/bin/bash
# watch your irssi fnotify file for new messages to notify you of...
# Copyright (C) 2012-2013 James Shubin
# Written by James Shubin <james@shubin.ca>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
View keybase.md

Keybase proof

I hereby claim:

  • I am dolftax on github.
  • I am dolftax (https://keybase.io/dolftax) on keybase.
  • I have a public key ASDUiZV--g8jLzANSY8pr2AZka_NmDlw3fDIlpsc-9z-MQo

To claim this, I am signing this object:

@jaipradeesh
jaipradeesh / countries-alphaTwo.json
Created Apr 28, 2016
Countries and their alpha two code values
View countries-alphaTwo.json
{
"AD": "Andorra",
"AE": "United Arab Emirates",
"AF": "Afghanistan",
"AG": "Antigua and Barbuda",
"AI": "Anguilla",
"AL": "Albania",
"AM": "Armenia",
"AO": "Angola",
"AR": "Argentina",
View s.js
//! moment.js
//! version : 2.8.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function (undefined) {
/************************************
Constants
************************************/
@jaipradeesh
jaipradeesh / version-inc.js
Last active Jan 17, 2016
Version incrementer
View version-inc.js
var replaceStream = require('replacestream')
var fs = require('fs')
var mode = process.argv[2]
var exec = require('child_process').exec
if(process.argv[2]) {
fs.readFile(process.cwd() + '/VERSION', function(err, data) {
var verArr = data.toString('utf8').split('\n')[0].split('.')
var oldVer = verArr[0] + '.' + verArr[1] + '.' + verArr[2]
@jaipradeesh
jaipradeesh / pty.js
Created Nov 20, 2015
pty.js build fails on node v4.2.0
View pty.js
> pty.js@0.2.3 install /home/jai/altair/node_modules/vfs-local/node_modules/pty.js
> node-gyp rebuild
make: Entering directory `/home/jai/altair/node_modules/vfs-local/node_modules/pty.js/build'
CXX(target) Release/obj.target/pty/src/unix/pty.o
../src/unix/pty.cc:65:15: error: ‘Arguments’ does not name a type
PtyFork(const Arguments&);
^
../src/unix/pty.cc:65:24: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
PtyFork(const Arguments&);
^
You can’t perform that action at this time.