Skip to content

Instantly share code, notes, and snippets.

View tastyone's full-sized avatar
💭
Happy! Look at my eyes~

Sangwon Park tastyone

💭
Happy! Look at my eyes~
View GitHub Profile
@tastyone
tastyone / d-install-run.sh
Created July 29, 2023 06:26
Dogecoin install and run a daemon
wget https://github.com/dogecoin/dogecoin/releases/download/v1.14.6/dogecoin-1.14.6-x86_64-linux-gnu.tar.gz
tar -xvzf dogecoin-1.14.6-x86_64-linux-gnu.tar.gz
cd dogecoin-1.14.6/bin
./dogecoind -daemon
cd .dogecoin
tail -f debug.log
@tastyone
tastyone / housekeeping_images.sh
Created April 28, 2020 08:38 — forked from DaanGeurts/housekeeping_images.sh
Deleting unused images from Google Container Registry, leaving x number left
#!/bin/bash
# Copyright © 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
#! /usr/bin/python
# This will generate a build number from GIT repository rev-count
# and Set the build number to iOS and Android project file in the React Native Project
#
# Use this script on the base directory of your React Native Project.
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
@tastyone
tastyone / app.yaml
Last active October 26, 2017 02:33
env_variables:
DEBUG: true
PHASE: local
#!/bin/bash
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install software-properties-common libssl-dev openssl wget cmake
## Install latest Python 3
# -----------------------
PY_VERSION=3.4.3
PY_URL="https://www.python.org/ftp/python/$PY_VERSION/Python-$PY_VERSION.tgz"
PY_DIR="Python-$PY_VERSION"
# Run these cmd in /opt
# install haproxy 1.5
sudo apt-get install language-pack-UTF-8
sudo apt-add-repository ppa:vbernat/haproxy-1.5
sudo apt-get update
sudo apt-get install -y haproxy
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
# install redis 3.0.3
sudo apt-get install language-pack-UTF-8
sudo apt-get update
sudo apt-get install -y make
sudo apt-get install -y build-essential
sudo apt-get install -y libjemalloc-dev
wget http://download.redis.io/releases/redis-3.0.3.tar.gz
tar -zxvf redis-3.0.3.tar.gz
port 6379
bind 0.0.0.0
pidfile /var/run/redis.pid
daemonize yes
cluster-enabled yes
cluster-config-file nodes.conf
cluster-node-timeout 5000
appendonly yes
# github account
Host github.com
User git
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa