Skip to content

Instantly share code, notes, and snippets.

We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
"name","pname","version","patches","system","outputs","cpe","purl","urls","store_path"
"0001-enable-cross-compilation.patch","0001-enable-cross-compilation.patch","","","x86_64-linux","['/nix/store/j2d1ch2mx2j0cs55l55pxvxwya7jdlcr-0001-enable-cross-compilation.patch']","cpe:2.3:a:0001-enable-cross-compilation.patch:0001-enable-cross-compilation.patch::*:*:*:*:*:*:*","pkg:nix/0001-enable-cross-compilation.patch","https://raw.githubusercontent.com/buildroot/buildroot/c05e6aa361a4049eabd8b21eb64a34899ef83fc7/package/expect/0001-enable-cross-compilation.patch","/nix/store/jbsxlrpxixbb72zfzxgwpv9l2pv8bbwr-0001-enable-cross-compilation.patch.drv"
"001-only-add-iconv-to-pc-file-if-needed.patch","001-only-add-iconv-to-pc-file-if-needed.patch","","","x86_64-linux","['/nix/store/6j4byz2lnxv0pgizs14aflqk0i1gv8yp-001-only-add-iconv-to-pc-file-if-needed.patch']","cpe:2.3:a:001-only-add-iconv-to-pc-file-if-needed.patch:001-only-add-iconv-to-pc-file-if-needed.patch::*:*:*:*:*:*:*","pkg:nix/001-only-add-iconv-to-pc-file-if-n
@samrose
samrose / README.md
Last active August 22, 2023 19:07 — forked from panva/README.md
Simple Device Flow Login CLI implementation

Simple Device Flow Login CLI implementation

run

npx https://gist.github.com/samrose/eb703dcf5c5eaf2df1575e3b01152cbf

Setting up qemu VM using nix flakes

Did you know that it is rather easy to setup a VM to test your NixOs configuration?

Create simple flake:

# flake.nix
{
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
@samrose
samrose / streaming_http_requests.ex
Created January 17, 2022 02:36 — forked from joshnuss/streaming_http_requests.ex
Streaming HTTP requests
defmodule MyApp.Integrations.Skubana do
@host "..."
@headers [ ... ]
# returns a stream of shipments
def get_shipments do
# start with page 1
start = fn -> 1 end
# create a stream, it will make HTTP requests until the page returned is empty
@samrose
samrose / my_info_and_links.md
Created September 22, 2021 20:58 — forked from idlehands/my_info_and_links.md
Effective Test Coverage - code and links
diff --git a/project.clj b/project.clj
index f2b8ca4..df373fc 100644
--- a/project.clj
+++ b/project.clj
@@ -6,7 +6,7 @@
:dependencies [[com.google.guava/guava "15.0"] ; Explicitly pull new Guava version for dependency conflicts.
[org.clojure/clojure "1.7.0"]
[com.cerner/clara-rules "0.21.0"]
-
+ [org.clojure/tools.nrepl "0.2.13"]
@samrose
samrose / Big List of Real Estate APIs.md
Created March 2, 2021 15:49 — forked from patpohler/Big List of Real Estate APIs.md
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.

@samrose
samrose / systemd_service_hardening.md
Created December 2, 2020 02:32 — forked from ageis/systemd_service_hardening.md
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
@samrose
samrose / upc_check_digit.py
Created September 10, 2020 13:18 — forked from corpit/upc_check_digit.py
Calculate UPC-A check digit in Python
def add_check_digit(upc_str):
"""
Returns a 12 digit upc-a string from an 11-digit upc-a string by adding
a check digit
>>> add_check_digit('02345600007')
'023456000073'
>>> add_check_digit('21234567899')
'212345678992'
>>> add_check_digit('04210000526')
make -C udev install
make[1]: Entering directory '/build/lvm2/udev'
/nix/store/3qgzqqamhnwm178amyb46pdrzx2nakl5-coreutils-8.31/bin/install -c -p -m 444 -D 11-dm-lvm.rules /nix/store/2936j91q8sdazqsh1kpvg6dama7y5mi5-lvm2-2.02.183/lib/udev/rules.d/11-dm-lvm.rules
/nix/store/3qgzqqamhnwm178amyb46pdrzx2nakl5-coreutils-8.31/bin/install -c -p -m 444 -D 10-dm.rules /nix/store/2936j91q8sdazqsh1kpvg6dama7y5mi5-lvm2-2.02.183/lib/udev/rules.d/10-dm.rules
/nix/store/3qgzqqamhnwm178amyb46pdrzx2nakl5-coreutils-8.31/bin/install -c -p -m 444 -D 13-dm-disk.rules /nix/store/2936j91q8sdazqsh1kpvg6dama7y5mi5-lvm2-2.02.183/lib/udev/rules.d/13-dm-disk.rules
/nix/store/3qgzqqamhnwm178amyb46pdrzx2nakl5-coreutils-8.31/bin/install -c -p -m 444 -D 95-dm-notify.rules /nix/store/2936j91q8sdazqsh1kpvg6dama7y5mi5-lvm2-2.02.183/lib/udev/rules.d/95-dm-notify.rules
make[1]: Leaving directory '/build/lvm2/udev'
substituteStream(): WARNING: pattern '/nix/store/2936j91q8sdazqsh1kpvg6dama7y5mi5-lvm2-2.02.183/sbin/blkid' doesn't match anything in