Skip to content

Instantly share code, notes, and snippets.

04e52025e9f0dd4b104a38d66650dd7079470bd1f700c1269c4ab70eb7cc486ad8dfc637b7c1fa580bd73aa026b219932f209765c7c2def9e7161efdcfb5b52b16;sun1534
@Umiiii
Umiiii / 1
Created March 14, 2018 02:42
1
function Send-WOL
{
<#
.SYNOPSIS
Send a WOL packet to a broadcast address
.PARAMETER mac
The MAC address of the device that need to wake up
.PARAMETER ip
The IP address where the WOL packet will be sent to
.EXAMPLE
@Umiiii
Umiiii / mimidogz.ps1
Created December 1, 2018 08:38
Mimidogz
This file has been truncated, but you can view the full file.
function Invoke-Mimidogz
{
[CmdletBinding(DefaultParameterSetName="DumpCred")]
Param(
[Parameter(Position = 0)]
[String[]]
$ComputerName,
@Umiiii
Umiiii / keybase.md
Last active September 11, 2019 09:16

Keybase proof

I hereby claim:

  • I am umiiii on github.
  • I am geniusumi (https://keybase.io/geniusumi) on keybase.
  • I have a public key ASBWunPDXk8fHlXCJwUv7zvUgdV-TCUao7GUez2tUw1YpQo

To claim this, I am signing this object:

@Umiiii
Umiiii / (English)Claw and Hoarder_ Special Ricktim's Morty - YouTube.srt
Created December 9, 2019 08:31
Rick and Morty subtitles Season 4 Episode 4
1
00:00:04,170 --> 00:00:05,605
Rick, we did it!
We -- We got it!
2
00:00:05,605 --> 00:00:07,306
Hurry up, Morty.
Get in!
@Umiiii
Umiiii / resizeToFit.sh
Last active February 13, 2020 13:27
Resize the png file within the same directory into three different size that fit the iOS universal imageset
writeToJson(){
rm $1.imageset/Contents.json
echo "{
\"images\" : [
{
\"idiom\" : \"universal\",
\"filename\" : \"[email protected]\",
\"scale\" : \"1x\"
},
{
wget http://download.oracle.com/berkeley-db/db-4.8.30.zip
unzip db-4.8.30.zip
cd db-4.8.30
sed -i 's/__atomic_compare_exchange/__atomic_compare_exchange_db/g' dbinc/atomic.h
cd build_unix/
../dist/configure --prefix=/usr/local --enable-cxx
make
sudo make install
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
sudo apt-get install libboost-all-dev libzmq3-dev libminiupnpc-dev -y
git clone https://github.com/lightningnetwork/lnd.git
cd lnd
make install tags="signrpc walletrpc chainrpc invoicesrpc"
git clone --recurse-submodules https://github.com/lightninglabs/taproot-assets.git
cd taproot-assets
make install
// ==UserScript==
// @id mynovelreader@[email protected]
// @name My Novel Reader
// @name:zh-CN 小说阅读脚本
// @name:zh-TW 小說閱讀腳本
// @version 6.4.3
// @namespace https://github.com/ywzhaiqi
// @author ywzhaiqi
// @contributor Roger Au, shyangs, JixunMoe、akiba9527 及其他网友
// @description 小说阅读脚本,统一阅读样式,内容去广告、修正拼音字、段落整理,自动下一页
@Umiiii
Umiiii / go.sh
Last active August 29, 2023 08:11
#!/bin/bash
cd /root/
apt-get install unzip -y
apt-get install nano -y
wget https://github.com/h9-dev/spacemesh-miner/releases/download/v1.3.0/H9-Miner-spacemesh-v1.3.0-2-linux.zip
unzip H9-Miner-spacemesh-v1.3.0-2-linux.zip && rm -rf /root/linux/config.yaml
sudo -v ; curl https://rclone.org/install.sh | sudo bash
echo '''
path: