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 python3 | |
# -*- coding: utf-8 -*- | |
import argparse | |
import subprocess | |
import datetime | |
def _main(): | |
parser = argparse.ArgumentParser(description="Ping watch") |
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
diff --git a/.gitignore b/.gitignore | |
index 2e864422..a0f86506 100644 | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -10,3 +10,5 @@ CMakeCache.txt | |
Makefile | |
Makefile.in | |
config.h | |
+build/ | |
+.DS_Store |
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 <string.h> | |
#include <Carbon/Carbon.h> | |
int main(int nargs, char** argv) { | |
if (nargs != 2) { | |
fprintf(stderr, "%s (on|off)\n", argv[0]); | |
return 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
FROM almalinux:9 as download | |
RUN dnf update -y && dnf install --allowerasing -y wget curl | |
ARG PYTHON_VERSION=3.11.8 | |
RUN wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz | |
RUN tar xzf Python-${PYTHON_VERSION}.tgz | |
FROM almalinux:9 as build | |
RUN dnf update -y && dnf install -y epel-release && crb enable && dnf update -y | |
RUN dnf install --allowerasing -y gcc gcc-c++ make autoconf automake bzip2-devel zlib-devel xz-devel ncurses-devel libcurl-devel openssl-devel tcl-devel tk-devel sqlite-devel readline-devel libffi-devel gdbm-devel | |
WORKDIR /build |
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
[Setup] | |
AppId={{3DD1237A-78BD-4E14-9AC6-2376BE4E3B1B} | |
AppName="Nothing Installer" | |
AppVersion=1.0 | |
Uninstallable=no | |
OutputBaseFilename=nothing-installer | |
DefaultDirName={autopf} | |
DisableDirPage=yes | |
DisableProgramGroupPage=yes |
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 python3 | |
import argparse | |
import xml.etree.ElementTree as ET | |
def _main(): | |
parser = argparse.ArgumentParser(description='') | |
parser.add_argument('pubmed_xml') | |
options = parser.parse_args() |
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 | |
set -eux -o pipefail | |
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )"; | |
DOWNLOAD_DIR="${SCRIPT_DIR}/downloads" | |
FILES_DIR="${SCRIPT_DIR}/files" | |
function download() { | |
URL="$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
$FillData1 = "" | |
for ($i = 0; $i -lt 1000; $i++) { | |
$FillData1 += "0" | |
} | |
$FillData2 = "" | |
for ($i = 0; $i -lt 1000; $i++) { | |
$FillData2 += $FillData1 |
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 | |
function install-almalinux-usage() { | |
cat <<EOF 1>&2 | |
$0 [options] name | |
-l INSTALL_ISO AlmaLinux ISO [Example: ${VM_INSTALL_ISO}] | |
-b BOOTPROTO IPv4 boot protocol (dhcp/static) [Example: ${VM_IP_BOOTPROTO}] | |
-i IP_ADDR IPv4 address [Example: ${VM_IP_ADDR}] | |
-m IP_NETMASK IPv4 netmask [Example: ${VM_IP_NETMASK}] |
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
FROM centos:8 AS download-httpd | |
RUN dnf update -y | |
RUN dnf install -y bzip2 | |
ARG HTTPD_VERSION=2.4.48 | |
ARG APR_VERSION=1.7.0 | |
ARG APR_UTIL_VERSION=1.6.1 | |
RUN curl -OL https://ftp.tsukuba.wide.ad.jp/software/apache/httpd/httpd-${HTTPD_VERSION}.tar.bz2 | |
RUN curl -OL https://ftp.kddi-research.jp/infosystems/apache/apr/apr-${APR_VERSION}.tar.bz2 | |
RUN curl -OL https://ftp.kddi-research.jp/infosystems/apache/apr/apr-util-${APR_UTIL_VERSION}.tar.gz | |
RUN tar xjf httpd-${HTTPD_VERSION}.tar.bz2 |
NewerOlder