View wine-tkg-fsync-arch-build.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git@github.com:Frogging-Family/wine-tkg-git.git | |
cd Code/wine-tkg-git/wine-tkg-git | |
makepkg | |
# select 0, the customizations has settings for fsync | |
sudo pacman -U wine-tkg-staging-fsync-git-7.11.r6.gc9652a68-327-x86_64.pkg.tar.xz |
View codingame-snake-ai.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.* | |
import java.lang.Integer.parseInt | |
typealias Coord = Pair<Int, Int> | |
fun Coord.x() = first | |
fun Coord.y() = second | |
typealias Move = Pair<Direction, Coord> |
View resize-bf5.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# https://stackoverflow.com/questions/288512/resizing-a-window-to-a-set-size-in-linux | |
wmctrl -l | |
wmctrl -r "Battlefield™ V" -e 0,0,0,1920,1280 |
View clojure.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View --etc--systemd--system--after-sleep.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Make the screen come back after waking from suspend | |
After=suspend.target | |
[Service] | |
Type=oneshot | |
ExecStartPre=/bin/sleep 5s | |
ExecStart=/home/torgeir/bin/after-sleep.sh | |
[Install] |
View js-map-set-complex-objects.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var o = {} | |
var m = new Map() | |
m.set(o, 42) | |
m.get({}) // undefined | |
m.get(o) // 42 | |
var s = new Set() | |
s.add(1) | |
s.add(2) | |
s.add(2) |
View linux-test-disk-write-speed.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dd if=/dev/zero of=test.img bs=1G count=5 oflag=dsync && rm test.img | |
# 5+0 records in | |
# 5+0 records out | |
# 5368709120 bytes (5,4 GB, 5,0 GiB) copied, 3,69591 s, 1,5 GB/s |
View wine-helix-native-vst.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install a bunch of Windows DLLs needed to make Native work | |
# https://ubuntuhandbook.org/index.php/2021/05/wine-6-9-released-install-in-ubuntu-21-04-20-04/ | |
sudo apt install --install-recommends winehq-staging | |
wine 'wineboot' | |
sudo apt install winetricks | |
winetricks vcrun2013 gdiplus urlmon | |
wine $PWD/Downloads/HelixNativev3.11Installer.exe | |
# install yabridge and follow its installation instructions | |
# linux reaper will find the vts3 version |
View org-w3c-dom-serializer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://xerces.apache.org/xerces2-j/faq-dom.html | |
private val loadSaveSerializer by lazy { | |
val registry = DOMImplementationRegistry.newInstance() | |
val domImplementation = registry.getDOMImplementation("LS") as DOMImplementationLS | |
domImplementation.createLSSerializer() | |
} | |
loadSaveSerializer.writeToString(..) |
View bigquery-geojson-with-properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"json": "{\"type\":\"MultiLineString\",\"coordinates\":\"[[[11.36588,61.13079], ... , [11.007229,61.572116]]]\",\"properties\":{\"description\":\"Stengt på grunn ... . \"}}" | |
}, | |
... | |
{ | |
"json": "{\"type\":\"LineString\",\"coordinates\":\"[[10.402729,62.429979], ... ,[10.335529,62.561779]]\",\"properties\":{\"description\":\"Stengt på grunn ... .\"}}" | |
} | |
] |
NewerOlder