git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| { | |
| "configurations": [ | |
| { | |
| "name": "Linux", | |
| "includePath": [ | |
| "${workspaceFolder}/**", | |
| "/usr/include/glib-2.0", | |
| "${HOME}/.node-gyp/12.9.1/include/node", | |
| "/usr/lib/x86_64-linux-gnu/glib-2.0/include", | |
| "/usr/include/gobject-introspection-1.0" |
| // Copyright 2015 the V8 project authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <fstream> | |
| #include <iostream> |
| /* Read for more in here -> https://dev.to/gajus/my-favorite-css-hack-32g3 */ | |
| * { background-color: rgba(255,0,0,.2); } | |
| * * { background-color: rgba(0,255,0,.2); } | |
| * * * { background-color: rgba(0,0,255,.2); } | |
| * * * * { background-color: rgba(255,0,255,.2); } | |
| * * * * * { background-color: rgba(0,255,255,.2); } | |
| * * * * * * { background-color: rgba(255,255,0,.2); } | |
| * * * * * * * { background-color: rgba(255,0,0,.2); } | |
| * * * * * * * * { background-color: rgba(0,255,0,.2); } | |
| * * * * * * * * * { background-color: rgba(0,0,255,.2); } |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| # Checkout the desired branch | |
| git checkout <branch> | |
| # Undo the desired commit | |
| git revert <commit> | |
| # Update the remote with the undo of the code | |
| git push origin <branch> |
| # Source: https://stackoverflow.com/questions/36358265/when-does-git-refresh-the-list-of-remote-branches | |
| # To update the local list of remote branches: | |
| git remote update origin --prune |
| struct Sintf { | |
| func fn() int | |
| } | |
| // Helper for calling the function | |
| fn callf(p voidptr) int { | |
| f := Sintf{ p }.func | |
| return f() | |
| } |
| #!/bin/bash | |
| unset GIT_DIR | |
| cd /path/to/project | |
| # Get our info.... | |
| LATEST_TAG=$(git describe --tags --abbrev=0) | |
| CURRENT_REVISION=$(git describe) | |
| NUMBER_FILES_CHANGED=$(git diff --name-only HEAD $LATEST_TAG | wc -l) | |
| #FILES_CHANGED=$(git diff --name-only HEAD $LATEST_TAG) |
| -- Remove the history from | |
| rm -rf .git | |
| -- recreate the repos from the current content only | |
| git init | |
| git add . | |
| git commit -m "Initial commit" | |
| -- push to the github remote repos ensuring you overwrite history | |
| git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |
| var data = "do shash'owania"; | |
| var crypto = require('crypto'); | |
| crypto.createHash('md5').update(data).digest("hex"); |