This file contains hidden or 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
---@type ChadrcConfig | |
local M = {} | |
M.ui = { theme = 'ayu_dark' } | |
M.plugins = "custom.plugins" | |
--- Additional Key Mapping | |
local map = vim.keymap.set |
This file contains hidden or 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
#!/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 file contains hidden or 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
# 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" |
This file contains hidden or 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
hello |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
#!/usr/bin/fish | |
# IF YOU ARE A FISH SHELL USER: | |
# ---------------------------- | |
# For ease of use, either copy this file inside the ~/.config/fish/functions/ folder. | |
# IF YOU ARE NOT a FISH SHEL USER: | |
# ---------------------------- | |
# save it wherever you please | |
# create a sym link in your favourite folder of $PATH with the name you prefer to call it |
This file contains hidden or 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
// This is what I use for SEO for each skill | |
app.get('/skills/:skilltitle', function (req, res, next) { | |
if (req.isSpider()) { | |
//if (true) { | |
const theURL = req.url; | |
//console.log(req.params.pagetitle); | |
const theTitle = req.params.skilltitle; | |
var results = 'http://www.maikel.uk:3000/images/logos/neverstop.jpg'; | |
const descBase = 'A Content Management System to empower self-directed learning.'; |
NewerOlder