Skip to content

Instantly share code, notes, and snippets.

@forkyau
forkyau / hourly_rainfall_data-2025-02-08|07-00.csv
Created February 7, 2025 23:21
GIST created by python code
id station stationid value unit obstime date
0 流浮山 RF001 0 mm 2025-02-08T07:00:00+08:00 2025-02-08
1 湿地公园 RF002 0 mm 2025-02-08T07:00:00+08:00 2025-02-08
2 水边围 N12 0 mm 2025-02-08T07:00:00+08:00 2025-02-08
3 石岗 RF003 0 mm 2025-02-08T07:00:00+08:00 2025-02-08
4 大美督 RF004 0 mm 2025-02-08T07:00:00+08:00 2025-02-08
5 大埔墟 RF005 0 mm 2025-02-08T07:00:00+08:00 2025-02-08
6 北潭涌 RF006 0 mm 2025-02-08T07:00:00+08:00 2025-02-08
7 滘西洲 RF007 0 mm 2025-02-08T07:00:00+08:00 2025-02-08
8 西贡 N15 0 mm 2025-02-08T07:00:00+08:00 2025-02-08
@nuttxpr
nuttxpr / ci-risc-v-03.log
Created February 7, 2025 23:20
[risc-v-03] CI Log for nuttx @ ca6f5db6fc5d24ebe58be19c1cd7a5d0df856a64 / nuttx-apps @ fb0c1e10ded2a6fb9f066b9893662cbcc86e4646
Script started on 2025-02-08 05:19:38+07:00 [COMMAND="/home/user/nuttx-release/run-job.sh risc-v-03 " TERM="xterm-256color" TTY="/dev/pts/5" COLUMNS="110" LINES="83"]
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job.sh risc-v-03
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh
+ job=risc-v-03
+ [[ risc-v-03 == '' ]]
+ instance=
+ set
+ grep TMUX
+ true
+ neofetch
@Papii-Anthov
Papii-Anthov / homepage.dart
Created February 7, 2025 23:20
This is a simple ui that encrypts and decrypts passwords, you input the password and then click on encrypt then you'll see the encryption as the output and vice versa for decryption
import 'package:flutter/material.dart';
import 'package:encrypt/encrypt.dart' as encrypt;
class HomePage extends StatefulWidget {
const HomePage({super.key});
@override
State<HomePage> createState() => _HomePageState();
}
@angantakpe
angantakpe / train.py
Created February 7, 2025 23:19 — forked from ddh0/train.py
Janky pretraining script for small llama models using HF fineweb - modify according to your needs
import os
import torch
import psutil
import datasets
import glob
from transformers import (
AutoTokenizer, LlamaConfig, LlamaForCausalLM, Trainer, TrainingArguments,
DataCollatorForLanguageModeling
)
@keysie
keysie / gist:3434e12109c6ff41d78e0e61f3852c62
Last active February 8, 2025 00:00
set up ubuntu 24.04 for CSR signing with yubikey

Goal

Set up a virgin machine to be able to use a key+cert on a yubikey to sign x509 certificate signing requests (csr). This is not intended to be used as a CA per se, but rather to achieve smth like setting up an offline root-ca (the yubikey), which signs a sub-ca that can live e.g. in a EJBCA instance or similar.

Sources

Packages you need to install

sudo apt install -y openssl libengine-pkcs11-openssl gnutls-bin xxd cmake libtool libssl-dev pkg-config check libpcsclite-dev gengetopt help2man zlib1g-dev build-essential pcscd
@zenfish
zenfish / change-fontsize-maschine.sh
Created February 7, 2025 23:18
(temp) maschine+ font resizer for mac
#!/bin/bash
#
# On a Mac, change font sizes in the maschine 2 or 3 APP UI files
#
# Usage: change-maschine-fonts.sh the-number-to-change-font-sizes-up-or-down
#
# The program will look for installs, and if it can find them, check to see if you REALLY want things changed.
#
# It does a backup of the stylesheet directory (with the date as a file extension) in
@jido
jido / I love her to death.md
Created February 7, 2025 23:18
Je l'aime à mourir, English version

I love her to death

Original title: Je l'aime à mourir

Author: Francis Cabrel

Adaptation: Denis Bredelet

 I was nobody and
@kenedii
kenedii / ctof_ftoc.asm
Created February 7, 2025 23:17
Procedures for masm x86 assembly to convert a Celsius temperature to Fahrenheit, and convert Fahrenheit to Celsius.
; procedures to convert F to C or vice versa in masm32 x86 assembly by github.com/kenedii
include \masm32\include\masm32rt.inc
.data
num_to_convert_c REAL4 15.6 ; celsius value to be converted
; for ctof/ftoc procs
buffer1 REAL4 1.8
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 7, 2025 23:15
Rimworld output log published using HugsLib
Log uploaded on Saturday, February 8, 2025, 2:14:18 AM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Core(Ludeon.RimWorld): (no assemblies)
Better Log - Fix your errors(bs.betterlog): 0PrepatcherAPI(1.2.0), 1Fishery(av:0.6.1,fv:0.5.1.2), BetterLog(1.1.0), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
@futuremotiondev
futuremotiondev / Get-ImageDimensions.ps1
Created February 7, 2025 23:14
Retrieves basic image dimensions using System.Drawing.Image, and processes passed images in parallel.
using namespace System.Collections.Generic
function Get-ImageDimensions {
[cmdletbinding(DefaultParameterSetName = 'Path')]
param(
[Parameter(
Mandatory,
Position = 0,
ValueFromPipeline,
ValueFromPipelineByPropertyName,