This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN apt-get update && apt-get upgrade -y | |
RUN apt-get install -y git | |
RUN apt-get install -y python3 python3-venv python3-pip | |
RUN apt-get install -y gcc make gzip unzip curl wget | |
RUN apt-get install -y ripgrep fd-find | |
RUN apt-get install -y lua5.1 | |
RUN LAZYGIT="$(git ls-remote --tags --sort='v:refname' https://github.com/jesseduffield/lazygit | tail --lines=1 | cut --delimiter='v' --fields=2)" && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Powershell script to save and load komorebi window state | |
# | |
# Usage: | |
# .\kmrb.ps1 = load window state for current monitor config if previously saved | |
# -list = list all existing configs | |
# -config name = load window state from specified config name | |
# -save = save current window state for current monitor config | |
# -save -config name = save current window state to specified config name | |
# -dbg = show komorebic commands invoked |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nim c -d:yaraGit yara.nim | |
# nim c -d:yaraGit -d:yaraStatic yara.nim | |
import os | |
import nimterop/[build, cimport] | |
const | |
baseDir = getProjectCacheDir("nimyara") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nim c -d:flecsGit -r flecs.nim | |
import os | |
import nimterop/[cimport, build] | |
const | |
baseDir = getProjectCacheDir("nimflecs") | |
getHeader( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import strutils | |
import nimterop/[build, cimport] | |
const | |
baseDir = getProjectCacheDir("meow") | |
static: | |
gitPull( | |
"https://github.com/cmuratori/meow_hash", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nimterop/cimport | |
const | |
baseDir = "/usr/include/freetype2" | |
cDefine("FT_UInt32", "unsigned int32") | |
cIncludeDir(baseDir) | |
cImport( | |
filename = "ft.h", | |
recurse = true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nimterop/[cimport] | |
cIncludeDir(@[ | |
"/usr/include/gtk-3.0", | |
"/usr/include/glib-2.0", | |
"/usr/lib/x86_64-linux-gnu/glib-2.0/include", | |
"/usr/include/pango-1.0", | |
"/usr/include/cairo", | |
"/usr/include/gdk-pixbuf-2.0", | |
"/usr/include/atk-1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nim c -d:FLAGS pkcs.nim | |
# | |
# FLAGS | |
# -d:pkcs7Std | -d:pkcs7Conan | -d:pkcs7JBB | |
# -d:pkcs7Static | |
import strutils | |
import nimterop/[build, cimport] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nimterop/cimport | |
cPlugin: | |
import strutils | |
proc onSymbol(sym: var Symbol) {.exportc, dynlib.} = | |
# Get rid of some problematic symbols | |
if sym.name.contains("CSET"): | |
sym.name = "" | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nim c -d:FLAGS tensorflow.nim | |
# | |
# FLAGS | |
# -d:capiDL | |
# -d:capiSetVer= | |
import os | |
import nimterop/[build, cimport] |
NewerOlder