Skip to content

Instantly share code, notes, and snippets.

View DmitrySandalov's full-sized avatar

Dmitry Sandalov DmitrySandalov

View GitHub Profile
@Schnouki
Schnouki / popcorntime-vpn.sh
Last active January 20, 2024 12:07
OpenVPN for a single application using network namespaces -- helper scripts
#!/usr/bin/env zsh
# Initialize VPN
sudo vpnns up
sudo vpnns start_vpn
# Popcorn time!
sudo ip netns exec frootvpn sudo -u $USER popcorntime
# Cleanup
anonymous
anonymous / cristina-fernandez-kirchner-tweets.md
Created July 3, 2013 11:13
President Cristina Fernandez de Kirchner's tweets translation about Evo Morales issue

This is an extraction from http://www.mail-archive.com/kragen-journal@canonical.org/msg00111.html

Edward Snowden is apparently still in Moscow, but Evo Morales's plane leaving Moscow was denied passage over France, Portugal, and apparently Italy, on suspicion that it contained Snowden. (This is how European countries show their gratitude for leaks showing the extent of USG spying on it?) It was forced to land in Vienna, where I'm still not clear on whether it was searched.

President Cristina Fernandez de Kirchner posted an outraged, and

// ==UserScript==
// @name Ingress Player Locations
// @description Shows player locations on the Ingress Intel Map
// @version 1.2
// @match http://www.ingress.com/intel
// @run-at document-start
// ==/UserScript==
function override() {
@breunigs
breunigs / ingress-classic-gmaps-laf.user.js
Last active December 10, 2015 13:09
Restore Google Maps Classic For Ingress Intel
// ==UserScript==
// @id www.ingress.com-f4dbd255-58ee-4873-988a-b2265a876000@scriptish
// @name Restore Google Maps Classic For Ingress Intel
// @version 3
// @namespace https://gist.github.com/4439073
// @updateURL https://gist.github.com/raw/4439073/ingress-classic-gmaps-laf.user.js
// @downloadURL https://gist.github.com/raw/4439073/ingress-classic-gmaps-laf.user.js
// @description Restores the classical Google Maps style to the Ingress intel map
// @include http://www.ingress.com/intel*
// @run-at document-end
@ryankearney
ryankearney / ComcastInject.html
Last active June 10, 2023 14:40
This is the code Comcast is injecting into its users web traffic.
<script language="JavaScript" type="text/javascript">
// Comcast Cable Communications, LLC Proprietary. Copyright 2012.
// Intended use is to display browser notifications for critical and time sensitive alerts.
var SYS_URL='/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/notify.do';
// var image_url='http://servicealerts.comcast.net:8080/images/mt';
var image_url='http://xfinity.comcast.net/constantguard/BotAssistance/notice/images';
var headertext1='<strong>Comcast Courtesy Notice</strong>';
var textline1='You have reached 90% of your <b>monthly data usage allowance</b>.';
var textline2='Please sign in for more information and to remove this alert.';
var acknowledgebutton='<a href=\"#\" onClick="document.location.href=\''+SYS_URL+'?dispatch=redirect&redirectName=login&paramName=bmUid\'" title="Sign in to acknowledge" style="color: #FFFFFF;"><img alt="Sign in to acknowledge" src="'+image_url+'/mt_signin.png"/></a>';
@djekl
djekl / dabblet.css
Created December 16, 2011 18:40
Apple Style 'Buy Now' Button
/**
* Apple Style 'Buy Now' Button
*/
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
}
@mitchellh
mitchellh / gist:1277049
Created October 11, 2011 01:30
Configure Vagrant VM to use Host DNS for VPN
Vagrant::Config.run do |config|
# ...
config.vm.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
@mahmoudimus
mahmoudimus / nose-timetests.py
Last active April 6, 2016 16:36
Nose plugin to time tests
"""This plugin provides test timings to identify which tests might be
taking the most. From this information, it might be useful to couple
individual tests nose's `--with-profile` option to profile problematic
tests.
This plugin is heavily influenced by nose's `xunit` plugin.
Add this command to the way you execute nose::
--with-test-timer