Skip to content

Instantly share code, notes, and snippets.

@user135711
user135711 / github-credit.sh
Created May 12, 2020 06:36 — forked from nizaroni/github-credit.sh
How to clone someone else's repository and still get GitHub credit for your changes.
# Clone the other person's repo.
# MAKES A NEW FOLDER! CAUTION!
$ git clone https://github.com/khalifenizar/bbq
# Rename that person's remote GitHub repo.
$ git remote rename origin khalifenizar
# Add your remote GitHub repo
$ git remote add origin https://github.com/yourusername/bbq
@user135711
user135711 / BlockPropagation.md
Created April 2, 2019 13:37 — forked from gavinandresen/BlockPropagation.md
O(1) block propagation

O(1) Block Propagation

The problem

Bitcoin miners want their newly-found blocks to propagate across the network as quickly as possible, because every millisecond of delay increases the chances that another block, found at about the same time, wins the "block race."

function countFilesInFolder() {
var c=1;
var size = 0;
var folderName = "Packs3";
var folders = DriveApp.searchFolders('sharedWithMe and title contains "'+folderName+'"');
var folder = folders.next().getFiles();
while (folder.hasNext()){
var file = folder.next();
c+=1;
@user135711
user135711 / ipa.js
Created August 22, 2018 23:45 — forked from tantalor/ipa.js
// This work is licensed under the Creative Commons Attribution 3.0 United States License. To view
// a copy of this license, visit http://creativecommons.org/licenses/by/3.0/us/ or send a letter
// to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
// Copyright 2009 John Tantalo <john.tantalo@gmail.com>
(function () {
// get selection
var selection = window.getSelection ? window.getSelection() :
document.getSelection ? document.getSelection() :
@user135711
user135711 / GnuPG-2.1.md
Created June 30, 2018 21:23 — forked from mattrude/GnuPG-2.1.md
GnuPG 2.1.18 Build Instructions for Ubuntu 16.04 LTS

GnuPG 2.1.20 Build Instructions

Below you is my build instructions for GnuPG 2.1.20 released on 03-Apr-2017. These instructions are built for a headless Ubuntu 16.04 LTS server.

Or if you wish, you may use the install script to install GnuPG 2.1.20 by entring the following:

curl -sL "https://gist.github.com/mattrude/3883a3801613b048d45b/raw/install-gnupg2.sh" |sh

Install the needed depends

apt-get -y install libgnutls-dev bzip2 make gettext texinfo gnutls-bin \

@user135711
user135711 / DockerDebugInfo.ps1_Output
Created June 11, 2018 10:14
DockerDebugInfo.ps1 Output
>>>>>> OS Version
SystemDirectory : C:\Windows\system32
Organization :
BuildNumber : 14393
RegisteredUser : Usuario de Windows
SerialNumber : 00376-40000-00000-AA378
Version : 10.0.14393