Skip to content

Instantly share code, notes, and snippets.

@lvanasse
lvanasse / ci-risc-v-06.log
Created March 13, 2025 14:41
[risc-v-06] CI Log for nuttx @ e0b02314e6e28b10ee84837bfe62b1e48700f85a / nuttx-apps @ 3b03636e95f6202b512d8af32629da4c0dc4af2c
fpu.c:57:8: warning: #warning "FPU test not built; Only available in the flat build (CONFIG_BUILD_FLAT)" [-Wcpp]
Script started on 2025-03-13 14:16:43+00:00 [COMMAND="/home/ludovic/nuttx-release/run-job.sh risc-v-06" <not executed on terminal>]
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job.sh
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh
+ job=risc-v-06
+ neofetch
.-/+oossssoo+/-.
`:+ssssssssssssssssss+:`
-+ssssssssssssssssssyyssss+-
.ossssssssssssssssssdMMMNysssso.

VPS常用命令

  • 重启NaiveProxy(caddy服务器)

systemctl reload caddy
  • 查找大于20MB的文件

find . -type f -size +20M  -print0 | xargs -0 du -h
#include <iostream>
#include <fstream>
#include <string>
#include <ctime>
#include <thread>
#include <windows.h>
// Function to get the current timestamp as a string
std::string getCurrentTimestamp() {
time_t now = time(0);
@choco-bot
choco-bot / FilesSnapshot.xml
Created March 13, 2025 14:41
moneyguru v2.10.1 - Failed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\moneyguru\moneyguru.nupkg" checksum="594BA4C9FD4BB1B4F9D2A0D7BAFD0EC4" />
<file path="C:\ProgramData\chocolatey\lib\moneyguru\moneyguru.nuspec" checksum="5BAD7A70A76D7930C20CF6B570453B95" />
<file path="C:\ProgramData\chocolatey\lib\moneyguru\tools\chocolateyInstall.ps1" checksum="76885D09D47C3FA05302F7453FEEE0F0" />
<file path="C:\ProgramData\chocolatey\lib\moneyguru\tools\chocolateyUninstall.ps1" checksum="94853F81AC9F665E21A691A0BCAB7D61" />
</files>
</fileSnapshot>

1. Implement compose() and pipe() Polyfill

  • compose() and pipe() are used to combine multiple functions.
  • compose() runs functions from right to left, pipe() runs them from left to right.
const compose = (...fns) => (value) => fns.reduceRight((acc, fn) => fn(acc), value);
const pipe = (...fns) => (value) => fns.reduce((acc, fn) => fn(acc), value);

@medacomsexr29
medacomsexr29 / LastPass Password Manager
Created March 13, 2025 14:40
LastPass Password Manager Cracked
LastPass Password Manager Crackeded
@AK1089
AK1089 / partial-orders.py
Created March 13, 2025 14:40
generates every putative partial order on a set of n elements, given a basic preordering of elements so that a is never smaller than b and so on.
from itertools import permutations, combinations
# a class to store a partial order on n elements
class PartialOrder:
def __init__(self, element_set, index):
self.parent = element_set
for i, attr in enumerate(self.parent.ATTRIBUTES):
setattr(self, attr, bool(index >> i & 1))
https://docs.google.com/forms/d/e/1FAIpQLScQX2Zn17cXMWi9Oa-wslFVFbstUTfescSeu-XcEa1Ykvy3VQ/viewform?usp=pp_url&entry.772032836=Nam&entry.641723922=18-24%20tu%E1%BB%95i&entry.773195321=Sinh%20vi%C3%AAn%2Fh%E1%BB%8Dc%20sinh&entry.219372655=C%C3%B3%2C%20r%E1%BA%A5t%20th%C6%B0%E1%BB%9Dng%20xuy%C3%AAn&entry.279602233=M%E1%BA%A1ng%20x%C3%A3%20h%E1%BB%99i%20(Facebook%2C%20Instagram%2C%20Tiktok%2C%20v.v.)&entry.279602233=M%E1%BA%A1ng%20x%C3%A3%20h%E1%BB%99i%20(Facebook%2C%20Instagram%2C%20Tiktok%2C%20v.v.)&entry.279602233=G%E1%BB%A3i%20%C3%BD%20t%E1%BB%AB%20b%E1%BA%A1n%20b%C3%A8%2C%20%C4%91%E1%BB%93ng%20nghi%E1%BB%87p%20ho%E1%BA%B7c%20c%E1%BB%99ng%20%C4%91%E1%BB%93ng&entry.256240118=Ngh%E1%BB%87%20thu%E1%BA%ADt%20%26%20s%C3%A1ng%20t%E1%BA%A1o&entry.256240118=%E1%BA%A8m%20th%E1%BB%B1c&entry.256240118=C%C3%B4ng%20ngh%E1%BB%87%20%26%20khoa%20h%E1%BB%8Dc&entry.256240118=Workshop%20DIY%20(%20Workshop%20handmade%20)&entry.1381991406=Qua%20c%C3%A1c%20m%E1%BA%A1ng%20x%C3%A3%20h%E1%BB%99i%20(Facebook%2C%20Instagram%2C.......)
@choco-bot
choco-bot / FilesSnapshot.xml
Created March 13, 2025 14:39
spawner v0.2.4 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\spawner\spawner-0.2.4-win64-x86_64.zip.txt" checksum="AFE111E72F3AD6F237E452BF312CD616" />
<file path="C:\ProgramData\chocolatey\lib\spawner\spawner.nupkg" checksum="ECD9C4ABA306CB1A083DA127D4A85A09" />
<file path="C:\ProgramData\chocolatey\lib\spawner\spawner.nuspec" checksum="BDDD0964F492840E0D76995F1D689589" />
<file path="C:\ProgramData\chocolatey\lib\spawner\tools\CHANGES" checksum="554F643800C39E68C6FABA0B13F2C809" />
<file path="C:\ProgramData\chocolatey\lib\spawner\tools\chocolateyInstall.ps1" checksum="7C0F8D2DB11DB4923A6EB53183B43A45" />
<file path="C:\ProgramData\chocolatey\lib\spawner\tools\COPYING" checksum="EEEEF360E506DFC8BCC009C2185A14F5" />
<file path="C:\ProgramData\chocolatey\lib\spawner\tools\README" checksum="F6E9358FEED25125AD2D4DA4717D01B9" />
@nuttxpr
nuttxpr / ci-sim-01.log
Created March 13, 2025 14:39
[sim-01] CI Log for nuttx @ e0b02314e6e28b10ee84837bfe62b1e48700f85a / nuttx-apps @ 3b03636e95f6202b512d8af32629da4c0dc4af2c
Script started on 2025-03-13 21:42:38+08:00 [COMMAND="/home/luppy/nuttx-release/run-job.sh sim-01 3" TERM="tmux-256color" TTY="/dev/pts/9" COLUMNS="100" LINES="10"]
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job.sh sim-01 3
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh
+ job=sim-01
+ [[ sim-01 == '' ]]
+ instance=3
+ set
+ grep TMUX
+ true
+ neofetch