Skip to content

Instantly share code, notes, and snippets.

View akillcool's full-sized avatar
🐟
Fishing

akillcool akillcool

🐟
Fishing
View GitHub Profile
@akillcool
akillcool / clash.service
Last active April 19, 2024 12:27
clash auto start and update subcribe configuration
# edit and save this file to /usr/lib/systemd/system/clash.service
[Unit]
Description=clash
After=network.target
[Service]
WorkingDirectory="your home directory"/.config/clash
ExecStart="your home directory"/.config/clash/start-clash.sh
ExecStop="your home directory"/.config/clash/stop-clash.sh
Environment="HOME=your home directory"
@akillcool
akillcool / deploy.sh
Created December 5, 2019 16:07
deploy github pages generated by Hugo
#!/bin/sh
# If a command fails then the deploy stops
set -e
printf "\033[0;32mDeploying updates to GitHub...\033[0m\n"
# Build the project.
hugo -t even # if using a theme, replace with `hugo -t <YOURTHEME>`