Skip to content

Instantly share code, notes, and snippets.

View menporulporiayalan's full-sized avatar
:shipit:

menporulporiayalan

:shipit:
  • Dayspring Technologies
  • Bangalore,India
  • 06:33 (UTC +05:30)
View GitHub Profile
@menporulporiayalan
menporulporiayalan / gist:271b205011fbe4ad63ad27d751638aaf
Created February 1, 2023 06:40 — forked from esaul/gist:1854433
Retry and clear failed Resque jobs
def retry_and_clear(args)
case args
when Integer
Resque::Failure.requeue(args)
Resque::Failure.remove(args)
when String
all_jobs = Resque::Failure.all(0, Resque::Failure.count)
all_jobs.each_with_index do |job, idx|
begin
Resque::Failure.requeue(idx)
@menporulporiayalan
menporulporiayalan / livecricketscore.sh
Created January 13, 2020 07:56 — forked from arulrajnet/livecricketscore.sh
Shell script to get a Live cricket score from www.espncricinfo.com. Just run this shellscript then select your match. when ever you want to know score open that terminal and see. Just simple as Dhoni's helicopter shot :D
#/bin/bash
# Shell script to get a Live cricket score from www.espncricinfo.com
# To help Cricket fan DevOPS see the score on his Terminal.
# Thanks to ESPN SPORTS MEDIA LTD for their RSS feed.
#
# Author : Arul <mailto:me@arulraj.net>
function get_html() {
local html=$(curl -k -L -s $1)
echo "$html"
@menporulporiayalan
menporulporiayalan / README.md
Created October 28, 2019 11:23
VPNGate Python script

vpngate.py

This script allows user to connect to the vpngate server easily. The user just needs to provide the desidered output country, and the script automatically chooses the best server. It provide the user the easy way to select the desired country.

This project is inspired by Andrea Lazzarotto. Thanks to him, I able to make this project successful.

Usage

@menporulporiayalan
menporulporiayalan / 0_reuse_code.js
Created January 31, 2017 12:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console