Skip to content

Instantly share code, notes, and snippets.

#!/bin/env bash
xprop _NET_WM_PID | cut -d' ' -f3
@smaudet
smaudet / index.html
Last active February 22, 2017 07:43
QtSixA PS3 Instructions
<html>
<head>
<title></title>
<meta content="">
<style></style>
</head>
<body>
<p>Open QtSixA, Select Tasks -> Pair Device to PC</p>
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAsoAAAInCAIAAAAOLuhLAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4nOzddVwU6RsA8GdmZ5uQLpFGFKVEzy4UExS7uz31jDPvZ5x65dnd3YeBgXJ2nYUgNiEh3cL2zs78/gAUYRfjUPB8vh8/ftiZ2ed9Z2F3nn3fd96X6DV0LCCEEEIIVR4K2KquAkIIIYT+WygW8wuEEEIIVSqKZTG9QAghhFBlouDD0guCJAkuj+BwAIClNYxaBSzzmeuGEEIIoapBEETd2i6+Pp6uTo5GNWoAQF5+fnTcy/sPHj59EfPetgkiaNCoio/giMRiR1e9Ws4CSyuOSJ9lWVpaqEhPkSbEyBJiNQp5pZ0KQgghhKoBS3OzYQP7uDo5at0bHfdy1/4j6ZlZFUQgggaO1LmTQwmtapq3C9Czd+EIhQRBvN3FsmpJYeHLF1mXzyoy0kBDf+IZIIQQQqg6cXVynDx+pEgorOAYmVy+ZuP26LiXug7guNX31rVP6OjKNTRUZaZwTS34NYwBgAAoSjFYgMyI27JnERzLmhSPp8qpKIVBCCGE0FfB0sJs5g8TKs4tAIDL5fp41Q+PjJJIpFoP4NSu56VlM0EYevgKbe1eXw+F7FR56iuhRslNeUmlxBEpcUxybMGLqOyroYWxT5Q5Geb+QaxKqczK+PdnhRCq/iiKWrb4f5eu3dRoNFVdF4RQZSIIYtLYEZYW5gDwPDomNT3TwtyszDEPHz/Nz883NTHhcrm1alrf+Oeu1nEYlNYCeDWMhY4uKWHHCVqtY
#!/bin/env python
import sys
import os
import re
matcher = re.compile('^\^')
f = open(sys.argv[1],'r')
for line in f.readlines():
if matcher.match(line) is None:
@echo off
set vernum=8u144
set jdkbasename=jdk8
set "tool7z=C:\Program Files\7-Zip\7z.exe"
set "jdk_exe=%1"
echo Extracting '.rsrc/1033/JAVA_CAB10/111'
%tool7z% e %jdk_exe% .rsrc/1033/JAVA_CAB10/111
rem :: %tool7z% e %jdk_exe% .rsrc/1033/version.txt
@smaudet
smaudet / comma-first-var.js
Created April 5, 2024 16:34 — forked from isaacs/comma-first-var.js
A better coding convention for lists and object literals in JavaScript
// See comments below.
// This code sample and justification brought to you by
// Isaac Z. Schlueter, aka isaacs
// standard style
var a = "ape",
b = "bat",
c = "cat",
d = "dog",