Skip to content

Instantly share code, notes, and snippets.

View cloudyyoung's full-sized avatar

Yunfan Yang cloudyyoung

View GitHub Profile
@cloudyyoung
cloudyyoung / dst.sh
Last active May 10, 2021 16:07
Don't Starve Together linux bash
#!/bin/bash
master='.klei/DoNotStarveTogether/MyDediServer/Master/'
cave='.klei/DoNotStarveTogether/MyDediServer/Caves/'
dst_dir=(${master} ${cave})
stop(){
c_save
screen -S overworld -p 0 -X stuff 'c_shutdown()\n'
@cloudyyoung
cloudyyoung / Jenkinsfile
Created January 7, 2021 12:42
Jenkinsfile - Build PHP by Composer and deploy to server by Publish Over SSH
pipeline {
agent any
environment {
DEPLOY_DIR = "/home/wwwroot/default/charity-jenkins"
DEPLOY_NAME = "deploy.tar.gz"
}
stages {
stage('Build') {
@cloudyyoung
cloudyyoung / youtube_view_stats.php
Last active February 25, 2020 01:04
Youtube video watch, like, unlike and comment count spider using Google api. API_KEY is from api official doc tester, because personal api has delta limit.
<?php
require('../database.php');
require('../method.php');
$API_KEY = 'AIzaSyAa8yy0GdcGPHdtD083HiGGx_S0vMPScDM';