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
// http://bit.ly/qDefer | |
$(function(){$('script[type="text/javascript/defer"]').each(function(){$(this).clone().attr('type','').insertAfter(this)})}); |
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
# | |
# 12.0.6 ARMv5 sf | |
# | |
$ java -agentpath:/home/pi/yourkit/yjp-12.0.6/bin/linux-armv5-sf/libyjpagent.so | |
Error occurred during initialization of VM | |
Could not find agent library /home/pi/yourkit/yjp-12.0.6/bin/linux-armv5-sf/libyjpagent.so in absolute path, with error: /home/pi/yourkit/yjp-12.0.6/bin/linux-armv5-sf/libyjpagent.so: cannot open shared object file: No such file or directory | |
$ file /home/pi/yourkit/yjp-12.0.6/bin/linux-armv5-sf/libyjpagent.so | |
/home/pi/yourkit/yjp-12.0.6/bin/linux-armv5-sf/libyjpagent.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, stripped |
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
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! |
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
#!/bin/sh | |
# | |
# This script installs a virtual desktop using Xvfb, x11vnc, mate-desktop, | |
# mate-session-manager and Apache Guacamole. It runs on Alpine Linux Edge. | |
# | |
# See also: | |
# https://www.reddit.com/r/selfhosted/comments/b6k8go/poc_a_desktop_in_a_container_on_a_server/ | |
# This is the user, under which the MATE desktop will run | |
# Notice: For several reasons this shouldn't be root |
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
server: | |
########################################################################### | |
# BASIC SETTINGS | |
########################################################################### | |
# Time to live maximum for RRsets and messages in the cache. If the maximum | |
# kicks in, responses to clients still get decrementing TTLs based on the | |
# original (larger) values. When the internal TTL expires, the cache item | |
# has expired. Can be set lower to force the resolver to query for data | |
# often, and not trust (very large) TTL values. | |
cache-max-ttl: 86400 |
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
--- | |
# I want to verify that /dev/pts is mounted, and if not, mount it. | |
# Manually, this is simply: mount devpts /dev/pts -t devpts | |
# I want the resulting playbook to be idempotent and support the --check flag | |
- hosts: test | |
remote_user: testroot | |
tasks: | |
# The simple "command" way to do this. |
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
{ | |
pkgs ? import <nixpkgs> {} | |
}: | |
pkgs.stdenv.mkDerivation rec { | |
pname = "k0s-src"; | |
version = "v1.23.3"; | |
# src = builtins.fetchTarball { | |
# url = "https://github.com/k0sproject/k0s/archive/1a5afc71a0d4f6975e15b842aa1a934bc0986d7a.tar.gz"; |
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
{ config, pkgs, ... }: | |
let | |
# Import unstable channel. | |
# sudo nix-channel --add http://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable | |
# sudo nix-channel --update nixpkgs-unstable | |
unstable = import <nixpkgs-unstable> {}; | |
in | |
{ |
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
{ | |
pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs-channels/archive/a7ecde854aee5c4c7cd6177f54a99d2c1ff28a31.tar.gz") {} | |
}: | |
with pkgs; | |
{ | |
k0s = stdenv.mkDerivation rec { | |
pname = "k0s"; | |
version = "v1.23.3+k0s.1-amd64"; |
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
(defun rk/open-compilation-buffer (&optional buffer-or-name shackle-alist shackle-plist) | |
"Helper for selecting window for opening *compilation* buffers." | |
;; find existing compilation window left of the current window or left-most window | |
(let ((win (or (loop for win = (if win (window-left win) (get-buffer-window)) | |
when (or (not (window-left win)) | |
(string-prefix-p "*compilation" (buffer-name (window-buffer win)))) | |
return win) | |
(get-buffer-window)))) | |
;; if the window is dedicated to a non-compilation buffer, use the current one instead | |
(when (window-dedicated-p win) |