udevadm -d test-builtin net_setup_link /sys/class/net/eth0
udevadm test /sys/class/net/eth0
## Builder for NixOS configurations defined at the end of the file to be built into KVM VM's | |
{ system ? builtins.currentSystem }: | |
let | |
loadcfg = cfgfile: { config, pkgs, ...}: { | |
imports = [ <nixos/modules/virtualisation/qemu-vm.nix> cfgfile ]; | |
config = { | |
networking.extraHosts = '' | |
176.32.0.254 template | |
''; |
# This shell defines a development environment for a c project. | |
{ | |
pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/39e6bf76474ce742eb027a88c4da6331f0a1526f.tar.gz") {} | |
}: | |
# Override packages if necessary | |
#let | |
# newExample = pkgs.example.override { | |
# option = example | |
# }; |
#!/usr/bin/env sh | |
set -e | |
APP_NAME="myapp" | |
DEFINE_PREFIX="MYAPP" | |
BINARY="${APP_NAME}_linux_x86_64" | |
BASE_DIR="$PWD" | |
PLATFORM_DIR="$(dirname "$0")" | |
PLATFORM_NAME="$(basename "${PLATFORM_DIR}")" |
/* | |
To calculate the RUC number for your cedula: | |
Starting with the rightmost digit, multiply it by 2. | |
Then, multiply the next digit by 3 and add it to the first result. | |
Then, multiply the next digit by 4 and add it to the running total. | |
... keep doing this. | |
Finally, take the remainder of the the total divided by 11 (called the modulo), | |
and subtract it from 11. | |
original inspiration: http://www.necesitomas.com/digito-verificador |
echo 1 > /proc/sys/kernel/sysrq | |
echo s > /proc/sysrq-trigger #sync | |
echo u > /proc/sysrq-trigger #unmount + mount readonly | |
echo b > /proc/sysrq-trigger #reboot |
// | |
// This section is just for context | |
// | |
#include <xcb/xcb.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <stddef.h> | |
typedef int8_t int8; |