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 | |
# | |
# tailscaled Start up the Tailscale server daemon | |
# | |
# description: A mesh VPN that makes it easy to connect your devices, wherever they are. | |
# | |
# processname: tailscaled | |
### BEGIN INIT INFO | |
# Provides: tailscaled |
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/configure.ac b/configure.ac | |
index 82e8bb7..a431e05 100644 | |
--- a/configure.ac | |
+++ b/configure.ac | |
@@ -4870,6 +4870,30 @@ AC_SUBST([GSSLIBS]) | |
AC_SUBST([K5LIBS]) | |
AC_SUBST([CHANNELLIBS]) | |
+# Check whether user wants systemd support | |
+SYSTEMD_MSG="no" |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"net" | |
"strconv" | |
"golang.org/x/text/transform" |
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
.status__wrapper .status { | |
padding: 8px 10px 8px 8px; | |
} | |
.status__wrapper .status__content { | |
line-height: 20px; | |
margin-left: 56px; | |
margin-top: -34px; | |
} |
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 <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
const char basepath[] = "/sys/devices/system/cpu/cpu%d/cpufreq/%s"; | |
void update_governor(int cpu, char *gov) { | |
FILE *fp; | |
char path[64]; |
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
require "net/https" | |
require "ipaddr" | |
require "json" | |
require "uri" | |
slack_url = URI.parse("") # slack webhook url | |
user = ENV["USER"] | |
remote_ip = IPAddr.new(ENV["SSH_CONNECTION"].split(" ")[0]) | |
local_ip = IPAddr.new(ENV["SSH_CONNECTION"].split(" ")[2]) |
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
require "digest/md5" | |
require "net/https" | |
require "json" | |
require "mail" | |
require "time" | |
require "uri" | |
def parse_envelope(data) | |
if data.multipart? | |
data.parts.map do |pt| |
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 | |
declare -A prev | |
declare -A next | |
renewal=0 | |
domain=("gomasy.jp" "gomasy.net") | |
for d in ${domain[@]}; do | |
prev+=([$d]=`date -r /etc/letsencrypt/live/$d/cert.pem "+%s"`) |
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
require "net/smtp" | |
require "securerandom" | |
require "base64" | |
FOOTER = "\n\n-----\nThis mail was issued by Ruby #{RUBY_VERSION} on Arch Linux (x86_64)." | |
def send_mail(server, from, to, subject, body) | |
Net::SMTP.start(server[:host], server[:port], `uname -n`.chomp, server[:user], server[:pass], :cram_md5) do |smtp| | |
smtp.send_message( | |
"Message-Id: <#{SecureRandom.uuid}@#{server[:host]}>\n" + \ |
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 | |
# This script is run by pppd after the link is established. | |
# It executes all the scripts available in /etc/ppp/ip-up.d directory, | |
# with the following parameters: | |
# $1 = interface name (e.g. ppp0) | |
# $2 = tty device | |
# $3 = speed | |
# $4 = local IP address | |
# $5 = remote IP address |
NewerOlder