Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created February 7, 2025 02:51
discord.install v1.0.9181 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1515527406-3491998627-110207221-1000</user>
<keys>
<key installerType="Custom" displayName="Discord" displayVersion="1.0.9181">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Discord</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Users\vagrant\AppData\Local\Discord]]></InstallLocation>
<UninstallString><![CDATA[C:\Users\vagrant\AppData\Local\Discord\Update.exe --uninstall -s]]></UninstallString>
Pipeline still running ...
PipelineRun is still running: Tasks Completed: 31 (Failed: 1, Cancelled 0), Incomplete: 2, Skipped: 21
[get-pr-number : parse-pr-url] + echo -n 5145
[get-pr-number : parse-pr-url] + tee /tekton/results/git_pr_number
[get-pr-number : parse-pr-url] 5145
[acquire-lease : create-lease] + calculate_duration_in_seconds 90m
[acquire-lease : create-lease] + '[' m == m ']'
[acquire-lease : create-lease] + TOTAL_DURATION_IN_SECONDS=5400
[acquire-lease : create-lease] + export TOTAL_DURATION_IN_SECONDS
@nieny225
nieny225 / mongodb_cheat_sheet.md
Created February 7, 2025 02:50 — forked from bradtraversy/mongodb_cheat_sheet.md
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@choco-bot
choco-bot / FilesSnapshot.xml
Created February 7, 2025 02:50
clipto v7.2.17 - 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\clipto\clipto.nupkg" checksum="304332C991E8DC935A836074F71AE15C" />
<file path="C:\ProgramData\chocolatey\lib\clipto\clipto.nuspec" checksum="4B956BEA70F0DEDF8D72270B93A9EE48" />
</files>
</fileSnapshot>
@nuttxpr
nuttxpr / ci-risc-v-03.log
Created February 7, 2025 02:49
[risc-v-03] CI Log for nuttx @ 2ebdd72487a96879b3f8689e0b35ae5f7a49973a / nuttx-apps @ f139e56cd62a30d6edcd7207c7e4cbc6e9b8b7d1
Script started on 2025-02-07 08:48:03+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
@choco-bot
choco-bot / FilesSnapshot.xml
Created February 7, 2025 02:49
pnpm v10.2.1 - 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\pnpm\pnpm.nupkg" checksum="7F1C76F3DE9C793825ABF5BF973BA153" />
<file path="C:\ProgramData\chocolatey\lib\pnpm\pnpm.nuspec" checksum="806BF9CD15958176FA87D708571E9997" />
<file path="C:\ProgramData\chocolatey\lib\pnpm\update.ps1" checksum="B9575DEF760DFFC0014BDE3152A1E490" />
<file path="C:\ProgramData\chocolatey\lib\pnpm\tools\ChocolateyInstall.ps1" checksum="283B7289DD5D311F68183F5EA32ECB92" />
<file path="C:\ProgramData\chocolatey\lib\pnpm\tools\pnpm.exe" checksum="36B9A5D30A0BEE3C34522FC0037B3F56" />
</files>
</fileSnapshot>
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 7, 2025 02:49
Rimworld output log published using HugsLib
Log uploaded on Thursday, February 6, 2025, 7:48:58 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Vanilla Achievements Expanded(vanillaexpanded.achievements): AchievementsExpanded(1.4.9133.21782)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Achtung!(brrainz.achtung)[mv:3.9.5.0]: Achtung(3.9.5), CrossPromotion(1.1.2), ModFeatures(1.2.6)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
EdB Prepare Carefully(EdB.PrepareCarefully)[mv:1.5.12]: EdBPrepareCarefully(av:1.1.1,fv:1.5.12)
@choco-bot
choco-bot / Install.txt
Created February 7, 2025 02:48
fawkes v1.0 - Passed - Package Tests Results
2025-02-07 02:44:22,207 5456 [DEBUG] - XmlConfiguration is now operational
2025-02-07 02:44:22,382 5456 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-07 02:44:22,382 5456 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-07 02:44:22,382 5456 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-07 02:44:22,398 5456 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-07 02:44:22,398 5456 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-07 02:44:22,398 5456 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-07 02:44:22,398 5456 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-07 02:44:22,414 5456 [DEBUG] - Adding new typ

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@nickva
nickva / replicate_att.sh
Created February 7, 2025 02:47
CouchDB replicate attachment twice
#!/bin/sh
# Create test DBs
echo "***** SETTING UP DBS *****"
curl -s -XDELETE 'http://adm:pass@localhost:15984/source'
curl -s -XDELETE 'http://adm:pass@localhost:15984/target'
curl -s -XPUT 'http://adm:pass@localhost:15984/source'
echo '{