Skip to content

Instantly share code, notes, and snippets.

View tripleo1's full-sized avatar
🎯
Focusing

tripleo1 tripleo1

🎯
Focusing
View GitHub Profile
#!/usr/bin/env bb
;; lein2deps | jet --pretty > deps.edn
(require '[clojure.string :as str]
'[clojure.edn :as edn])
(defn read-project-clj []
(-> "project.clj"
slurp
#!/usr/bin/env bb
;; lein2deps | jet --pretty > deps.edn
(require '[clojure.string :as str]
'[clojure.edn :as edn])
(defn read-project-clj []
(-> "project.clj"
slurp
@Elijah-trillionz
Elijah-trillionz / exercises.py
Created November 5, 2021 09:46
calculate number of days between two dates
# Write a Python program to calculate number of days between two dates.
# (2014, 7, 2), (2014, 7, 11)
import datetime as date
def num_of_days(date_one, date_two):
try:
(year, month, day) = date_one
new_date = date.datetime(year, month, day).timestamp()
/nix/store/x0g3y4xxc00w0a1ykbgmwzw1q0br5vp9-commons-io-2.8.0
└── share
└── java
β”œβ”€β”€ commons-io-2.8.0.jar
β”œβ”€β”€ commons-io-2.8.0-javadoc.jar
β”œβ”€β”€ commons-io-2.8.0-sources.jar
β”œβ”€β”€ commons-io-2.8.0-tests.jar
└── commons-io-2.8.0-test-sources.jar
2 directories, 5 files
@mx00s
mx00s / install.sh
Last active May 9, 2025 07:00
NixOS install script based on @grahamc's "Erase Your Darlings" blog post
#!/usr/bin/env bash
#
# NixOS install script synthesized from:
#
# - Erase Your Darlings (https://grahamc.com/blog/erase-your-darlings)
# - ZFS Datasets for NixOS (https://grahamc.com/blog/nixos-on-zfs)
# - NixOS Manual (https://nixos.org/nixos/manual/)
#
# It expects the name of the block device (e.g. 'sda') to partition
@hfiref0x
hfiref0x / ntoskrnl
Created December 11, 2019 08:24
ReactOS syscalls
NtAcceptConnectPort 0
NtAccessCheck 1
NtAccessCheckAndAuditAlarm 2
NtAccessCheckByType 3 (STATUS_NOT_IMPLEMENTED)
NtAccessCheckByTypeAndAuditAlarm 4
NtAccessCheckByTypeResultList 5 (STATUS_NOT_IMPLEMENTED)
NtAccessCheckByTypeResultListAndAuditAlarm 6
NtAccessCheckByTypeResultListAndAuditAlarmByHandle 7
NtAddAtom 8
NtAddBootEntry 9 (STATUS_NOT_IMPLEMENTED)
@joonvena
joonvena / docker-compose.yml
Created July 13, 2019 13:39
gerrit compose
version: '3.1'
services:
gerrit:
image: gerritcodereview/gerrit
environment:
- CANONICAL_WEB_URL=http://localhost:8100/
volumes:
- ./gerrit/:/var/gerrit/etc/
ports:
@chris-martin
chris-martin / nixos-from-ubuntu.md
Last active January 24, 2026 19:27
How to install NixOS from an Ubuntu liveCD
@varqox
varqox / install_debian_with_debootstrap_howto.md
Last active September 17, 2026 13:15
Instructions how to install Debian using debootstrap
@n-st
n-st / view-on-archive-org.js
Created February 28, 2016 16:20
Bookmarklet to view current page on the Internet Archive Wayback Machine (https://archive.org/)
javascript:(function(){if(location.href.indexOf('http')!=0){input=prompt('URL:','http://');if(input!=null){location.href='http://web.archive.org/web/*/'+input}}else{location.href='http://web.archive.org/web/*/'+location.href;}})();