Skip to content

Instantly share code, notes, and snippets.

View weiling103's full-sized avatar

Ling weiling103

View GitHub Profile
@jianyun8023
jianyun8023 / book-convert.sh
Created April 21, 2022 10:36
ebook convert base on eCore
#!/bin/bash
workdir=$(pwd)
filepath=$1
format=$2
outdir=$3
book_convert(){
filepath=$1
format=$2
tmp_dir="$HOME/Downloads/eCoreCmdtmp/$(uuidgen)"
mkdir -p $tmp_dir
@AlexW867
AlexW867 / rename_ios_devices.py
Last active December 16, 2020 08:08 — forked from timsutton/rename_ios_devices.py
Simple script to rename connected iOS devices according to a CSV file, using Apple Configurator 2's cfgutil command.
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Simple script to batch-rename attached iOS devices according to UUID to name mappings
# in a CSV file.
# Fork from https://gist.github.com/timsutton/3781d7483b7cdf0358eb86cf28b49e50
# Taiwan zh-Hant version by https://gist.github.com/AlexW867/d038a4e171185cd3fb30bf43ec6eab55
#
# for mac built-in python2.x
# 使用方式: python rename_ios_devices.py <csvfile>
@imba-tjd
imba-tjd / .Cloud.md
Last active October 26, 2025 00:59
☁️ 一些免费的云资源

  • IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装。PaaS提供语言环境和框架(可以自己选)。SaaS只能使用开发好的软件(卖软件本身,如税务会计、表格文字处理)。BaaS一般类似于非关系数据库,但各家不通用
  • 云服务的特点:零前期成本 & 按需付费 & 弹性(类似于租,可随时多加、退掉;但没有残值)、高可用(放在机房中,不同AZ间水电隔离)

其他人的集合

@AlexZ005
AlexZ005 / Hyper-V NAT for Windows Server 2016
Created October 8, 2018 21:37
Configuring NAT for Hyper-V Virtual Machines on Windows Server 2016
#1. Host machine
# Create new switch
New-VMSwitch -SwitchName NAT -SwitchType Internal
# Check current VM network adapters
Get-VMNetworkAdapter -VMName DC,FS
# Connect current adapters to created NAT switch
Connect-VMNetworkAdapter -VMName DC,FS -SwitchName NAT
# Add network adapters for both VM's with selected virtual switch
#Add-VMNetworkAdapter -VMName DC,FS -SwitchName NAT
@mutin-sa
mutin-sa / Top_Public_Time_Servers.md
Last active October 26, 2025 15:29
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@mutin-sa
mutin-sa / Top_Public_Recursive_Name_Servers.md
Last active October 20, 2025 18:24
List of Top Public Recursive Name Servers

DNS:

IPv4 Addr IPv6 Addr ASn Political Region Loc Svc Org
8.8.8.8 2001:4860:4860::8888 AS15169 US Worldwide (Anycast) Google Public DNS Google
8.8.4.4 2001:4860:4860::8844 AS15169 US Worldwide (Anycast) Google Public DNS Google
1.1.1.1 2606:4700:4700::1111 AS13335 US Worldwide (Anycast) Cloudflare-DNS Cloudflare/APNIC
1.0.0.1 2606:4700:4700::1001 AS13335 US Worldwide (Anycast) Cloudflare-DNS Cloudflare/APNIC
95.85.95.85 2a03:90c0:999d::1 AS199524 EU *W
var CryptoJS = require('crypto-js')
var request = require('request-promise')
/*
* npm install crypto-js request-promise request
* node wx_t1t_hack.js
*/
// export function testEncription(msg, fullKey) {
// var fullKey = fullKey.slice(0, 16)
@Bhavdip
Bhavdip / sketch-never-ending.md
Created October 6, 2016 15:53
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@kookxiang
kookxiang / hackQQ.sh
Last active March 18, 2025 18:30
一键得到一个精简版的手机QQ(Android)
#!/system/bin/sh
# 使用方法:
# adb shell "curl -Ssl https://gist.githubusercontent.com/kookxiang/1104e898f270c9a7a0784f70979ec532/raw/hackQQ.sh | su"
# 使用方法 (手动):
# 0.确保你手机 Root 了
# 1.下载这个脚本到某个地方
# 2.下载 Android SDK(需要其中的 adb)
# 3.在命令行运行 adb devices,确保能看到你的手机
@paaljoachim
paaljoachim / Ninja-Forms-CSS.css
Last active November 15, 2020 06:00
Showing Ninja Forms HTML code and a styled CSS form.
/* STYLING NINJA FORMS - add to your stylesheet and adjust */
/* The full form */
#ninja_forms_form_1_wrap {
background-color: #f89a16;
padding: 20px;
border: 2px solid #ccc;
border-radius: 8px;
box-shadow: 0px 3px 5px #444;