Skip to content

Instantly share code, notes, and snippets.

View edxi's full-sized avatar

Xi ErDe edxi

View GitHub Profile
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<boolean name="trusted_wifi" value="false" />
<string name="warp_token">20f03c15-2e18-405f-bd49-3c67db13f220</string>
<long name="paused_start" value="1713697236184" />
<boolean name="vpn_profile_installed" value="true" />
<string name="user_included_routes">{&quot;includedRouteInfoList&quot;:[]}</string>
<string name="terms_acceptance_date">2024-04-21T18:53:13.013+08:00</string>
<boolean name="switch_locked" value="false" />
<string name="warp_private_key">c/C9hiz9m3pfEkmk&#10;]YCFiciCX/uk5juEX0+c0gXt0hEMgLjTvzgxei5QuMB+u9AfvxsXVlVNkrJdAIZIsxMrXuuNsqqz7&#10;1bK8&#10; </string>
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# -- navigation ----------------------------------------------------------------
# if you're running tmux within iTerm2
# - and tmux is 1.9 or 1.9a
@edxi
edxi / shadowsocksInstance.json
Created August 23, 2018 07:30
cloudformation template to create shadowsocks ec2 instance
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Template ShadowSocks_Single_Instance: Create a ShadowSocks server using a single EC2 instance.",
"Parameters" : {
"KeyName": {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type": "AWS::EC2::KeyPair::KeyName",
@edxi
edxi / Compare-Hashtable.ps1
Last active November 30, 2021 09:20
Compare-Hashtable
function Compare-Hashtable {
<#
.SYNOPSIS
Compare two Hashtable and returns an array of differences.
.DESCRIPTION
The Compare-Hashtable function computes differences between two Hashtables. Results are returned as
an array of objects with the properties: "key" (the name of the key that caused a difference),
"side" (one of "<=", "!=" or "=>"), "lvalue" an "rvalue" (resp. the left and right value
associated with the key).
@edxi
edxi / example.csv
Created January 17, 2018 00:54
batch create vm based on a predefined .csv file
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 28 columns, instead of 2 in line 4.
vcenter,name,server role,template,template folder,oscust,VMHost,folder,cpu,mem,disk1,disk1 datastore,disk1 mode,disk2,disk2 datastore,disk2 mode,nic1,ip1,mask1,gw,dns1,dns2,dns3,nic2,ip2,mask2,guest script1,guest script2
10.225.146.28,testwin2k12-2,在DR VCENTER上的测试,GoldImageW2K12_WithoutGPO,Template,Win,cnsd21esmif001b.dir.saicgmac.com,TEST,2,8,150,VCStestOS,Thin,,,,50,10.225.50.188,255.255.255.0,10.225.50.1,10.225.50.10,10.224.50.10,,,,,,
10.224.146.29,testwin2k12,"test win2k12 with 2 different disk
and with 2 nic",GoldImageW2K12_WithoutGPO,Template,Win2k12,cnsd11espif003b.dir.saicgmac.com,TEST,4,4,111,VCStestOS,Thick,1,VCStestData,EagerZeroedThick,50,10.224.50.188,255.255.255.0,10.224.50.1,10.224.50.10,10.224.50.11,10.225.50.10,30,10.224.30.188,255.255.255.0,win_setIP,win_joinAD
10.224.146.29,testwin2k8,test win2k8,Win2K8_R2_GoldImage,Puming,win2k8,cnshasexcpx001.dir.saicgmac.com,TEST,4,8,100,local-hba2(10.196.33.69),Thin,,,,0,10.196.33.188,255.255.252.0,10.196.32.1,10.224.50.1,,,,,,win_setIP,
10.224.146.29,