Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target| #SingleInstance force | |
| #warn | |
| RyzenPowerPlanIDCheck() | |
| { | |
| objShell := ComObjCreate("WScript.Shell") | |
| var := objShell.Exec("cmd /c powercfg /list").StdOut.ReadAll() | |
| global powercfg_ids := ["381b4222-f694-41f0-9685-ff5bb260df2e","a1841308-3541-4fab-bc81-f71556f20b4a"] | |
| for each, id in powercfg_ids | |
| { | 
| 进入sougou的配置目录 | |
| vim $HOME/.config/sogoupinyin/conf/env.ini | |
| 找到StatusAppearance 设置为 | |
| StatusAppearance=0 | 
| parsers: # array | |
| - url: YOUR_URL | |
| code: | | |
| module.exports.parse = (raw,{ yaml }) => { | |
| const rawObj = yaml.parse(raw) | |
| var proxy_groups = rawObj["proxy-groups"] | |
| var valid_arr = [] | |
| var select_i = 0 | |
| for(var i = 0; i < proxy_groups.length; i++) { | |
| var obj = proxy_groups[i]; | 
| initialized | |
| workspace/didChangeConfiguration | |
| IntelliSense Engine = Default. | |
| Autocomplete is enabled. | |
| Enhanced Colorization is enabled. | |
| Error squiggles are enabled if all header dependencies are resolved. | |
| File exclude: **/.git | |
| File exclude: **/.svn | |
| File exclude: **/.hg | |
| File exclude: **/CVS | 
| /* MIT License | |
| * | |
| * Copyright (c) 2017 Roland Singer [[email protected]] | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is | |
| * furnished to do so, subject to the following conditions: | 
Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target| #pragma once | |
| #include <iostream> | |
| #include <sstream> | |
| #include <vector> | |
| #include <boost/algorithm/string.hpp> | |
| #include <boost/iostreams/copy.hpp> | |
| #include <boost/iostreams/filter/bzip2.hpp> | |
| #include <boost/iostreams/filter/gzip.hpp> | |
| #include <boost/iostreams/filtering_stream.hpp> | 
| import requests | |
| import json | |
| from datetime import datetime, timedelta | |
| import os | |
| if os.name == 'nt': | |
| from win10toast import ToastNotifier | |
| toaster = ToastNotifier() | |
| //from config import * | |
| POMO_URL='https://api.pomotodo.com/1/pomos' | 
| #!/bin/bash | |
| tail -n0 -F "$1" | while read LINE; do | |
| (echo "$LINE" | grep -e "$3") && curl -X POST --silent --data-urlencode \ | |
| "payload={\"text\": \"$(echo $LINE | sed "s/\"/'/g")\"}" "$2"; | |
| done | 
| # ... more above ... | |
| # wsfl bash is not a login shell | |
| if [ -d "$HOME/bin" ] ; then | |
| PATH="$HOME/bin:$PATH" | |
| fi | |
| # ssh-agent configuration | |
| if [ -z "$(pgrep ssh-agent)" ]; then | |
| rm -rf /tmp/ssh-* |