(loose ref: https://www.mail-archive.com/[email protected]/msg10948.html)
sudo systemctl disable guix-daemon.service
sudo systemctl disable gnu-store.mount
systemctl reboot
sudo rm -rf /gnu
sudo rm -rf /var/guix
(loose ref: https://www.mail-archive.com/[email protected]/msg10948.html)
sudo systemctl disable guix-daemon.service
sudo systemctl disable gnu-store.mount
systemctl reboot
sudo rm -rf /gnu
sudo rm -rf /var/guix
#!/bin/bash | |
### steps #### | |
# verify the system has a cuda-capable gpu | |
# download and install the nvidia cuda toolkit and cudnn | |
# setup environmental variables | |
# verify the installation | |
### | |
### to verify your gpu is cuda enable check |
(require '[clojure.spec.alpha :as s]) | |
(s/def ::defreloadable-args | |
(s/cat :name simple-symbol? | |
:doc (s/? string?) | |
:attr-map (s/? map?) | |
:fn-tails (s/+ any?))) | |
(defmacro defreloadable | |
"Defines a new function as [[defn]], but old references will refer to new versions when reloaded. |
// CHANGES MADE: | |
// Added more clarifying comments inside the function. | |
// Removed MSVC warning C6011 - null pointer dereference. | |
// Fixed a slight grammar error - "This demo app only demonstrate" => "This demo app only demonstrates" | |
// Demonstrate using DockSpace() to create an explicit docking node within an existing window. | |
// Note: You can use most Docking facilities without calling any API. You DO NOT need to call DockSpace() to use Docking! | |
// - Drag from window title bar or their tab to dock/undock. Hold SHIFT to disable docking. | |
// - Drag from window menu button (upper-left button) to undock an entire node (all windows). | |
// About dockspaces: |
static ImGuiDockNodeFlags dockspace_flags = ImGuiDockNodeFlags_PassthruCentralNode; | |
// We are using the ImGuiWindowFlags_NoDocking flag to make the parent window not dockable into, | |
// because it would be confusing to have two docking targets within each others. | |
ImGuiWindowFlags window_flags = ImGuiWindowFlags_MenuBar | ImGuiWindowFlags_NoDocking; | |
ImGuiViewport* viewport = ImGui::GetMainViewport(); | |
ImGui::SetNextWindowPos(viewport->Pos); | |
ImGui::SetNextWindowSize(viewport->Size); | |
ImGui::SetNextWindowViewport(viewport->ID); |
https://day8.github.io/re-frame/EffectfulHandlers/
at any one time, the value in app-db is the result of performing a reduce over the entire collection of events dispatched in the app up until that time. The combining function for this reduce is the set of registered event handlers.
At the end of 2020, Discord introduced a new feature that is available to bots: Slash Commands.
Slash Commands belong to a new feature category called "Interactions" which finally allows bots to
enhance the Discord UI. As such, the way slash commands (and upcoming interactions such as clickable buttons aka. "components")
work is quite different from other parts of the API.
Slash commands are Discord entities that you can create, edit and delete through requests. Registered commands have a name
and a description
and are accessible in Discord clients by typing /name
.
There are two types of commands: guild and global. As the names indicate, commands of the former type are only accessible in one specific guild
#!/usr/bin/env python3 | |
# | |
# Simple Intel x520 EEPROM patcher | |
# Modifies the EEPROM to unlock the card for non-intel branded SFP modules. | |
# | |
# Copyright 2020,2021,2022 Andreas Thienemann <[email protected]> | |
# | |
# Licensed under the GPLv3 | |
# | |
# Based on research described at https://forums.servethehome.com/index.php?threads/patching-intel-x520-eeprom-to-unlock-all-sfp-transceivers.24634/ |
#!/usr/bin/python3 | |
import os | |
from dns import resolver | |
from ipalib import api | |
from ipapython import dnsutil | |
certbot_domain = os.environ['CERTBOT_DOMAIN'] | |
certbot_validation = os.environ['CERTBOT_VALIDATION'] | |
if 'CERTBOT_AUTH_OUTPUT' in os.environ: |
Rust error handling is nice but obligatory. Which makes it sometimes plenty of code.
Functions return values of type Result that is "enumeration". In Rust enumeration means complex value that has alternatives and that alternative is shown with a tag.
Result is defined as Ok or Err. The definition is generic, and both alternatives have