Skip to content

Instantly share code, notes, and snippets.

View taefreeze's full-sized avatar
🏝️
On vacation

TaeFreeze taefreeze

🏝️
On vacation
  • Freeze
  • Thailand
  • 16:26 (UTC +07:00)
View GitHub Profile
@taefreeze
taefreeze / docker._yml
Created March 5, 2021 08:25
Git Actions - Docker login/build/push sample
name: Docker Build Example
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
@taefreeze
taefreeze / program.cs
Created March 7, 2021 01:28
Struct program
struct Books
{
public string title;
public string author;
public string subject;
public int book_id;
};
Books test;
test.title = "Struct Sample";
test.author = "Tae Chanwit";
@taefreeze
taefreeze / struct & array
Created March 7, 2021 01:40
struct & array .net console
struct Books
{
public string title;
public string author;
public string subject;
public int book_id;
};
Books[] arr = new Books[4];
for(int i = 0; i < 4; i++)
@taefreeze
taefreeze / Docker-DigitalOcean
Created March 16, 2021 10:42
for my deploy
Setup
yum install -y epel-release nginx firewalld git
install Docker CentOS
yum install -y yum-utils
yum-config-manager \
--add-repo \
@taefreeze
taefreeze / Docker for Pi
Created October 23, 2021 12:02
Docker installation for Raspi
#pi update
sudo apt update
#upgrade package
sudo apt upgrade
#reboot
sudo reboot
#get docker.sh
curl -fsSL https://get.docker.com -o get-docker.sh
#run bash
sudo bash get-docker.sh