- Only specifics
- Build your cloud in AWS, Hetzner, Digital Ocean or Oracle C cloud Infrastructure automatedly as Infrastructure as code using Terraform.
# Variables | |
MIX_ENV=prod | |
APP_NAME=experiment | |
BUILD_DIR=_build | |
SERVER_USER=ubuntu | |
SECRET_KEY_BASE=$(shell mix phx.gen.secret) | |
ENV_FILE=.env | |
RELEASE_DIR=$(BUILD_DIR)/$(MIX_ENV)/rel/$(APP_NAME) | |
PHX_HOST="maikeladas.es" | |
PORT=4001 |
function code | |
# Determine the path to the code command | |
set path_is (command -v code) | |
# Check if the system is on battery | |
if is_on_battery | |
# Ask the user if they are sure they want to open VSCode | |
if ask_sure | |
# User confirmed; open VSCode with the provided argument | |
$path_is $argv |
* Stuff I am able to do | |
* Rules: | |
~ Only specifics | |
* Tasks | |
~ Build your cloud in AWS, Hetzner, Digital Ocean or Oracle Cloud Infrastructure | |
---@type ChadrcConfig | |
local M = {} | |
M.ui = { theme = 'ayu_dark' } | |
M.plugins = "custom.plugins" | |
--- Additional Key Mapping | |
local map = vim.keymap.set |
#!/bin/bash | |
# Replace the following variables with your actual values | |
INSTANCE_URL="https://vmst.io" # This is just an axample | |
ACCESS_TOKEN="asdasdas" # Get it from /settings/applications in your Mastodon instance. | |
USER_ID="12312312312" # Find your own ID with https://INSTANCE/api/v1/accounts/verify_credentials | jq '.id' | |
# Get the first page of your statuses | |
STATUSES=$(curl -s -H "Authorization: Bearer $ACCESS_TOKEN" "$INSTANCE_URL/api/v1/accounts/$USER_ID/statuses") |
# This is heavily based in the code here: | |
# https://gist.github.com/enpassant/0496e3db19e32e110edca03647c36541 | |
# Special thank you to the user enpassant for starting it https://github.com/enpassant | |
#!/bin/bash | |
SYNTAX="$2" | |
EXTENSION="$3" | |
OUTPUTDIR="$4" | |
INPUT="$5" |
hello |
#!/usr/bin/fish | |
function findsong | |
lynx --dump "https://tunebat.com/Search?q=$argv" | grep " 6. https" | cut -d" " -f5 | |
end | |
function findrelated | |
set song (findsong $argv) | |
lynx --dump $song | grep Info | cut -d/ -f5 | |
end |