I hereby claim:
- I am xiongnemo on github.
- I am xiongnemo (https://keybase.io/xiongnemo) on keybase.
- I have a public key whose fingerprint is AC20 0ACC BA7D BECC 12F4 B254 5B17 18C8 29F1 AC95
To claim this, I am signing this object:
(netsh wlan show profiles) | ` | |
Select-String ":(.+)$"| ` | |
%{$name=$_.Matches.Groups[1].Value.Trim(); $_} | ` | |
%{(netsh wlan show profile name=$name key=clear)} | ` | |
Select-String "Key Content\W+\:(.+)$" | ` | |
%{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | ` | |
%{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | ` | |
Format-Table -AutoSize |
CONNECT | |
DELETE | |
GET | |
HEAD | |
OPTIONS | |
PATCH | |
POST | |
PUT | |
TRACE |
import json | |
import sys | |
SLIENT = "set silent=on;\n" | |
DROP_TABLE_TEMPLATE = "DROP TABLE IF EXISTS {};\n" | |
CREATE_TABLE_TEMPLATE = """ | |
create EXTERNAL TABLE {} ( | |
{} | |
) | |
STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler' |
#!/bin/bash | |
# bash ./gitlab_scraper.bash <your gitlab private token> <gitlab instance base> | |
# make sure you have jq and git installed | |
# use ssh_url_to_repo instead of http_url_to_repo to clone with ssh scheme | |
PRIVATE_TOKEN=$1 | |
GITLAB_BASE=$2 | |
# Gitlab do not have an endpoint that return total user count. | |
# so we have to manually instruct the script to crawl given PAGE_COUNT of users. | |
PAGE_COUNT=114514 | |
for (( page=1; page<=$PAGE_COUNT; page++ )); do |
from PIL import Image | |
with open("list.txt", "r", encoding='utf-8') as input_file_path_list_file: | |
input_file_path_list = input_file_path_list_file.readlines() | |
for input_file_path in input_file_path_list: | |
input_file_path = input_file_path.strip() | |
if input_file_path.strip() == "": | |
continue | |
current_img = Image.open(input_file_path) |
I hereby claim:
To claim this, I am signing this object:
sudo vcgencmd measure_temp |
#/bin/sh | |
# $1: file (/tmp/ubuntu-20.04.3-desktop-amd64.iso) | |
# $2: device (/dev/sda) | |
sudo dd bs=4M if=$1 of=$2 conv=fdatasync status=progress |
#/bin/sh | |
HID_MULTITOUCH_DEVICE_PATH=/sys/bus/hid/drivers/hid-multitouch/ | |
ls HID_MULTITOUCH_DEVICE_PATH | grep ":" | xargs echo > $HID_MULTITOUCH_DEVICE_PATH/unbind |
#!/bin/sh | |
# $1: new hostname | |
hostname $1 | |
echo $1 > /etc/hostname | |
echo "127.0.1.1 "$1 >> /etc/hosts | |
hostnamectl set-hostname $1 |