- Download & Install Sublime Text 3.2.2 Build 3211
- Visit https://hexed.it/
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
| cd /etc/systemd/system && wget https://gist.github.com/maulvi/462db65c55f072aa2ca5e890645bc573/raw/bb4a38fde0f223fcb6b31d8ee81575a2f78033b8/nvidia-tdp.service && wget https://gist.github.com/maulvi/462db65c55f072aa2ca5e890645bc573/raw/e13df4deb6f8e5e9945b079f0d3fd9736fa9055f/nvidia-tdp.timer && sudo systemctl daemon-reload && sudo systemctl enable --now nvidia-tdp.timer && sudo systemctl start nvidia-tdp.timer |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #!/usr/bin/env python3 | |
| import os | |
| import sys | |
| # single thread doubles cuda performance - needs to be set before torch import | |
| if any(arg.startswith('--execution-provider') for arg in sys.argv): | |
| os.environ['OMP_NUM_THREADS'] = '1' | |
| # reduce tensorflow log level | |
| os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' | |
| import warnings |
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
| ''' | |
| @paper: GAN Prior Embedded Network for Blind Face Restoration in the Wild (CVPR2021) | |
| @author: yangxy ([email protected]) | |
| ''' | |
| import os | |
| import cv2 | |
| import glob | |
| import time | |
| import math | |
| import argparse |
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
| sudo nano /etc/modprobe.d/nvidia.conf | |
| options nvidia-drm fbdev=1 | |
| options nvidia NVreg_PreserveVideoMemoryAllocations=1 | |
| sudo update-initramfs -u |
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
| networks: | |
| proxy-network: | |
| external: false | |
| services: | |
| nginx-proxy-manager: | |
| image: jc21/nginx-proxy-manager:latest | |
| ports: | |
| - 80:80 | |
| - 443:443 | |
| - 100.76.79.94:81:81 |
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
| # ===== ESSENTIALS ===== | |
| pacman -Syu --noconfirm | |
| pacman -S --noconfirm \ | |
| base-devel git curl wget \ | |
| vim neovim \ | |
| networkmanager \ | |
| linux-headers \ | |
| unzip zip \ | |
| man-db man-pages \ |
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
| opkg install kmod-tcp-bbr luci-app-mwan3 ca-certificates curl nano stubby | |
| # Tambah redirect rule (klien → port 53 → dipaksa ke dnsmasq port 53) | |
| uci -q delete firewall.dns_redirect | |
| uci set firewall.dns_redirect='redirect' | |
| uci set firewall.dns_redirect.name='Force-DNS-to-Router' | |
| uci set firewall.dns_redirect.src='lan' | |
| uci set firewall.dns_redirect.src_dport='53' | |
| uci set firewall.dns_redirect.proto='tcp udp' |
OlderNewer