curl -sSL https://gist.githubusercontent.com/ttimasdf/ef739670ac5d627981c5695adf4c8f98/raw/autossh@host1 | \
sudo tee /etc/default/autossh@example
curl -sSL https://gist.githubusercontent.com/ttimasdf/ef739670ac5d627981c5695adf4c8f98/raw/autossh@.service | \
sudo tee /etc/systemd/system/autossh@.service
sudo useradd -g nogroup -s /bin/false -m tunnel
sudo -u tunnel mkdir -p ~tunnel/.ssh # and copy your private key here
Inspired from: https://github.com/vigente/gerardus/wiki/Integrate-git-diffs-with-word-docx-files
Usage:
cd /path/to/your/repo/with/docx
sh -c "$(curl -fsSL https://gist.githubusercontent.com/ttimasdf/7965baab972b901c1f8349ce5fcb5e09/raw/setup-git-hook.sh)"
Done!
Migrate from self-built (test-key
or dev-key
) or Official Release from https://download.lineageos.org/, to our self-signed builds, RETAINING DATA!!! and avoid the annoying error:
Can't install this package on top of incompatible data. Please try another package or run a factory reset
Apply the two patch accordingly, with command below. (Changed a little bit from 156047 and 162144
Usage:
- cd to Hexo
source/
directory. copy migrator.py here. - If you have image host CDN mapped to local directory, change
LOCAL_CDN_DOMAIN
andp_imgcdn
accordingly - run
./migrator.py
, pip packagerequests
is the only dependency. - check output in
_export/
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
server { | |
listen 127.0.0.1:81; | |
server_name _; | |
access_log /var/log/nginx/awstats.access_log combined; | |
error_log /var/log/nginx/awstats.error_log; | |
root /usr/share/awstats/wwwroot; | |
index /awstats.pl; | |
location ~ \.pl$ { |
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
# The following is adapted from https://github.com/reswitched/loaders/blob/master/nxo64.py | |
# | |
# =========================================================================================== | |
# | |
# Copyright 2017 Reswitched Team | |
# | |
# Permission to use, copy, modify, and/or distribute this software for any purpose with or | |
# without fee is hereby granted, provided that the above copyright notice and this permission | |
# notice appear in all copies. | |
# |
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 ubuntu:20.04 | |
RUN apt-get update && apt-get install -y wget | |
ARG url="https://dl-cdn.oray.com/hsk/linux/phddns-5.0.0-amd64.deb" | |
RUN wget "$url" -O phddns.deb && \ | |
dpkg -i phddns.deb && \ | |
rm phddns.deb |
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/Makefile.flags b/Makefile.flags | |
index cff935ff5..e5818f5db 100644 | |
--- a/Makefile.flags | |
+++ b/Makefile.flags | |
@@ -152,7 +152,7 @@ CRYPT_AVAILABLE := $(shell echo 'int main(void){return 0;}' >crypttest.c; $(CC) | |
ifeq ($(CRYPT_AVAILABLE),y) | |
LDLIBS += m rt crypt | |
else | |
-LDLIBS += m rt | |
+LDLIBS += m |
https://github.com/Dreamacro/clash-dashboard
Save codes below as Dockerfile.
FROM node:lts-stretch
COPY . .
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
-- Adapted from these sources: | |
-- http://peterdowns.com/posts/open-iterm-finder-service.html | |
-- https://gist.github.com/cowboy/905546 | |
-- | |
-- Modified to work with files as well, cd-ing to their container folder | |
on run {input, parameters} | |
tell application "Finder" | |
set my_file to first item of input | |
set is_folder to (do shell script "file -b " & quoted form of (POSIX path of my_file)) | |
if is_folder ends with "directory" then |
NewerOlder