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
| MIT License | |
| Copyright (c) 2021 Daniel Ethridge | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
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.comClone project
Checkout all branches that contain the files that should be moved
Delete the remote
Run the filter-branch command:
git filter-branch --tree-filter 'mkdir -p /path/to/tmp; mv * /path/to/tmp; mkdir subdir; mv /path/to/tmp/* subdir/' --tag-name-filter cat --prune-empty -- --all# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
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 \" \| // Hello, hope you find this code useful | |
| package main | |
| import ( | |
| // this is a deprecated oauth lib from godoc.org | |
| // i was going to use the new one (https://godoc.org/golang.org/x/oauth2/google) | |
| // but due to a bug i've found and filed at github | |
| // i decided to revert to the old one instead until the new one is stable | |
| "code.google.com/p/goauth2/oauth/jwt" | |
| "encoding/json" |
| #!/bin/bash | |
| # For this to work, you need to have ffmpeg | |
| # installed with libvorbis, theora and libvpx ENABLED | |
| # to do that in Homebrew: | |
| # brew reinstall ffmpeg --with-libvpx --with-libvorbis --with-theora | |
| # | |
| # encoding reference: | |
| # https://blog.mediacru.sh/2013/12/23/The-right-way-to-encode-HTML5-video.html |
| import asyncio | |
| @asyncio.coroutine | |
| def waiting(r): | |
| print("hello from waiting -", r) | |
| yield from asyncio.sleep(2) | |
| print("bye from waiting -", r) | |
| return r |