Skip to content

Instantly share code, notes, and snippets.

View sierrezinal's full-sized avatar
💭
Listening to Wanderwelle. In Heaven or Las Vegas

Gavin Chun Jin sierrezinal

💭
Listening to Wanderwelle. In Heaven or Las Vegas
  • Vancouver, Canada
View GitHub Profile
@sierrezinal
sierrezinal / gist:9397134370c89f7b1571e22db3b04deb
Created August 15, 2021 01:10
Unable to install ingress-nginx into kind cluster
$ kubectl apply --filename
https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/kind/deploy.yaml
$ kubectl get pods -n ingress-nginx -l app.kubernetes.io/name=ingress-nginx --watch
NAME READY STATUS RESTARTS AGE
ingress-nginx-admission-create-z5bkg 0/1 ContainerCreating 0 12s
ingress-nginx-admission-patch-cwxsr 0/1 ContainerCreating 0 12s
ingress-nginx-controller-78f889f8b9-sfpw9 0/1 ContainerCreating 0 12s
ingress-nginx-admission-create-z5bkg 0/1 ErrImagePull 0 21s
ingress-nginx-admission-patch-cwxsr 0/1 ErrImagePull 0 21s
@sierrezinal
sierrezinal / pedantically_commented_playbook.yml
Created March 24, 2021 01:22 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@sierrezinal
sierrezinal / README-oneshot-systemd-service.md
Created February 22, 2021 22:15 — forked from drmalex07/README-oneshot-systemd-service.md
An example with an oneshot service on systemd. #systemd #systemd.service #oneshot

README

Services declared as oneshot are expected to take some action and exit immediatelly (thus, they are not really services, no running processes remain). A common pattern for these type of service is to be defined by a setup and a teardown action.

Let's create a example foo service that when started creates a file, and when stopped it deletes it.

Define setup/teardown actions

Create executable file /opt/foo/setup-foo.sh:

@bansalankit92
bansalankit92 / docker_interview_question.md
Last active June 21, 2025 17:28
Docker interview questions and answers all level

What is Hypervisor?

A hypervisor is a software that makes virtualization possible. It is also called Virtual Machine Monitor. It divides the host system and allocates the resources to each divided virtual environment. You can basically have multiple OS on a single host system. There are two types of Hypervisors:

  • Type 1: It’s also called Native Hypervisor or Bare metal Hypervisor. It runs directly on the underlying host system. It has direct access to your host’s system hardware and hence does not require a base server operating system.
  • Type 2: This kind of hypervisor makes use of the underlying host operating system. It’s also called Hosted Hypervisor.

What is virtualization?

Virtualization is the process of creating a software-based, virtual version of something(compute storage, servers, application, etc.). These virtual versions or environments are created from a single physical hardware system. Virtualization lets you split one system into many different sections which act like separ

@dixudx
dixudx / StreamToString.go
Created November 16, 2016 09:34 — forked from tejainece/StreamToString.go
Golang: io.Reader stream to string or byte slice
import "bytes"
func StreamToByte(stream io.Reader) []byte {
buf := new(bytes.Buffer)
buf.ReadFrom(stream)
return buf.Bytes()
}
func StreamToString(stream io.Reader) string {
buf := new(bytes.Buffer)
@zrecore
zrecore / jquery.tableSort.js
Created October 13, 2010 17:29
Converts tables into sortable tables that connects to JSON data.
/**
* @copyright Copyrights 2010 ZRECommerce.
* @licence GPL v3 or higher. See http://www.gnu.org/licenses/gpl.html
*/
(function($){
$.fn.tableSort = function(settings) {
var config = {
'pageIndex' : 1, // What page to request
'rowCount' : 30, // How may results per page
'sort' : null, // Sort by this column
i
me
my
myself
we
our
ours
ourselves
you
your