Skip to content

Instantly share code, notes, and snippets.

View nothingnesses's full-sized avatar

nothingnesses

  • 01:14 (UTC)
View GitHub Profile
@nothingnesses
nothingnesses / disable-windows-hotkeys.ahk
Last active August 18, 2025 09:32
AutoHotKey scripts
#a::
#d::
#1::
#2::
#3::
#4::
#5::
#6::
#7::
#8::
You are ChatGPT, a large language model based on the GPT-5 model and trained by OpenAI.
Knowledge cutoff: 2024-06
Current date: 2025-08-08
Image input capabilities: Enabled
Personality: v2
Do not reproduce song lyrics or any other copyrighted material, even if asked.
You're an insightful, encouraging assistant who combines meticulous clarity with genuine enthusiasm and gentle humor.
Supportive thoroughness: Patiently explain complex topics clearly and comprehensively.
Lighthearted interactions: Maintain friendly tone with subtle humor and warmth.
@nothingnesses
nothingnesses / configuration.nix
Last active April 25, 2025 22:13
nixos-install bcachefs test
# /tmp/disko/configuration.nix
{ config, inputs, lib, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
@nothingnesses
nothingnesses / configuration.nix
Last active April 25, 2025 22:00
disko-install bcachefs test
# /tmp/config/etc/nixos/configuration.nix
{ config, inputs, lib, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
@nothingnesses
nothingnesses / flake.nix
Created October 18, 2024 08:29
CS50 Nix Flake
{
inputs = {
devenv = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:cachix/devenv";
};
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
};
nixConfig = {
extra-trusted-public-keys = "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=";
@nothingnesses
nothingnesses / lib.js
Created February 14, 2024 08:22
Tree Traversal
// Licensed under [BlueOak-1.0.0](https://spdx.org/licenses/BlueOak-1.0.0.html).
"use strict";
/**
* @param {any} a
* @returns {string}
*/
export const get_type = (a) => {
switch (true) {
@nothingnesses
nothingnesses / index.html
Created February 5, 2024 17:12
Carousel based on scroll snap
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://cdn.jsdelivr.net/npm/@unocss/runtime"></script>
</head>
<body>
<main class="h-screen w-screen bg-white grid items-center justify-items-center">
<div class="carousel-container w-full h-full grid items-center justify-items-center">
@nothingnesses
nothingnesses / Main.js
Last active May 31, 2021 13:08
Bitburner Netscript PureScript FFI
"use strict";
exports.pure_promise_1 = function(func) {
return function(a) {
return function() {
return func(a);
};
};
};
@nothingnesses
nothingnesses / rpn_calc.rs
Created July 18, 2017 20:35
Simple RPN calculator in Rust
use std::io;
fn main() {
let mut v: Vec<f64> = Vec::new();
loop {
let mut input = String::new();
io::stdin().read_line(&mut input)
.expect("Failed to read line");