Skip to content

Instantly share code, notes, and snippets.

View dolftax's full-sized avatar

Jai Pradeesh dolftax

View GitHub Profile
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 ++--
@dolftax
dolftax / Dockerfile
Created March 26, 2017 14:49
Irssi 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
@dolftax
dolftax / init.el
Last active July 6, 2019 16:58
dolftax's dotemacs
;;; Emacs configuration file
;;; Code:
;; -------------------------------------------------
;; Base editor configurations
;; -------------------------------------------------
;; Scrollbars, menubars, toolbars. Hide'em
(if (display-graphic-p)
@dolftax
dolftax / fnotify.pl
Created September 20, 2016 20:15 — forked from matthutchinson/fnotify.pl
Irssi fnotify
# 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',
@dolftax
dolftax / irssi-notify.sh
Created September 20, 2016 20:13
Irssi Notifier
#!/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.
#

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:

@dolftax
dolftax / countries-alphaTwo.json
Created April 28, 2016 09:44
Countries and their alpha two code values
{
"AD": "Andorra",
"AE": "United Arab Emirates",
"AF": "Afghanistan",
"AG": "Antigua and Barbuda",
"AI": "Anguilla",
"AL": "Albania",
"AM": "Armenia",
"AO": "Angola",
"AR": "Argentina",
@dolftax
dolftax / s.js
Last active January 19, 2016 05:55
//! moment.js
//! version : 2.8.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function (undefined) {
/************************************
Constants
************************************/
@dolftax
dolftax / version-inc.js
Last active January 17, 2016 18:23
Version incrementer
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]
@dolftax
dolftax / pty.js
Created November 20, 2015 15:32
pty.js build fails on node v4.2.0
> 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&);
^