Using Mate DE and i3-gaps WM
May 4th 2017
Use Debian Stretch RC3 Installer: https://www.debian.org/devel/debian-installer/
- Non-graphical install
- Ignore warning about firmware not found for wireless card
ffi = require("ffi") | |
C = ffi.C | |
ffi.cdef([[ | |
typedef struct objc_object *id; | |
typedef struct objc_selector *SEL; | |
id objc_getClass(const char*); | |
SEL sel_registerName(const char*); | |
id objc_msgSend(id,SEL); | |
id NSPasteboardTypeString; |
#!/usr/bin/env lua | |
local uv = require("luv") | |
local port = arg[1] or "/dev/ttyUSB0" | |
local baud = arg[2] or 115200 | |
local read_fd = assert(uv.fs_open(port, "r", tonumber("666", 8))) | |
local write_fd = assert(uv.fs_open(port, "w", tonumber("666", 8))) | |
os.execute("stty -F " .. port .. " " .. baud .. " raw -echo -echoe -echok") |
#!/bin/bash | |
IP=192.168.86.24 | |
PORT=38899 | |
while : | |
do | |
HOURS=$(date +"%-H") | |
MINUTES=$(date +"%-M") | |
MINUTES=$(($HOURS * 60 + $MINUTES)) |
# lua.nix | |
{ config, lib, pkgs, ... }: | |
with pkgs; let | |
luaprompt = luajitPackages.buildLuarocksPackage { | |
pname = "luaprompt"; | |
version = "0.7-1"; | |
knownRockspec = (fetchurl { | |
url = "https://luarocks.org/luaprompt-0.7-1.rockspec"; |
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/refs/tags/21.05.tar.gz") { } | |
, pkgs_x86_64 ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/refs/tags/21.05.tar.gz") { localSystem = "x86_64-darwin"; } | |
}: | |
with pkgs.python38Packages; | |
let | |
cascadetoml = buildPythonPackage rec { | |
pname = "cascadetoml"; | |
version = "0.3.0"; | |
src = fetchPypi { |
Using Mate DE and i3-gaps WM
May 4th 2017
Use Debian Stretch RC3 Installer: https://www.debian.org/devel/debian-installer/
/* Copyright (c) 2019 Michael Mogenson | |
* MIT license https://opensource.org/licenses/MIT | |
*/ | |
/* This contrived example demonstrates the use of the comma operator and | |
* variadic arguments to create a function-like macro that accepts an optional | |
* argument and provides a default value when no argument is supplied. | |
* | |
* C's comma operator will evaluate the statement to the left of the comma and | |
* return the value of the statement to the right. The line `if (i++, true)` is |
class EnumType { | |
static const int one = 1; | |
} | |
void printEnum(EnumType number) { | |
print(number); | |
} | |
void main() { | |
printEnum(EnumType.one); |
This following instructions install Arch Linux on a Dell 5530 laptop. This installation uses systemd for boot. It sets up a 30GB root partition and an encrypted user partition that is decrypted and mounted on login. Let's get started.
Download and write the Arch Linux installation ISO to a flash drive. Insert flash drive, press power, hold F12, and select flash drive to boot.
Set system clock:
timedatectl set-ntp true
#!/usr/bin/env python3 | |
import requests | |
import sys | |
import re | |
# parse command line arguements | |
if len(sys.argv) != 3: | |
print("Usage: {} latitude longitude".format(sys.argv[0])) | |
sys.exit() |