Skip to content

Instantly share code, notes, and snippets.

@wyrover
wyrover / client.go
Created January 24, 2019 07:20 — forked from spikebike/client.go
TLS server and client
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)
@wyrover
wyrover / golang-tls.md
Created January 24, 2019 07:19 — forked from 6174/golang-tls.md
Simple Golang HTTPS/TLS Examples
Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
    
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
openssl ecparam -genkey -name secp384r1 -out server.key
@wyrover
wyrover / INSTALL
Created March 11, 2017 10:48 — forked from arya-oss/INSTALL.md
Ubuntu 16.04 Developer Tools installation
###### development tools
sudo apt-get install build-essential python-dev git nodejs-legacy npm gnome-tweak-tool openjdk-8-jdk
### Python packages
sudo apt-get install python-pip python-virtualenv python-numpy python-matplotlib
### pip packages
pip install django flask django-widget-tweaks django-ckeditor beautifulsoup4 requests classifier SymPy ipython
;If you are experiencing some wierd behavior with the script (exp. doesn't pick the right abilities) = increase this value -> to 100 or higher
delay := 50
#Include %A_ScriptDir%\lib\diablo3_func.ahk
#Include %A_ScriptDir%\lib\diablo3_get_talentbuild.ahk
#NoEnv
#SingleInstance force
; ===============================================================================================================================
; Title .........: GPU_MEMORY_INFO
; AHK Version ...: 1.1.15.01 x64 Unicode
; Win Version ...: Windows 7 Professional x64 SP1
; Description ...: GPU_MEMORY_INFO
; NVIDIA Graphics Memory Size and Usage in OpenGL
; Version .......: v1.00
; Modified ......: 2014.06.27-2150
; Author(s) .....: jNIzM
; ===============================================================================================================================
#Persistent
Small := 32
Medium := 48
Large := 96
IconSize := Small
hDesktop := GetDesktop()
HalfW := A_ScreenWidth/2
/*
Makes the Gui window NoActivate but Clickable
Usage:
Gui_NoActivate(GuiHwnd, EnableEdit := False, Disable_RButton := False)
Parameters:
GuiHwnd - The Gui's hwnd
EnableEdit - True or False (default). Whether activates the GUI when an Edit Control is focused.
Disable_RButton - True or False (default)
;TVPath v1.1 based on wz520 v1.0 Patched by TSiNGKONG [tsingkong~gmail.com] 2015-05-15
; 1. 本文件使用 UTF-16le 编码保存
; 2. 兼容 Unicode 与 非Unicode TreeView
; 3. 兼容 AutoHotkeyA32, AutoHotkeyU32; 其他未测试
;
;TVPath v1.0 Written By wz520 [wingzero1040~gmail.com]
;
; 函数:TVPath_Get
; 说明:
; 读取任意 SysTreeView32 控件的选中项目的路径。格式如 Root\Parent\SelectedItem(分隔符可自定义)。
@wyrover
wyrover / BatMan.ahk
Last active August 29, 2015 14:21 — forked from tmplinshi/BatMan.ahk
; http://8bitdecals.com/wp-content/uploads/2012/06/pixel-superheroes.jpeg
#SingleInstance, Force
SetBatchLines -1
PixelData=
( LTrim Join|
FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|064463|F3FFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|C9FBFF|0A88C5|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF
FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|064464|F6FFFE|FEFEFE|FFFFFF|FFFFFF|FEFEFE|CDFDFF|0B89C6|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF
FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|044564|0D8CC9|E9FFFF|FEFEFD|FEFEFD|D9FEFF|0072A9|098BC5|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF
FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|064464|0A6793|016995|016995|016B98|036998|006EA6|0A89C7|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF|FFFFFF