Skip to content

Instantly share code, notes, and snippets.

View VishalTaj's full-sized avatar
🎯
Focusing

Vishal Taj PM VishalTaj

🎯
Focusing
  • Kuala Lampur, Malaysia
View GitHub Profile
@VishalTaj
VishalTaj / redis-resque-stuff.md
Created June 28, 2022 05:33 — forked from kany/redis-resque-stuff.md
Clearing dead/stuck/zombie Resque workers redis resque delayed_job

$ rails c

Loading development environment (Rails 3.1.3)
1.9.3p0 :002 > Resque::Worker.working.each{|w| w.done_working}

$ redis-cli

# Removes data from your connection's CURRENT database.
@VishalTaj
VishalTaj / response_example.rb
Created March 31, 2022 11:41 — forked from yesnik/response_example.rb
Ruby on Rails request.env variable content
# This is the content of variable request.env
# We get this content in controller:
# class BlogsController < ApplicationController
# def index
# render plain: "Response: #{ YAML::dump(request.env) }"
# end
# end
@VishalTaj
VishalTaj / aws_signed_request_v4.rb
Created October 16, 2020 11:30 — forked from blelump/aws_signed_request_v4.rb
Sample Ruby code to create AWS signed request version 4 (with request headers)
#Signing AWS Requests By Using Signature Version 4
#http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html
require 'uri'
require 'openssl'
require 'net/http'
require 'cgi'
method = 'GET'
service = 'iam'
@VishalTaj
VishalTaj / attack_urls.txt
Created October 14, 2019 07:22 — forked from acosonic/attack_urls.txt
Comprehensive list of attack/probe URL's
#This was done by some tool, don't know which one, and our custom built app captured theese URL's, after filtering
#for unique URL's, here is list of URL's in original form, I will later try to create some protection
/3B1728A10D221805D2CABE58B095D353.php
/manager/html
/wp-content/plugins/portable-phpmyadmin/wp-pma-mod/index.php
/mysql/mysqlmanager/index.php
/mysql/sqlmanager/index.php
/mysql/dbadmin/index.php
/mysql/admin/index.php
/phpmy/index.php
@VishalTaj
VishalTaj / git-deployment.md
Created February 7, 2019 12:10 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like my Deepl.io to act upon a Web-Hook that's triggered that service.