Skip to content

Instantly share code, notes, and snippets.

View zeroichiio's full-sized avatar
💭
enjoying.

zeroichi zeroichiio

💭
enjoying.
  • Tokyo, Japan
View GitHub Profile

iPhone

Model(s) Physical Size Points (Standard) Points (Zoomed) Scale Device Resolution Screen Resolution
iPhone 14 Pro Max 6.7" 430 x 932 375 x 812 @3x 1290 x 2796 1290 x 2796
iPhone 14 Pro 6.1" 393 x 852 320 x 693 @3x 1179 x 2556 1179 x 2556
iPhone 14 Plus 6.7" 428 x 926 375 x 812 @3x 1284 x 2778 1284 x 2778
iPhone 14 6.1" 390 x 844 320 x 693 @3x 1170 x 2532 1170 x 2532
iPhone 13 Pro Max 6.7" 428 x 926 375 x 812 @3x 1284 x 2778 1284 x 2778
iPhone 13, iPhone 13 Pro 6.1" 390 x 844 320 x 693 @3x 1170 x 2532 1170 x 2532
@zeroichiio
zeroichiio / basic-json-writer-func.go
Created April 14, 2022 06:11
GO basic JSON writer function
func writeJSON(data interface{}, name string, path string) {
file, err := json.MarshalIndent(data, "", " ")
if err != nil {
log.Println("Unable to create json file", name)
return
}
PathInfo, err := os.Stat(path)
if err != nil {
log.Println("Path does not exist!", err)
}
@zeroichiio
zeroichiio / structs-slices.go
Last active April 5, 2022 06:10
GO structs, slices and nesting structs
package main
import (
"fmt"
"strconv"
)
type record struct {
Field1 int
Field2 string
@zeroichiio
zeroichiio / type-switch.go
Last active April 5, 2022 05:47
GO Type Switch
func Learn(x interface{}) {
switch T := x.(type) {
default:
fmt.Printf("Data type: %T\n", T)
}
}
@zeroichiio
zeroichiio / notes.git
Last active April 5, 2022 06:10 — forked from danielestevez/gist:2044589
GIT Commit to an existing Tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
@zeroichiio
zeroichiio / public-ucs-networking.txt
Last active December 8, 2020 23:26
UCS NETWORKING
HIF: Host Interface (Internal Server facing links)
LIF: Logical Interface
VIF: Virtual Interface
FIF: Fabric Extender Interface FEX/ FEIF
NIF: Network Interface (external fabric links)
DCE: Data Center Ethernet (Adapter Port)
ULP: Uplink Port
SRP: Server Port
@zeroichiio
zeroichiio / public-n3k-upgrade.txt
Last active December 9, 2020 00:08
N3K Upgrade
Things to check
show cli variables
($<variable>) $(TIMESTAMP)
session: cli var name TFTPN3K <ip address>
persistent: (config) cli var name TFTPN3K <ip address>; exit; wr
Prerequisites for Upgrading the Cisco NX-OS Software
The Cisco Nexus 3500 Series NX-OS Release Notes contain specific upgrade guidelines for each release.
@zeroichiio
zeroichiio / public-ucs-misc.txt
Last active December 8, 2020 23:25
UCS MISC
“If I receive traffic from one of my servers destined to something I dont know about, it must be out in the network somewhere so I’ll just send it out a pinned uplink.”*
“If I receive unicast traffic from an uplink destined to something I dont know about, I will just drop this traffic.”
“I will only pay attention to broadcasts received from my servers or received on my designated Broadcast uplink.”
“If I receive broadcast traffic from my designated Broadcast link, I will send the broadcast to my servers but not to my other uplinks.”
“If I receive broadcast traffic from my designated Broadcast link that originated from one of my own servers, I will just drop this traffic.”