Skip to content

Instantly share code, notes, and snippets.

View ADCDS's full-sized avatar
🥒
afiando a mandioca

Adriel Santos ADCDS

🥒
afiando a mandioca
View GitHub Profile
@ravibhure
ravibhure / git_rebase.md
Last active July 22, 2025 20:33
Git rebase from remote fork repo

In your local clone of your forked repository, you can add the original GitHub repository as a "remote". ("Remotes" are like nicknames for the URLs of repositories - origin is one, for example.) Then you can fetch all the branches from that upstream repository, and rebase your work to continue working on the upstream version. In terms of commands that might look like:

Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

Fetch all the branches of that remote into remote-tracking branches, such as upstream/master:

git fetch upstream

@roxma
roxma / how-to-install-latest-gcc-on-ubuntu-lts.txt
Created April 21, 2017 09:25 — forked from application2000/how-to-install-latest-gcc-on-ubuntu-lts.txt
How to install latest gcc on Ubuntu LTS (12.04, 14.04, 16.04)
These commands are based on a askubuntu answer http://askubuntu.com/a/581497
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.
ABSOLUTELY NO WARRANTY.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
@nyx-rattapoom
nyx-rattapoom / ubuntu-arm-mongo32.sh
Last active January 23, 2023 15:53
Build mongodb 3.2 armv7l [multiarch/ubuntu-core:armhf-xenial]
# docker run -it --rm multiarch/ubuntu-core:armhf-xenial /bin/bash
apt update
apt upgrade -y
apt install wget scons build-essential python-pymongo python-dev libssl-dev libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-thread-dev -y
mkdir builder
cd /builder
wget https://fastdl.mongodb.org/src/mongodb-src-r3.2.20.tar.gz
tar xvf mongodb-src-r3.2.20.tar.gz
cd mongodb-src-r3.2.20
cd src/third_party/mozjs-38/