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() |
Such a neat fix for the trippy involuntary keyboard changes on Ubuntu 14.04 (Trusty Tahr)
$ setxkbmap -layout br,us
/* | |
* A little bit of fun with JS | |
*/ | |
(function() { | |
var a = new Object(); | |
var b = undefined; | |
var c = "asd"; | |
var d = 123; | |
<?php | |
$filePath = @$argv[1]; | |
$outputExt = @$argv[2]; | |
if (!isset($filePath)) { | |
echo "Base64 content file hasn't been actually provided"; | |
exit; | |
} |
Windows 10 Single Language en-US Language Pack (build 14393) | |
http://download.windowsupdate.com/c/msdownload/update/software/updt/2016/07/lp_6cb8e04b938b9c8b20221317db1f5b381ef00531.cab |
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 |
- Boot the computer using the Windows 7/8/8.1/10 installation media. | |
- On the first screen, press Shift+F10 to bring up the command prompt. | |
- Run the following commands at the command prompt. | |
diskpart | |
list disk | |
select disk # Note: select the disk where you want to add the EFI System partition. | |
list partition | |
select partition # Note: select the Windows OS partition (# number) or your data partition. | |
shrink desired=100 |
apk add --update alpine-sdk cmake libxml2-dev libxslt-dev |
alias gbrda='git branch | gsed "s/^[^*]/git branch -D/e"' |
I hereby claim:
To claim this, I am signing this object: