Skip to content

Instantly share code, notes, and snippets.

View kubectl.sh
kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-node
kubectl get deployments
kubectl describe deployment hello-node
kubectl get pods
kubectl scale deployment/hello-node --replicas=3
kubectl get all
kubectl expose deployment hello-node --type=LoadBalancer --port=8080
kubectl get services
minikube addons enable heapster
View πŸ“Š Weekly development breakdown
Rust 7 hrs 32 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 63.0%
YAML 2 hrs 45 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 23.0%
Other 36 mins β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 5.1%
Markdown 27 mins β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 3.8%
JSON 14 mins β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 2.0%
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 19, 2019
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel9k

Powerlevel9k

@JasonEtco
JasonEtco / activity
Last active May 19, 2019
⚑️ Recent activity
View activity
❗️ Closed issue #17 in probot/smee.io
πŸ—£ Commented on #17 in probot/smee.io
πŸŽ‰ Merged PR #89 in JasonEtco/actions-toolkit
πŸŽ‰ Merged PR #90 in JasonEtco/actions-toolkit
πŸŽ‰ Merged PR #3 in JasonEtco/npm-audit-fix-action
View @matchai - 4 days ago | ❀ 2 | πŸ” 0
An update to @Azure Pipelines build agents seems to have
broken Rust installation via rustup. πŸ˜”
Is anyone else faci… https://t.co/mFlYFqkMlr
View SDL2go.go
//This program draws fractal using SDL2 library binding for GOLANG
package main
import (
"fmt"
"github.com/veandco/go-sdl2/sdl"
)
var winTitle string = "SDL2 GFX"
@ghulamostafa
ghulamostafa / mssql_user_access.sql
Created May 19, 2019
Given Access to a Specific User to a Specific Database
View mssql_user_access.sql
--Step 1: (create a new user)
CREATE LOGIN hello WITH PASSWORD='foo', CHECK_POLICY = OFF;
-- Step 2:(deny view to any database)
USE master;
GO
DENY VIEW ANY DATABASE TO hello;
@andrewlkho
andrewlkho / gist:6777065
Last active May 19, 2019
How to import a gpg secret subkey into an existing secret key
View gist:6777065
# The following example imports subkey DF6C5C29 into a secret keyring that
# already contains 55C794A2
% gpg --list-secret-keys
sec 4096R/AF72A573 2012-06-17
uid Andrew Ho <andrewho@andrewho.co.uk>
ssb 4096R/55C794A2 2012-06-17
% mkdir 55C794A2
% cd 55C794A2
View Potential Maintainers
Maintainers:
globin: dnsenum, dnsrecon, dnsrecon, dnsenum, fierce, fierce, fierce, dnsrecon, fierce, dnsenum, dnsrecon, dnsenum
c0bw3b: dnsrecon, dnsrecon, fierce, fierce, fierce, dnsrecon, fierce, dnsrecon
treemo: theharvester, theharvester, theharvester, theharvester
@subfuzion
subfuzion / curl.md
Last active May 19, 2019
curl POST examples
View curl.md

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

You can’t perform that action at this time.