This file contains hidden or 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
-- UNRELATED ACCOUNT ONLY | |
DELETE FROM statuses WHERE local IS false AND id NOT IN (SELECT status_id FROM status_pins) AND id NOT IN (SELECT status_id FROM favourites) AND id NOT IN (SELECT status_id FROM bookmarks) AND id NOT IN (SELECT id FROM statuses WHERE id IN (SELECT reblog_of_id FROM statuses WHERE reblog_of_id IS NOT NULL AND (account_id <= 10 OR account_id IN (SELECT target_account_id FROM follows WHERE account_id <= 10)))) AND id NOT IN (SELECT activity_id FROM notifications WHERE type = 'reblog') AND id NOT IN (SELECT status_id FROM mentions WHERE id IN (SELECT activity_id FROM notifications WHERE type = 'mention')) AND account_id NOT IN (SELECT target_account_id FROM follows WHERE account_id <= 10) AND created_at < ''; | |
-- ALL | |
DELETE FROM statuses WHERE local IS false AND id NOT IN (SELECT status_id FROM status_pins) AND id NOT IN (SELECT status_id FROM favourites) AND id NOT IN (SELECT status_id FROM bookmarks) AND id NOT IN (SELECT id FROM statuses WHERE id IN (SELECT reblog_of_id FROM statuses |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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" + \ |
NewerOlder