Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
### WARNING: READ CAREFULLY BEFORE ATTEMPTING ### | |
# | |
# Officially, this is not recommended. YMMV | |
# https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/ | |
# | |
# This mostly works if you are on 64bit. You are on your own if you are on 32bit or mixed 64/32bit | |
# | |
# Credit to anfractuosity and fgimenezm for figuring out additional details for kernels | |
# |
SELECT DISTINCT | |
s.spaceid as space_id, | |
s.spacename as space_name, | |
s.spacekey as space_key, | |
s.spacetype as space_type, | |
s.spacestatus as space_status, | |
sd.body as space_description, | |
s.creationdate as space_creation_date, | |
up.username as space_creator_username, | |
u.display_name as space_creator_displayname, |
sudo yum update | |
# call amazon-linux-extras to view what packages are available | |
sudo amazon-linux-extras install nginx1 | |
sudo systemctl enable nginx.service | |
sudo systemctl start nginx.service | |
# gcc and python-devel required for uwsgi |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
Certainly everyone has run into countless projects featured a source code repo that you wanted to clone (to build from source, for example). And certainly some of those repos were SVN-based. Now, if you're like me, you prefer the almighty git
to this archaic and decrepit format that coding dinosaurs eons ago once used. So, what do you do? Go to GitHub, search for <project name>
, and clone that. But wait, what if you run into a repo that doesn't have a GitHub mirror? What to do? Well, my friend, have you come to the right place:
I'm gonna go out on a limb and assume that you are UNIX-y, so if you am Windows, go here immediately to remedy that. Now then, fire up your terminal emulator, and follow along:
1.) Clone the repo with git
as follows: git svn clone <repo url> -T trunk -t tags -b branches <project name>
2.) Add a GitHub repo for the project ('cuz, you know, sharing and whatnot)
3.) cd
an
- Open Automator | |
- File -> New -> Service | |
- Change "Service Receives" to "files or folders" in "Finder" | |
- Add a "Run Shell Script" action | |
- Change "Pass input" to "as arguments" | |
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*" | |
- Save it as something like "Open in Visual Studio Code" |
// Only using native browser features (no jQuery). | |
// Uses `fetch`, `DOMParser` and `querySelectorAll`. | |
const getTitle = (url) => { | |
return fetch(`https://crossorigin.me/${url}`) | |
.then((response) => response.text()) | |
.then((html) => { | |
const doc = new DOMParser().parseFromString(html, "text/html"); | |
const title = doc.querySelectorAll('title')[0]; | |
return title.innerText; |
for branch in `git branch -r | grep "origin/[^tags|master|trunk]" | sed 's/ origin\///'`; do | |
git branch $branch remotes/origin/$branch | |
done |