Skip to content

Instantly share code, notes, and snippets.

@nstgc
nstgc / peg-exercises.janet
Created November 11, 2022 00:27 — forked from sogaiu/peg-exercises.janet
janet peg exercises
# find * and + to be confusing, trying to use sequence and choice instead
(def peg-simple
~{:main (capture (some :S))})
(peg/match peg-simple "hello") # => @["hello"]
# from:
# https://janet-lang.org/docs/peg.html
(defn finder
@nstgc
nstgc / 00_script.clj
Created September 22, 2022 02:36 — forked from ericnormand/00_script.clj
Boilerplate for running Clojure as a shebang script
#!/bin/sh
#_(
#_DEPS is same format as deps.edn. Multiline is okay.
DEPS='
{:deps {clj-time {:mvn/version "0.14.2"}}}
'
#_You can put other options here
OPTS='
@nstgc
nstgc / convert.sh
Created August 30, 2022 17:14 — forked from zengxinhui/convert2arch_x64.sh
Replace Oracle Cloud Linux with Arch Linux remotely
Refs:
1. http://mirror.cs.pitt.edu/archlinux/iso/2021.02.01/archlinux-bootstrap-2021.02.01-x86_64.tar.gz
2. https://dl-cdn.alpinelinux.org/alpine/v3.13/releases/x86_64/alpine-virt-3.13.1-x86_64.iso
3. https://wiki.alpinelinux.org/wiki/Replacing_non-Alpine_Linux_with_Alpine_remotely
4. https://wiki.archlinux.org/index.php/installation_guide#Configure_the_system
Requirement:
Console access.
1. In Ubuntu
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz
CPU Family: 0x6
@nstgc
nstgc / gist:8adbcbf47613a63185351febb54c17b0
Created November 4, 2019 02:50
Steam info 2019-11-03
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
This file has been truncated, but you can view the full file.
======================
Proton: 1569267010 proton-4.11-6
SteamGameId: 312060
Command: ['/btrfs/raid0/games/win32/steam/Steam/steamapps/common/FINAL FANTASY XIV Online/boot/ffxivboot.exe', '-issteamfreetrial']
Options: set()
======================
ERROR: ld.so: object '/home/nstgc5/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/nstgc5/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/nstgc5/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/nstgc5/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
$ ls **
'pfx/drive_c/Program Files/Common Files/System/OLE DB/msdaps.dll' 'pfx/drive_c/Program Files (x86)/Steam/steamclient.dll' pfx/drive_c/vrclient/bin/vrclient_x64.dll pfx/drive_c/windows/Fonts/cour.ttf pfx.lock version
'pfx/drive_c/Program Files/Common Files/System/OLE DB/oledb32.dll' 'pfx/drive_c/Program Files (x86)/Steam/Steam.dll' pfx/drive_c/windows/Fonts/arialbd.ttf pfx/drive_c/windows/Fonts/msyh.ttf pfx/system.reg
'pfx/drive_c/Program Files (x86)/Steam/steamclient64.dll' pfx/drive_c/vrclient/bin/vrclient.dll pfx/drive_c/windows/Fonts/arial.ttf pfx/drive_c/windows/Fonts/times.ttf pfx/user.reg
pfx:
drive_c system.reg user.reg
pfx/drive_c:
'Program Files' 'Program Files (x86)' vrclient windows
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz
CPU Family: 0x6
Sep 10 16:31:44 Host dbus-daemon[802]: [system] Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms)
Sep 10 16:33:34 Host steam.desktop[963]: [0910/163334.350030:INFO:crash_reporting.cc(265)] Crash reporting enabled for process: renderer
Sep 10 16:33:41 Host steam.desktop[963]: ExecuteSteamURL: "steam://open/downloads"
Sep 10 16:33:41 Host steam.desktop[963]: [0910/163341.880715:INFO:crash_reporting.cc(265)] Crash reporting enabled for process: renderer
Sep 10 16:33:48 Host steam.desktop[963]: [0910/163348.784270:INFO:crash_reporting.cc(265)] Crash reporting enabled for process: renderer
Sep 10 16:34:25 Host steam.desktop[963]: [0910/163425.289227:INFO:crash_reporting.cc(265)] Crash reporting enabled for process: renderer
Sep 10 16:38:58 Host steam.desktop[963]: [0910/163858.239266:INFO:crash_reporting.cc(265)] Crash reporting enabled for process: renderer
Sep 10 16:39:19 Host steam.desktop[963]: [0910/163919.767428:WARNING:spdy_session.cc(3178)] Received HEADERS for invalid strea