Skip to content

Instantly share code, notes, and snippets.

@ajaysolleti
ajaysolleti / multiple_ssh_setting.md
Created March 20, 2022 15:16 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
### Keybase proof
I hereby claim:
* I am ajaysolleti on github.
* I am ajaysolleti (https://keybase.io/ajaysolleti) on keybase.
* I have a public key ASAWwsBbdx0Hn_UP2eTT6Btm54iFp3gW01Q-ioScknGAFAo
To claim this, I am signing this object:
@ajaysolleti
ajaysolleti / unfollow.js
Created November 30, 2019 07:58 — forked from JamieMason/unfollow.js.md
Unfollow everyone on twitter.com
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)
// https://gist.github.com/JamieMason/7580315
//
// 1. Go to https://twitter.com/YOUR_USER_NAME/following
// 2. Open the Developer Console. (COMMAND+ALT+I on Mac)
// 3. Paste this into the Developer Console and run it
(() => {
const followButtonQuery = '[data-testid$="-unfollow"]';
const confirmButtonQuery = '[data-testid="confirmationSheetConfirm"]';
const sleep = ({ seconds }) =>
@ajaysolleti
ajaysolleti / npm-upgrade-bleeding.sh
Created June 5, 2019 09:38 — forked from othiym23/npm-upgrade-bleeding.sh
a safe way to upgrade all of your globally-installed npm packages
#!/bin/sh
set -e
set -x
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3)
do
npm -g install "$package"
done
@ajaysolleti
ajaysolleti / image_downloader.js
Created April 27, 2017 17:05 — forked from sfrdmn/image_downloader.js
Bookmarklet to download all images on a page
;(function() {
var images = [].slice.call(document.querySelectorAll('img'))
try {
images.forEach(function(img) {
downloadImage(img)
})
} catch (e) {
alert("Download failed.");
console.log('Download failed.', e);
}
@ajaysolleti
ajaysolleti / WebServiceCaller.java
Created February 10, 2016 17:54 — forked from jeffbicca/WebServiceCaller.java
Adding header elements into a SOAP envelope and setting timeout with JAX-WS.
import javax.xml.ws.Binding;
import javax.xml.ws.BindingProvider;
import javax.xml.ws.WebServiceRef;
import javax.xml.ws.handler.Handler;
public class WebServiceCaller implements Serializable {
private static final int MINUTES = 60000;
@WebServiceRef(wsdlLocation = "http://localhost/WebService.wsdl")
@ajaysolleti
ajaysolleti / kissanime-autohideads.user.js
Last active November 13, 2015 18:49
Kissanime Autohide Ads
// ==UserScript==
// @name Kissanime Autohide Ads
// @namespace com.chasevoid.scripts
// @description Automatically hide Kissanime Ads by clicking on Hide button
// @include http*://kissanime.com/*
// @include http*://kissanime.to/*
// @include http*://kissmanga.com/*
// @version 1
// @author ChaseVoid
// @grant none

Keybase proof

I hereby claim:

  • I am ChaseVoid on github.
  • I am ajaysolleti (https://keybase.io/ajaysolleti) on keybase.
  • I have a public key whose fingerprint is 845D 0705 6D92 EFD3 0ACB FE38 4760 74E2 2E26 7CAE

To claim this, I am signing this object:

@ajaysolleti
ajaysolleti / youtubecenter-update.sh
Last active August 29, 2015 14:16 — forked from madrobby/gist:9476733
Keep the developer version of Youtube Center updated.
curl -H 'Accept: application/vnd.github.v3.raw' -O -L https://github.com/YePpHa/YouTubeCenter/raw/master/dist/YouTubeCenter.xpi
echo "Please click install in Firefox to update YouTubeCenter"
open -a "FireFox" YouTubeCenter.xpi
echo "Waiting 10 seconds for you to click the button"
sleep 10
echo "Cleaning up local copy of YouTubeCenter.xpi"
rm YouTubeCenter.xpi
echo "YouTubeCenter is now updated!"
@ajaysolleti
ajaysolleti / SPTZ.csv
Last active September 22, 2016 19:56 — forked from mattjohnsonpint/SPTZ.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
"SharePoint ID","SharePoint Description","Windows Display Name","Windows ID","IANA Time Zone"
"2","(UTC) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London","(UTC) Dublin, Edinburgh, Lisbon, London","GMT Standard Time","Europe/London"
"3","(UTC+01:00) Brussels, Copenhagen, Madrid, Paris","(UTC+01:00) Brussels, Copenhagen, Madrid, Paris","Romance Standard Time","Europe/Paris"
"4","(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna","(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna","W. Europe Standard Time","Europe/Berlin"
"5","(UTC+02:00) Athens, Bucharest, Istanbul","(UTC+02:00) Athens, Bucharest","GTB Standard Time","Europe/Bucharest"
"6","(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague","(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague","Central Europe Standard Time","Europe/Budapest"
"7","(UTC+02:00) Minsk","(UTC+03:00) Kaliningrad, Minsk","Kaliningrad Standard Time","Europe/Kaliningrad"
"8","(UTC-03:00) Brasilia","(UTC-03:00) Brasilia","E. South Ameri