Skip to content

Instantly share code, notes, and snippets.

@magnushammar
magnushammar / configuration.nix
Last active April 17, 2024 21:01
NixOs configuration testing
{ config, lib, pkgs, modulesPath, ... }:
{ imports = [ <nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix> ];
environment.systemPackages = with pkgs; [
git
];
}
<form>
<label for="serialnumber">Enter serial number:</label><br>
<input type="text" id="serialnumber" name="serialnumber"><br>
<label for="message">Enter message:</label><br>
<textarea id="message" name="message"></textarea><br>
<input type="submit" value="Send SMS" onclick="sendSMS(event)">
</form>
// Generated in cooperation with OpenAI ChatGPT
<script>
function sendSMS(event) {

Relatively new Font Awesome 5 icons do not render

I am trying to add icons with the pseudo css method but I am having problems with icons that where added in Font Awesome 5. Icons added in version four, like clock and star work as expected but not chalkboard-user and an even newer I tried, dharmachakra.

/* chalkboard-user Not shown */
.bu-table-teacher th::before {
<html>
<head>
<style>
:root {
/* Some browsers ignore the scrollbar width others not
https://stackoverflow.com/a/34884924 */
--view-width-100: calc(100vw - (100vw - 100%));
--page-margin: 10px;
--page-gutter: 10px;
(* Sample CSV
Date,Sales
2022-01-08 16:06:29,1
2022-01-08 12:06:29,2
2022-01-09 12:06:29,4
*)
#r "nuget: FSharp.Data"
#r "nuget: Plotly.NET, 2.0.0-preview.17"
$registryPath = "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore"
$name = "SystemRestorePointCreationFrequency"
$value = "0"
(IF(!(Test-Path $registryPath))
{
New-Item -Path $registryPath -Force | Out-Null
New-ItemProperty -Path $registryPath -Name $name -Value $value ` -PropertyType DWORD -Force | Out-Null}
ELSE {
New-ItemProperty -Path $registryPath -Name $name -Value $value ` -PropertyType DWORD -Force | Out-Null})
@magnushammar
magnushammar / hammar-keyremap.ahk
Last active May 12, 2020 19:43
Key Remapping for programming on Swedish keyboard
; *********** FOR SWEDISH KEYBOARD ***********
#SingleInstance, force
SetCapsLockState, AlwaysOff
; Regular remapping
RWin::AppsKey
§:: Send {esc}
;SC01B::^
@magnushammar
magnushammar / sungamr-get-windows-10-key.vbs
Last active January 15, 2017 14:00
sungamr-get-windows-10-key
'Code kidnapped from
'http://winaero.com/blog/author/hb860root/
'Sergey Tkachenko
Option Explicit
Dim objshell,path,DigitalID, Result
Set objshell = CreateObject("WScript.Shell")
'Set registry key path
Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"