All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

Login


All New Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
adien's Avatar

adien / example.service

0 likes
0 forks
1 files
Last active 1720424770
1 # /etc/systemd/system/yourdaemon.service
2 [Unit]
3 Description=Your Daemon Example
4 After=network.target network-online.target
5 Requires=network-online.target
6
7 [Service]
8 ExecStart=/usr/local/bin/yourdaemon
9 Type=oneshot
10 Restart=on-failure
adien's Avatar

adien / caddy-fallback

0 likes
0 forks
1 files
Last active 1717834463
1 {
2 log {
3 include http.handlers.reverse_proxy.health_checker.active
4 level WARN
5 }
6 }
7
8 :80 {
9 reverse_proxy localhost:5000 localhost:8080 {
10 header_up Host {upstream_hostport}
adien's Avatar

adien / set_static.ps1

0 likes
0 forks
1 files
Last active 1717832781
1 $IP = "10.10.10.10"
2 $MaskBits = 24 # This means subnet mask = 255.255.255.0
3 $Gateway = "10.10.10.1"
4 $Dns = "10.10.10.100"
5 $IPType = "IPv4"
6 # Retrieve the network adapter that you want to configure
7 $adapter = Get-NetAdapter | ? {$_.Status -eq "up"}
8 # Remove any existing IP, gateway from our ipv4 adapter
9 If (($adapter | Get-NetIPConfiguration).IPv4Address.IPAddress) {
10 $adapter | Remove-NetIPAddress -AddressFamily $IPType -Confirm:$false
Newer Older

Powered by Opengist ⋅ Load: 71ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano Português Русский Türkçe Українська 中文 繁體中文