Such a neat fix for the trippy involuntary keyboard changes on Ubuntu 14.04 (Trusty Tahr)
$ setxkbmap -layout br,us
docker exec -it <postgres container> su -c "rm /var/lib/postgresql/data/postmaster.pid && /usr/lib/postgresql/<version>/bin/pg_resetxlog -f /var/lib/postgresql/data" postgres |
Windows 10 Single Language en-US Language Pack (build 14393) | |
http://download.windowsupdate.com/c/msdownload/update/software/updt/2016/07/lp_6cb8e04b938b9c8b20221317db1f5b381ef00531.cab |
<?php | |
$filePath = @$argv[1]; | |
$outputExt = @$argv[2]; | |
if (!isset($filePath)) { | |
echo "Base64 content file hasn't been actually provided"; | |
exit; | |
} |
/* | |
* A little bit of fun with JS | |
*/ | |
(function() { | |
var a = new Object(); | |
var b = undefined; | |
var c = "asd"; | |
var d = 123; | |
Such a neat fix for the trippy involuntary keyboard changes on Ubuntu 14.04 (Trusty Tahr)
$ setxkbmap -layout br,us
def path = "" //path to input file directory | |
def input = new File("${path}/file.png") //example | |
def mime = new javax.activation.MimetypesFileTypeMap().getContentType(input) | |
def content = "data:${mime};base64,${input.bytes.encodeBase64().toString()}" | |
def output = new java.io.FileWriter("${path}/${input.name}.datauri") | |
def info = "${input.name} -> ${((input.size() / 1024f) / 1024f)} MB \nMime-type: ${mime}" | |
println info | |
output.write(content) | |
output.close() |