Skip to content

Instantly share code, notes, and snippets.

View ateleshev's full-sized avatar
🏠
Working from home

Artem Teleshev ateleshev

🏠
Working from home
View GitHub Profile
@ravibhure
ravibhure / git_rebase.md
Last active April 30, 2026 19:30
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

@MaksymTrykur
MaksymTrykur / json2yaml.go
Last active October 17, 2017 11:42
json2yaml
package main
import (
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"os"
@dghubble
dghubble / kubeception.md
Last active April 24, 2025 02:03
Running QEMU/KVM and Nested Kubernetes on Bare-Metal Kubernetes
@dghubble
dghubble / Dockerfile
Created June 6, 2017 01:43
coreos-kvm
FROM ubuntu:16.10
MAINTAINER Dalton Hubble <dghubble@gmail.com>
ARG CL_CHANNEL
ARG CL_VERSION
COPY scripts /scripts
RUN /scripts/build
EXPOSE 2222
ENTRYPOINT ["/scripts/start"]
@grantseltzer
grantseltzer / disassembler.go
Created September 14, 2018 06:08
Full disassembler
package main
import (
"debug/elf"
"fmt"
"log"
"os"
"github.com/bnagy/gapstone"
)
@slok
slok / pprof.md
Last active May 3, 2026 09:11
Go pprof cheat sheet

Enable profiling

Default http server

import (
    _ "net/http/pprof"
    "net/http"
)