Skip to content

Instantly share code, notes, and snippets.

View calee0219's full-sized avatar
🤗

Chia-An Lee calee0219

🤗
View GitHub Profile
#include <bits/stdc++.h>
using namespace std;
int f91(int x)
{
if(x >= 101) return x-10;
return f91(f91(x + 11));
}
int main()
@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
0x3223EcA5F74A5916fE88639374c8D72C0853a10F
#!/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
#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;
#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>
#include <time.h>
#include <stdlib.h>
#define MAX 100
#define MIN 1
#define ORD_SIZE 50
#!/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
#!/bin/bash
if ! wget -v &> /dev/null
then
echo ¨wget command not found¨
exit 1
fi
if ! unzip -v &> /dev/null
then
#!/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