Skip to content

Instantly share code, notes, and snippets.

View tyokyo320's full-sized avatar
Fight!

tyokyo320 tyokyo320

Fight!
View GitHub Profile
@tyokyo320
tyokyo320 / gitflow-breakdown.md
Created August 23, 2023 08:22 — forked from JamesMGreene/gitflow-breakdown.md
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@tyokyo320
tyokyo320 / error_handling_example.sh
Created June 15, 2023 08:53 — forked from pasela/error_handling_example.sh
[bash]error handling and error report example
#!/bin/bash
#
# error handling and error report example
#
set -e
# logfile
LOGFILE=`mktemp`
@tyokyo320
tyokyo320 / examples.md
Created May 16, 2023 12:14 — forked from embano1/examples.md
kubectl JSON and sort examples

get events sorted by counts and only some fields we're interested in

$ kubectl -n pubsub get ev --sort-by count -o custom-columns='NAME:.metadata.name,KIND:involvedObject.kind,MSG:.message,FIRST:firstTimestamp,COUNT:.count'

using go templating

$ kubectl get events  --sort-by='.metadata.creationTimestamp'  -o 'go-template={{range .items}}{{.involvedObject.name}}{{"\t"}}{{.involvedObject.kind}}{{"\t"}}{{.message}}{{"\t"}}{{.reason}}{{"\t"}}{{.type}}{{"\t"}}{{.firstTimestamp}}{{"\n"}}{{end}}'
@tyokyo320
tyokyo320 / gist:568eefb275be20ede7fc6d54ca28c588
Created May 9, 2023 07:05 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@tyokyo320
tyokyo320 / podman_macos.md
Created March 2, 2023 02:10 — forked from kaaquist/podman_macos.md
Podman with docker-compose on MacOS.

Podman with docker-compose on MacOS.

Podman an alternative to Docker Desktop on MacOS

Getting podman installed and started is super easy.
Just use brew to install it.

> brew install podman

Now since podman uses a VM just like the Docker Client on MacOS we need to initialize that and start it.

var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
Ruby 6 hrs 45 mins ████████▊░░░░░░░░░░░░ 42.2%
Markdown 3 hrs 32 mins ████▋░░░░░░░░░░░░░░░░ 22.1%
Other 1 hr 30 mins █▉░░░░░░░░░░░░░░░░░░░ 9.4%
SQL 1 hr 20 mins █▊░░░░░░░░░░░░░░░░░░░ 8.4%
Go 50 mins █░░░░░░░░░░░░░░░░░░░░ 5.3%