Skip to content

Instantly share code, notes, and snippets.

View includerandom's full-sized avatar

includerandom

View GitHub Profile
@includerandom
includerandom / bot.rb
Created November 11, 2020 14:37 — forked from dideler/bot.rb
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
@includerandom
includerandom / deployment.yml
Created August 6, 2020 13:19 — forked from troyharvey/deployment.yml
Using Kubernetes envFrom for environment variables
# Use envFrom to load Secrets and ConfigMaps into environment variables
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: mans-not-hot
labels:
app: mans-not-hot
spec:
replicas: 1
@includerandom
includerandom / gist:3eab987ddb83c34676043e5c7331c42e
Last active December 7, 2019 21:39 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@includerandom
includerandom / git-pushing-multiple.rst
Created October 12, 2019 08:23 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@includerandom
includerandom / git_cheat-sheet.md
Last active June 26, 2019 20:11 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet

git cheat-sheet

This is a list of the commands I use most frequently, listed by funcional category:

current state

git status list which (unstaged) files have changed
git diff list (unstaged) changes to files
git log list recent commits