Skip to content

Instantly share code, notes, and snippets.

View lostcoastwizard's full-sized avatar

lostcoastwizard lostcoastwizard

View GitHub Profile
@madlep
madlep / orders.ex
Last active June 11, 2025 02:33 — forked from lostcoastwizard/orders.ex
Elixir program that fetches all Eve Online market data and writes to csv
Mix.install([{:req, "~> 0.5"}])
defmodule OrdersParser do
defmacrop drop(input, str) do
quote do
<<unquote(str), rest::binary>> = unquote(input)
rest
end
end
@JohnTheCoolingFan
JohnTheCoolingFan / appimage-install.sh
Created September 4, 2024 16:36
A script to install an appimage and add its desktop file to the applications menu. Only uses user directories in `~/.local/`. Why do 2 out of 3 appimage management tools are written in go with no vendor dir in repo and the third one requires qt? Either way, this is a simple way to "install" an appimage. If a removal script is wanted I'll make on…
#!/bin/bash
APPIMAGE_FILE=$(realpath $1)
[[ $APPIMAGE_FILE == *.AppImage ]] || (echo "File doesn't have AppImage extension" && exit 1)
TEMPDIR=$(mktemp -d)
function unpack_and_install() {
$APPIMAGE_FILE --appimage-extract 'usr/share/icons/*' > /dev/null