echo %~dp0cd /d %~dp0| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| ; #Warn ; Enable warnings to assist with detecting common errors. | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| F12::ToggleTerminal() | |
| ShowAndPositionTerminal() | |
| { | |
| WinShow ahk_class CASCADIA_HOSTING_WINDOW_CLASS |
| diff --git a/pcap/pcap.go b/pcap/pcap.go | |
| index cfc8653..e54306b 100644 | |
| --- a/pcap/pcap.go | |
| +++ b/pcap/pcap.go | |
| @@ -8,10 +8,10 @@ | |
| package pcap | |
| /* | |
| -#cgo linux LDFLAGS: -lpcap | |
| +#cgo linux LDFLAGS: /usr/lib/x86_64-linux-gnu/libpcap.a |
| -- @desc: The fastest, type-agnostic way to copy a Redis key | |
| -- @usage: redis-cli --eval copy_key.lua <source> <dest> , [NX] | |
| local s = KEYS[1] | |
| local d = KEYS[2] | |
| if redis.call("EXISTS", d) == 1 then | |
| if type(ARGV[1]) == "string" and ARGV[1]:upper() == "NX" then | |
| return nil | |
| else |
| <!DOCTYPE html> <!-- 使用 HTML5 doctype,不区分大小写 --> | |
| <html lang="zh-cmn-Hans"> <!-- 更加标准的 lang 属性写法 http://zhi.hu/XyIa --> | |
| <head> | |
| <!-- 声明文档使用的字符编码 --> | |
| <meta charset='utf-8'> | |
| <!-- 优先使用 IE 最新版本和 Chrome --> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> | |
| <!-- 页面描述 --> | |
| <meta name="description" content="不超过150个字符"/> | |
| <!-- 页面关键词 --> |
| <?php | |
| $a = new A(); | |
| $reflection = new \ReflectionClass($a); | |
| $property = $reflection->getProperty('privateProperty'); | |
| $property->setAccessible(true); | |
| $property->setValue($a, 'new-value'); | |
| echo $a->getPrivateProperty(); | |
| //outputs: |
| #!/bin/bash | |
| # How to install Graphite as a user on CentOS 5.5 (with neither internet access and root account) | |
| # -------------------------------------------------------------------------------- | |
| # Tomasz Kalkosiński - refaktor.blogspot.com | |
| # | |
| # Graphite is a Scalable Realtime Graphing (http://graphite.wikidot.com/) | |
| # This script is based on two excellent tutorials: | |
| # http://community.webfaction.com/questions/10038/how-to-install-pycairo-in-python27-thanks |
| /* | |
| * email: [email protected] | |
| * update: 2013/3/9 | |
| */ | |
| ;常用快捷命令 | |
| :://cmd:: ;打开命令行 | |
| Run cmd | |
| return |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
| </head> | |
| <body> | |
| <!-- normally you wouldn't show this --> | |
| <div id="paste" contenteditable="true"></div> | |
| <script type="text/javascript"> |