This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if ! wget -v &> /dev/null | |
then | |
echo ¨wget command not found¨ | |
exit 1 | |
fi | |
if ! unzip -v &> /dev/null | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x3223EcA5F74A5916fE88639374c8D72C0853a10F |
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.
Download Gitea binary from download page first.
$ wget https://dl.gitea.io/gitea/1.1.0/gitea-1.1.0-linux-amd64 -O gitea
NewerOlder