Skip to content

Instantly share code, notes, and snippets.

@rjeczalik
rjeczalik / how-to-find-forks-of-deleted-repo.md
Created August 26, 2019 16:39
How to find forks of a deleted repository?
@rjeczalik
rjeczalik / how-to-go-get-private-repo.md
Created August 26, 2019 16:22
How to go get private github repository?

How to go get private github repository?

git config --global url."[email protected]:".insteadOf "https://github.com/"
package main
import (
"bufio"
"bytes"
"errors"
"fmt"
"io"
"os"
"path/filepath"
#!/usr/bin/env bash
set -euo pipefail
bucket=${1}
mkdir -p ${bucket}
aws s3 ls ${bucket} | grep PRE | tr -s ' ' | cut -d' ' -f3 | while read snapshot_tag; do
snapshot_tag=${snapshot_tag%%/*}
sudo apt remove -y google-chrome-stable
wget http://security.ubuntu.com/ubuntu/pool/universe/c/chromium-browser/chromium-browser_65.0.3325.181-0ubuntu1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/c/chromium-browser/chromium-codecs-ffmpeg-extra_65.0.3325.181-0ubuntu1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/c/chromium-browser/chromium-codecs-ffmpeg_65.0.3325.181-0ubuntu1_amd64.deb
sudo apt install -y ./chromium-codecs-ffmpeg_65.0.3325.181-0ubuntu1_amd64.deb
sudo apt install -y ./chromium-codecs-ffmpeg-extra_65.0.3325.181-0ubuntu1_amd64.deb
sudo apt install -y ./chromium-browser_65.0.3325.181-0ubuntu1_amd64.deb
0x183b8a531d1acdae4de18db7431b0db539690756
0x42de51a7d6697022d829533288efa11d737558f4
INFO [07-16|17:25:57] Commit new mining work number=1141452 txs=28 uncles=0 elapsed=726.365ms
unexpected fault address 0x10a5b4c08
fatal error: fault
unexpected fault address 0x10a1cd008
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10a5b4c08 pc=0x405d297]
goroutine 168304 [running]:
runtime.throw(0x4a9bd22, 0x5)
/usr/local/opt/go/libexec/src/runtime/panic.go:596 +0x95 fp=0xc426ff39f0 sp=0xc426ff39d0
runtime.sigpanic()
0x7480f51dfc9b982a9087873f74bf5bd86c1e89ac
@rjeczalik
rjeczalik / guesslicense.go
Created November 22, 2016 09:34
Guesses license type (depracated, use GitHub API instead).
package main
import (
"bufio"
"errors"
"fmt"
"io/ioutil"
"net/http"
"os"
"strings"