- SSID = redes
- IP = 192.168.1.1/24
- SECURITY MODE = WPA2 Enterprise
- RADIUS SERVER = 192.168.1.254
Discover gists
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
| # ========================================================== | |
| # NPM | |
| # ========================================================== | |
| npm set registry https://registry.npmmirror.com # 注册模块镜像 | |
| npm set disturl https://npmmirror.com/mirrors/node # node-gyp 编译依赖的 node 源码镜像 | |
| ## 以下选择添加 | |
| npm set sass_binary_site https://registry.npmmirror.com/mirrors/node-sass # node-sass 二进制包镜像 | |
| npm set electron_mirror https://registry.npmmirror.com/mirrors/electron/ # electron 二进制包镜像 |
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
| #!/usr/bin/env python3 | |
| # Simple tool to switch the Creative BT-W5 Bluetooth Audio dongle between AptX Adaptive **Low Latency** or **High Quality** mode. | |
| # Of course, only works with Bluetooth headphones that support AptX Adaptive, such as the Tranya X3 | |
| # Reverse engineered based on communication between Creative's desktop app for Windows and the BT-W5. | |
| # Might also accidentally overwrite other settings as a whole config data array is sent without taking into account the existing config. | |
| # | |
| # Usage: sudo ./btw5-switch.py ll (for low-latency mode) | |
| # sudo ./btw5-switch.py hq (for high-quality mode) | |
| # |
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
| SLDOPT COMMENT WPMEM, LOGPOINT, ASSERTION | |
| DEVICE ZXSPECTRUMNEXT | |
| CSPECTMAP "ctctest.map" | |
| org $8000 | |
| ctc0 equ $183b | |
| main: | |
| nextreg 7,0 ; set speed |
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
| // Source: https://gist.github.com/luetkemj/2023628 | |
| // Xem hướng dẫn WP_Query toàn tập: http://goo.gl/kRpzTz | |
| <?php | |
| $args = array( | |
| //////Author Parameters - Tham số lấy bài viết theo tác giả | |
| //http://codex.wordpress.org/Class_Reference/WP_Query#Author_Parameters | |
| 'author' => '1,2,3,', //(int) - Các ID tác giả cần lấy bài viết (thêm dấu - vào để loại trừ tác giả, ví dụ: -14, -20) | |
| 'author_name' => 'luetkemj', //(string) - Lấy bài viết dựa theo tên nick name của tác giả | |
| 'author__in' => array( 2, 6 ), //(array) - Lấy bài dựa theo ID của tác giả |
Instructions to obtain WireGuard details of your NordVPN account. These can be used to setup a WireGuard tunnel on your router to NordVPN.
Source: https://forum.gl-inet.com/t/configure-wireguard-client-to-connect-to-nordvpn-servers/10422/27
If you have any linux machine, use that or install a vm if you don't have one.
Get their official linux app installed. Make sure you have wireguard installed too. And set the used technology to Nordlynx by running nordvpn set technology nordlynx
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
| using UnityEngine; | |
| using UnityEditor; | |
| public class SaveRenderTextureToFile { | |
| [MenuItem("Assets/Save RenderTexture to file")] | |
| public static void SaveRTToFile() | |
| { | |
| RenderTexture rt = Selection.activeObject as RenderTexture; | |
| RenderTexture.active = rt; |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
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
| import requests | |
| from sys import argv | |
| from re import compile | |
| BASE = 'https://awbw.amarriner.com/viewtournament.php?tournaments_id=' | |
| r = requests.get(BASE + argv[1]) | |
| n = None | |
| elos = [] | |
| for line in r.text.split("\n"): |
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
| # Webhook URL: https://[your-hass-domain]/api/webhook/2qDFuSEBA7jU2sNjaK6JD5ac3FxnGfVTSF | |
| - id: webhook_debugger | |
| alias: "Webhook Debugger" | |
| trigger: | |
| - platform: webhook | |
| webhook_id: 2qDFuSEBA7jU2sNjaK6JD5ac3FxnGfVTSF | |
| action: | |
| - service: persistent_notification.create | |
| data_template: |
NewerOlder