A script to fix EDID problems on external monitors in Mac OS.
-
Connect the problem monitor.
-
Restart in rootless state with 'CMD R'.
-
Disable SIP. http://www.madrau.com/support/support/srx_1011.html
// Oops: Defaut test runner timeout is 250ms | |
buster.testCase("Async stuff", { | |
"does things asynchonously": function (done) { | |
setTimeout(function () { | |
assert(true); | |
done(); | |
}, 100); | |
}, |
<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> |
#!/bin/sh | |
mkdir ${TMPDIR}/com.apple.IconServices |
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. */ |
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) |
A script to fix EDID problems on external monitors in Mac OS.
Connect the problem monitor.
Restart in rootless state with 'CMD R'.
Disable SIP. http://www.madrau.com/support/support/srx_1011.html
# attempting to be the most robust solution for outputting git log as JSON, | |
# using only `git` and the standard shell functions, without requiring | |
# additional software. | |
# - uses traditional JSON camelCase | |
# - includes every major field that git log can output, including the body | |
# - proper sections for author, committer, and signature | |
# - multiple date formats (one for reading, ISO for parsing) | |
# - should properly handle (most? all?) body values, even those that contain | |
# quotation marks and escaped characters |
/* VT100 terminal reset (<ESC>c) */ | |
console.log('\033c'); | |
/* numbers comparations */ | |
> '2' == 2 | |
true | |
> '2' === 2 |
import javax.net.ssl.SSLParameters; | |
import javax.net.ssl.SSLSocket; | |
import javax.net.ssl.SSLSocketFactory; | |
import java.io.*; | |
/** Establish a SSL connection to a host and port, writes a byte and | |
* prints the response. See | |
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services | |
*/ | |
public class SSLPoke { |
# from i8ramin - http://getintothis.com/blog/2012/04/02/git-grep-and-blame-bash-function/ | |
# runs git grep on a pattern, and then uses git blame to who did it | |
ggb() { | |
git grep -n $1 | while IFS=: read i j k; do git blame -L $j,$j $i | cat; done | |
} | |
# small modification for git egrep bash | |
geb() { | |
git grep -E -n $1 | while IFS=: read i j k; do git blame -L $j,$j $i | cat; done | |
} |