Skip to content

Instantly share code, notes, and snippets.

View chanlettuce's full-sized avatar

Sho Uchida chanlettuce

View GitHub Profile
@chanlettuce
chanlettuce / main.c
Created May 24, 2021 04:17
functions_structs_array_sample
#include<stdio.h>
#include<string.h>
// プロダクトIDの定義一覧
#define CO2_7SEG_ID 0
#define SOIL_7SEG_ID 1
#define RESULT_CODE_SUCCESS 0
#define RESULT_CODE_FAILURE 1
@chanlettuce
chanlettuce / docker-compose.yml
Created September 21, 2020 21:38
SoftEther Docker Compose
version: '3'
services:
vpnserver:
image: siomiz/softethervpn:alpine
restart: always
volumes:
- /data/se-vpn/vpn_server.config:/usr/vpnserver/vpn_server.config
environment:
SPW: ${ADMIN_PASSWORD}
HPW: ${ADMIN_PASSWORD}
fastboot devices
fastboot oem enable_camera_hal3 true
fastboot reboot
@chanlettuce
chanlettuce / SoftEther
Last active January 25, 2019 19:12
SoftEther
# userでログイン
[user@localhost ~]$ su -
[root@localhost ~]# yum - y update
[root@localhost ~]# yum groupinstall "Development tools"
[root@localhost ~]# yum -y install wget
# SoftEtherのダウンロード
[root@localhost ~]# wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.28 -9669-beta/softether-vpnserver-v4.28-9669-beta-2018.09.11-linux-x64-64bit.tar.gz
[root@localhost ~]# tar xzvf softether-vpnserver-v4.28-9669-beta-2018.09.11-linux-x64-64bit.tar.gz
function test() {
path = '/Folder1/Folder2/Folder3/';
writePlain(makeFolder(path), 'test1.txt', 'hogehoge');
writePlain(getFolder(path), 'test1.txt', 'hogehoge');
}
/* フォルダが存在すれば、そのFolderオブジェクトを返す(存在しない場合はnull) */
function getFolderByPath(path, currentFolder) {
return getFolderCore(path, currentFolder, false);
}