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 nix-shell | |
#!nix-shell -i python3 -p "python3.withPackages(ps: [ ps.dbus-python ps.gst-python ])" pipewire gst_all_1.gst-plugins-base gobject-introspection | |
import re | |
import signal | |
import dbus | |
from gi.repository import GLib | |
from dbus.mainloop.glib import DBusGMainLoop | |
import gi | |
gi.require_version('Gst', '1.0') |
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://heiko-sieger.info/creating-a-windows-10-vm-on-the-amd-ryzen-9-3900x-using-qemu-4-0-and-vga-passthrough/ | |
# Virtualization in BIOS | |
# Intel VTx, AMD SVM | |
# IOMMU in BIOS | |
# Intel VT-d, AMD-Vi | |
# https://ark.intel.com/content/www/us/en/ark/search/featurefilter.html?productType=873&0_VTD=True&1_Filter-Family=122139 | |
# https://ark.intel.com/content/www/us/en/ark/products/88192/intel-core-i7-6600u-processor-4m-cache-up-to-3-40-ghz.html |
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 took https://github.com/etraxis/etraxis, setup and symlinked the vendor/nelmio/api-doc-bundle to the local checkout of the repo, | |
and ran the project with ./bin/console server:start | |
cd ~/ws/NelmioApiDocBundle | |
git checkout refactor-swagger | |
curl http://127.0.0.1:8000/api/doc | \ | |
sed -u -n -e 's/<script id="swagger-data" type="application\/json">\(.*\)<\/script>/\1/p' | jq -S '.' > refactor_swagger.json | |
git checkout master |
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
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
# Version 2, December 2004 | |
{ | |
ngse = { config, pkgs, ... }: rec | |
{ | |
deployment.targetEnv = "container"; | |
deployment.container = { | |
host = "localhost"; | |
clientPublicKey = "~/.ssh/id_nixops.pub"; | |
clientPrivateKey = "~/.ssh/id_nixops"; |
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
#? nix-instantiate check.nix | xargs --max-procs 4 -n 1 -- nix-store -k -r --option use-binary-caches false | |
#? find /nix/store -name *ninka-licenses-builder* | xargs -n1 -I@ nix-store --delete @ | |
#? find /nix/store -name '*ninka-licenses*' | xargs -n1 -I@ -- nix-store --delete @ | |
#? find /nix/store -type d -name *ninka-licenses* | xargs -n1 -I@ -- sh -c 'nix-store --dump @ > `basename @`.nar' | |
with builtins; | |
with { | |
inherit (import ./nixpkgs/pkgs/top-level/all-packages.nix { | |
config = { allowBroken = true; allowUnfree = true; }; | |
}) stdenv pkgs; | |
}; let |
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 | |
test -d nixpkgs && test -f nixpkgs/default.nix || { | |
echo Must run this script in parent of $nixpkgs_dir git root | |
exit 1 | |
} | |
test -d gentoo || { | |
git clone https://anongit.gentoo.org/git/repo/gentoo.git | |
} |
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, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
#./hardware-configuration.nix | |
]; | |
boot = { | |
initrd = { |
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 somewhen, 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
#!/usr/bin/env bash | |
test 0 != $(id -u) && { echo "sudo ${0} ${@}"; sudo ${0} ${@} && exit 0 || exit 1; } | |
BOX_NAME=sles11sp3 | |
AUTOINST=https://raw.githubusercontent.com/jedi4ever/veewee/master/templates/SLES-11-SP3-DVD-x86_64-GM/autoinst.xml | |
BOX_HOME=${HOME}/.vagrant.d/boxes/${BOX_NAME}/0/virtualbox | |
BOX_VMDK=${BOX_HOME}/box-disk1.vmdk |
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/bash | |
case $1 in | |
dbus-monitor) | |
interface=org.freedesktop.Telepathy.Channel.Type.Call1 | |
member=CallStateChanged | |
dbus-monitor "interface='$interface',member='$member'" | | |
while read -r line; do | |
[[ "$line" =~ ^signal ]] && LINENUM=1 || LINENUM=$((LINENUM + 1)) |
NewerOlder