Update: As of 11 January 2022, git.io no longer accepts new URLs.
Command:
curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"
URLs that can be created is from:
https://github.com/*
https://*.github.com
Update: As of 11 January 2022, git.io no longer accepts new URLs.
Command:
curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"
URLs that can be created is from:
https://github.com/*
https://*.github.com
curl -s https://launchermeta.mojang.com/mc/game/version_manifest.json | sed -E -e 's/.*("versions".*[^\]]).*/\1/g' -e 's/},/},\ | |
/g' | awk -F\" '{print $4,$8,$20}' | column -t | |
id type url | |
17w15a snapshot https://launchermeta.mojang.com/mc/game/369f3dabee7485e12aae81e971487bac3da2d6e6/17w15a.json | |
17w14a snapshot https://launchermeta.mojang.com/mc/game/0536ebf96543b0a0212a89d2a97600c9f263c7bf/17w14a.json | |
17w13b snapshot https://launchermeta.mojang.com/mc/game/ba59e4831cfa0afc2fba4658f6d86d5599cfaa9c/17w13b.json | |
17w06a snapshot https://launchermeta.mojang.com/mc/game/7db0c61afa278d016cf1dae2fba0146edfbf2f8e/17w06a.json | |
1.11.2 release https://launchermeta.mojang.com/mc/game/12f260fc1976f6dd688a211f1a906f956344abdd/1.11.2.json | |
1.11.1 release https://launchermeta.mojang.com/mc/game/4fce28e8455640c8e1061f40c2be4bec4631a5ff/1.11.1.json | |
16w50a snapshot https://launchermeta.mojang.com/mc/game/e913d0001d077f341a5c71754ad7766c552e875e/16w50a |
#!/bin/bash | |
player_status=$(playerctl status 2> /dev/null) | |
if [[ $? -eq 0 ]]; then | |
metadata="$(playerctl metadata artist) - $(playerctl metadata title)" | |
fi | |
# Foreground color formatting tags are optional | |
if [[ $player_status = "Playing" ]]; then | |
echo "%{F#FFFFFF}$metadata%{F-}" |
curl
to get the JSON response for the latest releasegrep
to find the line containing file URLcut
and tr
to extract the URLwget
to download itcurl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
(defn deaccent [str] | |
"Remove accent from string" | |
;; http://www.matt-reid.co.uk/blog_post.php?id=69 | |
(let [normalized (java.text.Normalizer/normalize str java.text.Normalizer$Form/NFD)] | |
(clojure.string/replace normalized #"\p{InCombiningDiacriticalMarks}+" ""))) |
#!/bin/bash | |
# Simple install script for Minecraft server | |
# Version 1.2 | |
# Written by Joel Bergroth | |
# | |
# Usage ./install.sh "/full/path/to/desired/server/location" | |
if [ -z "$1" ]; then | |
read -p "Enter full server path: " -e serverpath |
#Symlink a folder from a git submodule for use in a project
I recently came across a need to try this out on a project i was working on. So here's how to do it, incase anyone else finds themselves in the same situation.
##Set up your submodule in a seperate directory.
Run this command from your project root.
git submodule add http://example.com/repo.git ./submodules/repo