ipa is a shell function that will display the distilled informaiton from the ip a command.
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
| # Config for Intel WiFi6 AX201 | |
| ctrl_interface=/var/run/hostapd | |
| ctrl_interface_group=0 | |
| logger_syslog=-1 | |
| logger_syslog_level=2 | |
| logger_stdout=-1 | |
| logger_stdout_level=1 | |
| ssid=AwesomeWifi |
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
| from scapy.all import * | |
| from socket import * | |
| interface = "enp0s31f6" | |
| def mysend(pay,interface = interface): | |
| sendp(pay, iface = interface) | |
| def packet_callback(packet): |
** 由于此文年事已久,可能某些 URL Schemes 已失效,可在评论区留言指出!(最后更新于 2024.10.28)
由于苹果的各应用都是在沙盒中,不能够互相之间访问或共享数据。但是苹果还是给出了一个可以在 APP 之间跳转的方法:URL Scheme。简单的说,URL Scheme 就是一个可以让 APP 相互之间可以跳转的协议。每个 APP 的 URL Scheme 都是不一样的,如果存在一样的 URL Scheme,那么系统就会响应先安装那个 APP 的 URL Scheme,因为后安装的 APP 的 URL Scheme 被覆盖掉了,是不能被调用的。
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
| public class SmartI | |
| { | |
| private readonly Dictionary<int, Smart> _smartInfo = new Dictionary<int, Smart>(); | |
| public readonly HashSet<int> FutureReserchUnknownAttributes = new HashSet<int>(); | |
| private static bool Is64Bit => IntPtr.Size == 8; | |
| private static uint OffsetSize => Is64Bit ? 8u : 6u; | |
| public Dictionary<int, Smart> SmartInfo | |
| { | |
| get | |
| { |
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
| """ | |
| Displays WoW health and mana status on a Razer Chroma keyboard. | |
| Installation (Windows): | |
| $ virtualenv venv | |
| $ pip install requests | |
| $ easy_install pillow | |
| Usage: | |
| - Run WoW client fullscreen on main monitor |
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
| import smtplib | |
| from getpass import getpass | |
| def prompt(prompt): | |
| return input(prompt).strip() | |
| fromaddr = prompt("From: ") | |
| toaddrs = prompt("To: ").split() | |
| subject = prompt("Subject: ") | |
| print("Enter message, end with ^D (Unix) or ^Z (Windows):") |
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
| git config --global https.proxy http://127.0.0.1:1080 | |
| git config --global https.proxy https://127.0.0.1:1080 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy | |
| npm config delete proxy |
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
| AREA ARM, CODE, READONLY | |
| CODE32 | |
| PRESERVE8 | |
| EXPORT __sortc | |
| ; r0 = &arr[0] | |
| ; r1 = length | |
| __sortc |
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
| if (!process.env.http_proxy) return; | |
| var url = require('url'); | |
| var tunnel = require('tunnel'); | |
| var proxy = url.parse(process.env.http_proxy); | |
| var tunnelingAgent = tunnel.httpsOverHttp({ | |
| proxy: { | |
| host: proxy.hostname, | |
| port: proxy.port |
NewerOlder
