Skip to content

Instantly share code, notes, and snippets.

[7320] 11-17 23:49:14:123: RasGetConnectStatus: read phonenumber </endpoint-address> from port user data
[9988] 11-17 23:49:14:127: NotifyCaller done (dwNotifyResult=1)
[9988] 11-17 23:49:14:128: GetLogonUser=Santi
[9988] 11-17 23:49:14:128: GetLogonDomain=DELTA
[9988] 11-17 23:49:14:129: RASCS_ConnectDevice
[9988] 11-17 23:49:14:129: RasDeviceSetInfo done(0)
[9988] 11-17 23:49:14:129: SetDeviceParamBinary for RDT_Tunnel_Sstp
[9988] 11-17 23:49:14:130: GUID is 625d2c97-313d-48b2
[9988] 11-17 23:49:14:159: GetSstpDestinationInfo completes with 0: Proxy Query Status: 0 DestInfoSize: 120
[9988] 11-17 23:49:14:159: GetSstpDestinationInfo completes with CorrelationID length 16.GUID is 625d2c97-313d-48b2
#!/bin/bash
for file in `dpkg -L $1`
do
if [ -x $file -a ! -d $file ]
then
echo $file
fi
done
@badp
badp / twitterunread.user.js
Created November 26, 2010 00:11
This causes Chrome dev to crash.
// ==UserScript==
// @name TwitterUnread
// @namespace http://henrik.heimbuerger.de/greasemonkey/
// @description [alpha01] ...
// @include http://twitter.com/
// @include http://twitter.com/#
// @include http://www.twitter.com/
// @include http://www.twitter.com/#
// @include https://twitter.com/
// @include https://twitter.com/#
@badp
badp / ad2nite.js
Created December 1, 2010 19:56
Execute this self-contained script on page load -- unless you _are_ a hero.
//seek.
function $$() {
return document.querySelectorAll.apply(document, arguments);
}
//hide.
function pwn(selector) {
targets = document.querySelectorAll(selector);
for(i = 0; i < targets.length; i++){
targets[i].style.display = "none";
@badp
badp / ArdaXi
Created December 2, 2010 21:54
:ban:
:ban::ban::ban:                                        :ban:                          :ban:        :ban: :ban:
:ban:        :ban: :ban:        :ban:         :ban::ban: :ban::ban:         :ban:        :ban:
:ban::ban::ban: :ban::ban:         :ban:        :ban:         :ban::ban:         :ban:         :ban:
:ban:        :ban: :ban:                 :ban:        :ban: :ban:        :ban: :ban:        :ban: :ban:
:ban:        :ban: :ban:                 :ban::ban:        :ban::ban::ban: :ban:        :ban: :ban:
:calim:
@badp
badp / xrandr.sh
Created December 7, 2010 18:56
Straight from the manpages.
#Forces to use a 1024x768 mode on an output called VGA:
xrandr --newmode "1024x768" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
xrandr --addmode VGA 1024x768
xrandr --output VGA --mode 1024x768
@badp
badp / timeline mockup.xml
Created December 14, 2010 10:15
Unfortunately, exporting doesn't include images.
<mockup version="1.0" skin="sketch" measuredW="1035" measuredH="639" mockupW="975" mockupH="619">
<controls>
<control controlID="0" controlTypeID="com.balsamiq.mockups::BrowserWindow" x="60" y="20" w="975" h="570" measuredW="450" measuredH="400" zOrder="0" locked="false" isInGroup="-1">
<controlProperties>
<text>Timeline%20-%20Feedback%20Request%3A%20New%20Timeline%20Question%20View%0Ahttp%3A//meta.stackoverflow.com/questions/36303/timeline</text>
<verticalScrollbar>true</verticalScrollbar>
</controlProperties>
</control>
<control controlID="1" controlTypeID="com.balsamiq.mockups::Title" x="66" y="94" w="-1" h="-1" measuredW="563" measuredH="40" zOrder="3" locked="false" isInGroup="-1">
<controlProperties>
OpenSTV version 1.6.1 (http://www.OpenSTV.org/)
Suggested donation for using OpenSTV for an election is $50. Please go to
http://www.OpenSTV.org/donate to donate via PayPal, Google Checkout, or
Amazon Payments.
Certified election reports are also available. Please go to
http://www.openstv.org/certified-reports for more information.
Loading ballots from file election-results.blt.
@badp
badp / traceroute
Created December 27, 2010 14:31
Some traceroute fun from my mobile on a choke full 3G network
badp@delta:~$ traceroute www.google.com
traceroute to www.google.com (74.125.232.115), 30 hops max, 60 byte packets
1 10.0.0.1 (10.0.0.1) 238.925 ms 250.907 ms 250.850 ms
2 151.6.57.146 (151.6.57.146) 250.794 ms 257.270 ms 257.215 ms
3 MICA-TO2-BOFI-B01-po01.wind.it (151.6.6.9) 271.038 ms 298.402 ms 298.354 ms
4 151.6.2.178 (151.6.2.178) 338.338 ms 338.292 ms 338.239 ms
5 MIOT-B02-MIOT-T02-po01.wind.it (151.6.0.74) 342.169 ms 342.124 ms 382.417 ms
6 66.249.94.235 (66.249.94.235) 382.376 ms 1549.678 ms 1490.900 ms
7 72.14.232.63 (72.14.232.63) 1490.804 ms 1494.754 ms 1494.700 ms
8 74.125.232.115 (74.125.232.115) 1494.647 ms 1494.594 ms 1494.538 ms