Skip to content

Instantly share code, notes, and snippets.

@ajaysolleti
ajaysolleti / Usage
Created September 14, 2014 15:31
Fix: Patch for Parallel Tools 9.0.23350 to support Linux Kernel 3.12 (Ubuntu 14.04)
Usage:
1) Mount Parallells Tools CD in virtual machine (Virtual Machine -> Install/Reinstall Parallels Tools)
2) Make temporary copy of Parallels Tools, enter and patch it:
$ cp -R /media/$USER/Parallels\ Tools /tmp/
$ cd /tmp/Parallels\ Tools/kmods
$ tar -xaf prl_mod.tar.gz
$ patch -p1 -d prl_fs < parallels-tools-linux-3.12-prl-fs-9.0.23350.941886.patch
$ tar -czf prl_mod.tar.gz prl_eth prl_fs prl_fs_freeze prl_tg Makefile.kmods dkms.conf
3) Install normally:
$ sudo /tmp/Parallels\ Tools/install
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@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
@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!"

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 / 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
@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 / 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 / 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 / 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 }) =>