- 安装Python 2,下载地址:Python 2.7.15,可自选安装32位或者64位版本
- 安装的时候,务必在安装选项中选择,Add python to PATH environment Win+R打开运行对话框,输入cmd启动命令行工具,输入python,确定系统的python可用再进入下一步
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
#! /bin/sh | |
#This worked for me in Ubuntu 16 and let me install an older version of gitlab: https://askubuntu.com/questions/824696/is-it-fine-to-remove-the-opt-gitlab-directory-manually-after-removing-the-gitl 213 | |
#Remove services | |
sudo gitlab-ctl uninstall | |
#Clean any data generated by usage of the package | |
sudo gitlab-ctl cleanse |
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
from Crypto.Cipher import AES | |
from Crypto.Util import Counter | |
import struct | |
""" | |
typedef struct boot_dat_hdr | |
{ | |
unsigned char ident[0x10]; | |
unsigned char sha2_s2[0x20]; | |
unsigned int s2_dst; |
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
# Setup egcon and pvid for K2P & K2 | |
switch vlan set 2 0000110 0 0 ----tt- | |
switch vlan set 1 1111101 0 0 uuuuu-u | |
switch pvid 4 1 | |
# Setup portmap for K2P | |
switch reg w 0x2004 0x005f0003 | |
switch reg w 0x2104 0x005f0003 | |
switch reg w 0x2204 0x005f0003 | |
switch reg w 0x2304 0x005f0003 |
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
#!/bin/bash | |
# CHANGE THESE | |
auth_email="[email protected]" | |
auth_key="xxxxxxxxxxxxxxxxxx" # found in cloudflare account settings | |
zone_name="xxxxxx" | |
record_name="xxxxxxxx" | |
# MAYBE CHANGE THESE | |
ip=$(curl -s http://ip.3322.org/) |