Skip to content

Instantly share code, notes, and snippets.

Rafal Jeczalik rjeczalik

Block or report user

Report or block rjeczalik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rjeczalik
rjeczalik / how-to-find-forks-of-deleted-repo.md
Created Aug 26, 2019
How to find forks of a deleted repository?
View how-to-find-forks-of-deleted-repo.md
@rjeczalik
rjeczalik / how-to-go-get-private-repo.md
Created Aug 26, 2019
How to go get private github repository?
View how-to-go-get-private-repo.md

How to go get private github repository?

git config --global url."git@github.com:".insteadOf "https://github.com/"
View dedup.go
package main
import (
"bufio"
"bytes"
"errors"
"fmt"
"io"
"os"
"path/filepath"
View read_backup_meta.sh
#!/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%%/*}
View install chrome 65
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
View gist:12aa9154c88c0a3dfc97d60433e3c5c1
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()
@rjeczalik
rjeczalik / guesslicense.go
Created Nov 22, 2016
Guesses license type (depracated, use GitHub API instead).
View guesslicense.go
package main
import (
"bufio"
"errors"
"fmt"
"io/ioutil"
"net/http"
"os"
"strings"
You can’t perform that action at this time.