Clone Mastodon's repository.
# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live
cd ~/live
#!/bin/sh | |
########################################################################################## | |
# Script to be placed in /etc/initramfs-tools/hooks/ipv6 | |
# | |
# These initramfs IPv6 scripts were originally made by zajdee, and were modified by Someguy123 | |
# at Privex Inc. ( https://www.privex.io ) to fix some issues and add debug logging. | |
# | |
# It can be found online here: https://gist.github.com/Someguy123/8092bdc9834aa210fb4bd1523e9a1c38 | |
# | |
# (Original Gist this was based off of (broken script!): https://gist.github.com/zajdee/65aad61f35d3a63c56c7d1cc76c22e14) |
#include <cstdio> | |
#ifdef __ARM_FEATURE_SVE | |
#include <arm_sve.h> | |
#endif | |
int main() { | |
int n = 0; | |
#ifdef __ARM_FEATURE_SVE | |
n = svcntb() * 8; | |
#endif |
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c> |
#!/bin/bash | |
api_token="" #Cloudflare API Token | |
zone_identifier="" #Zone ID | |
record_name="" #the dns records name (e.g. example.com) | |
ttl=1 #Time to live, in seconds (60-86400 or 1 for automatic) | |
proxied=true #whether the record should proxied by Cloudflare (true|false) |
Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
Here's my setup:
Complete up to the "Generate the cert" section in this gist
Removing the last commit
To remove the last commit from git, you can simply run git reset --hard HEAD^
If you are removing multiple commits from the top, you can run git reset --hard HEAD~2 to remove the last two commits. You can increase the number to remove even more commits.
If you want to "uncommit" the commits, but keep the changes around for reworking, remove the "--hard": git reset HEAD^
which will evict the commits from the branch and from the index, but leave the working tree around.
If you want to save the commits on a new branch name, then run git branch newbranchname
before doing the git reset.