Skip to content

Instantly share code, notes, and snippets.

@kurtschlatzer
kurtschlatzer / patch-edid.md
Last active October 13, 2023 06:46 — forked from ejdyksen/patch-edid.md
Fix EDID problems on external monitors in Mac OS.
@nmz787
nmz787 / each_cell_on_its_own_line
Last active August 20, 2023 09:38
git-xlsx-textconv-python
import xlrd
import sys
if __name__ == '__main__':
if len(sys.argv) != 2:
print "Usage: git-xlsx-textconv file.xslx"
excelFileName = sys.argv[1]
xlFile = xlrd.open_workbook(excelFileName)
@bosmievoll
bosmievoll / ADPasswordEncoder.java
Created November 22, 2011 09:09
Active Directory Password Encoder
package no.smievoll.ad;
import javax.naming.directory.BasicAttribute;
import java.util.List;
public class ADPasswordEncoder {
private static byte[] generatePasswordByteArray(String clearTextPassword) throws UnsupportedEncodingException {
/* NB: AD requires password string to be quoted. */
@sgr
sgr / workaround_the_iconservices_bug_mavericks.sh
Last active July 25, 2020 11:01
When "com.apple.IconServicesAgent" exhausts CPU resources on Mac OSX mavericks (10.9), you can try following workaround.
#!/bin/sh
mkdir ${TMPDIR}/com.apple.IconServices
@smat
smat / pom.xml
Created February 22, 2012 15:49
Commit id in production
<project>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<!-- outputFile doesn't work in the regular v1.2 (see MEXEC-86) -->
<version>1.2.1-BRING</version>
<executions>
<execution>
@cjohansen
cjohansen / gist:1486702
Created December 16, 2011 16:23
Asynchronous Buster.JS tests
// Oops: Defaut test runner timeout is 250ms
buster.testCase("Async stuff", {
"does things asynchonously": function (done) {
setTimeout(function () {
assert(true);
done();
}, 100);
},