Skip to content

Instantly share code, notes, and snippets.

View hexiyou's full-sized avatar

He Xiyou hexiyou

View GitHub Profile
@hexiyou
hexiyou / ms-office-dl-links
Created July 12, 2024 14:25 — forked from DartPower/ms-office-dl-links
MS Office Download Links
读书,先是从厚读到薄,然后是从薄读到厚;写代码也是一样一样的
不停coding,但又及时回顾、提炼,总结出一些规律和方法,再从这些规律和方法出发,指导后续的工作,这是一个「从厚到薄」的过程
针对其中的每个点,可以从容自得地、深入浅出地讲解、分享给其他人,可以解决一些深层次的问题,这个过程就是「从薄到厚」
正所谓「厚积薄发」,「厚积」容易,「薄发」难,最近这半年在支付宝的工作,自我感觉提升非常大,但是提升的内容仅仅只能抽象出一些要点,还做不到由点及面地开展,简单记录下,希望不久将来,可以「薄发」
架构层面
@hexiyou
hexiyou / powershell-net.ps1
Created March 1, 2023 15:59 — forked from angel-vladov/powershell-net.ps1
PowerShell function you can use for reading UTF8 encoded HTML pages content. The built in Invoke-WebRequest and Invoke-RestMethod fail miserably.
function Read-HtmlPage {
param ([Parameter(Mandatory=$true, Position=0, ValueFromPipeline=$true)][String] $Uri)
# Invoke-WebRequest and Invoke-RestMethod can't work properly with UTF-8 Response so we need to do things this way.
[Net.HttpWebRequest]$WebRequest = [Net.WebRequest]::Create($Uri)
[Net.HttpWebResponse]$WebResponse = $WebRequest.GetResponse()
$Reader = New-Object IO.StreamReader($WebResponse.GetResponseStream())
$Response = $Reader.ReadToEnd()
$Reader.Close()
@hexiyou
hexiyou / H2Command
Created December 20, 2022 05:16 — forked from johnnian/H2Command
H2命令行
## 命令行工具
H2数据库提供了一组命令行工具,如果你需要了解这些工具,使用参数`-?`,如:
java -cp h2*.jar org.h2.tools.Backup -?
命令行工具有:
* Backup 创建数据库备份
* ChangeFileEncryption 允许改变文件加密密码和数据库的加密算法
@hexiyou
hexiyou / ddos
Created December 8, 2022 18:22 — forked from ubear/ddos
#!/usr/bin/perl
####################################
# Design By Mistiq
#-[Zr Commands List]-
#-----[Hacking Based]-----
@hexiyou
hexiyou / host_ports.pl
Created December 8, 2022 13:41 — forked from mshock/host_ports.pl
Perl test host port connectivity
#! perl -w
# test ports 80 and 1433 on given IP
# HTTP and SQL
# for new NAT addresses
use strict;
use IO::Socket::PortState qw(check_ports);
my $timeout = 10;
@hexiyou
hexiyou / gitstats.sh
Created November 20, 2022 10:02 — forked from xeoncross/gitstats.sh
Git - calculate how many lines of code were added/changed by someone
# Run this in the project repo from the command-line
# http://stackoverflow.com/a/4593065/99923
git log --shortstat --author "Xeoncross" --since "2 weeks ago" --until "1 week ago" | grep "files changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "files changed", files, "lines inserted:", inserted, "lines deleted:", deleted}'
@hexiyou
hexiyou / cygwin.markdown
Created October 19, 2022 18:52 — forked from amomin/cygwin.markdown
Cygwin notes

Notes on making cygwin work

  • See this so answer using mkpasswd for one way to change your default home directory
  • You can always add packages after install by re-running setup.

Packages to add

  • wget (Web)
  • curl (PHP, Net)
  • ssh (Net)
@hexiyou
hexiyou / install.md
Created October 19, 2022 18:34 — forked from rotten77/install.md
LAMPP on Windows with Cygwin

LAMP on Windows with Cygwin

You can run your "LAMP" server on Windows with all benefits of Linux command line.

Cygwin packages:

Download Cygwin and run setup. Choose this packages:

Web/httpd

Libs/libapr1-devel

@hexiyou
hexiyou / gangao.dpl
Created September 28, 2022 16:57 — forked from liu246542/gangao.dpl
各种直播源
DAUMPLAYLIST
1*file*http://cloud-play.hhalloy.com/live/cf4d66edc142b2f0cc8c71bca56b2268.m3u8
1*title*中视新闻[HD]
2*file*http://cloud-play.hhalloy.com/live/a4aa25e01a432729323f4d0778605887.m3u8
2*title*DWTV
3*file*http://cloud-play.hhalloy.com/live/1aab6cf57296bdefc6f4bea94702782a.m3u8
3*title*新加坡亚洲新闻台
4*file*http://cloud-play.hhalloy.com/live/4677cf6625ce01b236bbb58f99094d51.m3u8
4*title*寰宇新闻[HD]
5*file*http://cloud-play.hhalloy.com/live/7c52797bf1ca2da52c212bdead1d607c.m3u8