Skip to content

Instantly share code, notes, and snippets.

View pradel's full-sized avatar

Léo Pradel pradel

View GitHub Profile
@pradel
pradel / setup.sh
Last active April 15, 2024 17:18
Setup VPS with docker
sudo apt update && sudo apt upgrade
sudo apt-get install fail2ban
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
@pradel
pradel / Concept.md
Last active April 24, 2021 23:39
Sigle 2.0 concept

SIGLE 2.0 - The future of blogging

When we started Sigle over 2 years ago we wanted to provide a blogging platform where the user would own their content. A platform that you enjoy using every day, that will make you write more and share more.

At the time, we decided to build the first version of Sigle on Blockstack which provided an easy to use SDK that would help us to achieve our goal.

Over the course of these 2 years we continued to work on and improve the platform, we grew the community, collected feedback and we are now ready to share our idea for Sigle 2.0 with you.

While gathering feedback from our users these two questions always came up:

  • How can other users of the platform discover my content?
Verifying my Blockstack ID is secured with the address 1NDUWuxbtFyfUyq3tNbgJKiHptVJWjNePa https://explorer.blockstack.org/address/1NDUWuxbtFyfUyq3tNbgJKiHptVJWjNePa
# Replace message of last commit
git commit --amend -m "New commit message"
# Force push
git push --force
# Add upstream (only once)
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
git fetch upstream
git checkout master
git merge upstream/master
@pradel
pradel / squash.sh
Created January 26, 2016 09:39
How to squash commits
git remote add upstream git://github.com/callemall/material-ui.git # (or url of the repo you want to contribute)
git fetch upstream
git rebase -i HEAD~N # N is the number of commits you want to squash
# Let first commit to pick and pass the others to squash
# pick 1fc6c95 do something
# squash 6b2481b do something else
# squash dd1475d changed some things
# squash c619268 fixing typos
git config --global push.default simple
git push -f origin
@pradel
pradel / setup-server.sh
Last active November 18, 2015 14:04
Setup an ubuntu server for serving meteor bundle app
apt-get update
# Install git, curl, python
apt-get install -y git curl python
# Install latest Node from nodesource
curl https://deb.nodesource.com/setup | sh
apt-get install -y nodejs
# Install nginx