Skip to content

Instantly share code, notes, and snippets.

View calee0219's full-sized avatar
🤗

Chia-An Lee calee0219

🤗
View GitHub Profile
@calee0219
calee0219 / final.org
Last active November 14, 2021 06:39
陸軍新遜旅新兵軍事期末學科測驗卷

陸軍新遜旅新兵軍事期末學科測驗卷

甲卷

是非題 (每題 2 分)

(O) 步測通常於中短距離使用

(O) 衛兵攜槍姿勢,晝間持槍或提槍,夜間端槍或挾槍

(X) 公式構築時,投土方法只有水平投土一種 [???]

(O) 構種地形通過方法中,上坡為腳尖先著地

#!/bin/sh
API_TOKEN=
DNS_DUAL=
DNS_V4=
DNS_V6=
IP_MEM_FILE=/tmp/ddns_ip.txt
if [ -f ${IP_MEM_FILE} ]; then source ${IP_MEM_FILE}; fi
if test -z ${previous_ipv4}; then previous_ipv4="0.0.0.0"; fi
#!/bin/bash
if ! wget -v &> /dev/null
then
echo ¨wget command not found¨
exit 1
fi
if ! unzip -v &> /dev/null
then
#!/usr/bin/env bash
mac=`ip nei | grep 10.10.2. | awk '{ if($5) { print $1 "," $5 } }'`
#echo ${mac}
set -- ${mac}
while [ $# -gt 0 ]
do
printf $1
#include <stdio.h>
#include <limits.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#define MAX 100
#define MIN 1
#define ORD_SIZE 50
#include <stdio.h>
#include <limits.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#define MAX 100
#define MIN 1
int PRIME[MAX] = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97};
#include <stdio.h>
#include <limits.h>
#include <string.h>
#define MAX 100
#define MIN 1
int PRIME[MAX] = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97};
int NUM[MAX] = {};
int test_num;
#!/bin/bash
disk=`df -h | awk '{ print $1 }' | grep /dev/s | awk 'NR == 1' | cut -c1-8`
to_disk=`ls -1 -d /dev/s* | egrep -x '/dev/s[abcd]+'`
for arg in ${to_disk}
do
if [ ${arg} != ${disk} ]
then
0x3223EcA5F74A5916fE88639374c8D72C0853a10F
@calee0219
calee0219 / gitea_install.md
Created August 8, 2017 02:48 — forked from appleboy/gitea_install.md
how to install gitea in Ubuntu/Debian.

Gitea

Gitea is a painless self-hosted Git service. It is similar to GitHub, Bitbucket or Gitlab. The initial development have been done on Gogs but we have forked it and named it Gitea. If you want to read more about the reasons why we have done that please read this blog post.

Run Gitea service

Download Gitea binary from download page first.

$ wget https://dl.gitea.io/gitea/1.1.0/gitea-1.1.0-linux-amd64 -O gitea