Skip to content

Instantly share code, notes, and snippets.

View ichi0915's full-sized avatar
🍵
Drinking tea

ichi0915 ichi0915

🍵
Drinking tea
View GitHub Profile
@ichi0915
ichi0915 / instructions.txt
Created February 7, 2022 22:15 — forked from lalitkale/instructions.txt
Install Spinnaker on MiniKube
# Minikube addons
https://github.com/kubernetes/minikube/blob/master/docs/addons.md
#start minikube
minikube start --vm-driver hyperv --hyperv-virtual-switch "VMVirtualSwitch" --memory 12288 --cpus 4
#or
minikube start --vm-driver="hyperv" --hyperv-virtual-switch="VMVirtualSwitch" --v=7 --alsologtostderr
# minikube Patch Enviornemnt for Helm
@ichi0915
ichi0915 / hash.c
Created April 19, 2018 17:15 — forked from tonious/hash.c
A quick hashtable implementation in c.
/* Read this comment first: https://gist.github.com/tonious/1377667#gistcomment-2277101
* 2017-12-05
*
* -- T.
*/
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <stdlib.h>
#include <stdio.h>
@ichi0915
ichi0915 / png_crop.cpp
Created July 19, 2017 19:18 — forked from MikuAuahDark/png_crop.cpp
Crop PNG from 0x0 to specificed pixel
#include <iostream>
#include <string>
#include <cstdarg>
#include <png.h>
using namespace std;
// Prints message in stderr and exit program in release build.
// In debug build, it trigger debug breakpoint instead.
void failexit(const char* file,const char* msg) {