Skip to content

Instantly share code, notes, and snippets.

View hitsmaxft's full-sized avatar
🎯
Focusing

hitsmaxft hitsmaxft

🎯
Focusing
View GitHub Profile
@hitsmaxft
hitsmaxft / usbipd-connect.ps1
Last active March 9, 2024 04:05
usbipd auto connect
#!/usr/bin/env powershell.exe
# example: .\usbipd-connect.ps1 04d9:8009
# require for powershell https://learn.microsoft.com/en-us/windows/sudo/
# auto gen by chatgpt4
param([string]$vid_pid)
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
[Console]::InputEncoding = [System.Text.Encoding]::UTF8
while ($true) {
{"name":"Mac.Vim","device":1,"model":5,"type":"layout","data":{"layer0":[41,30,31,32,33,34,35,36,37,38,39,45,46,42,43,20,26,8,21,23,28,24,12,18,19,47,48,49,224,4,22,7,9,10,11,13,14,15,51,52,40,225,29,27,6,25,5,17,16,54,55,56,229,224,226,227,44,231,193,192,53],"layer1":[53,58,59,60,61,62,63,64,65,66,67,68,69,0,0,0,82,0,0,74,0,0,82,0,75,74,77,0,0,80,42,76,0,0,80,81,81,79,75,78,0,0,0,0,0,0,77,78,0,0,73,76,0,0,0,0,0,0,193,192,0],"layer2":[0,200,201,202,203,0,0,0,0,241,240,244,243,0,0,0,82,0,0,74,0,0,82,0,75,74,77,0,0,80,42,76,0,0,80,81,82,79,75,78,0,0,0,0,0,0,77,78,0,0,73,76,0,0,0,0,0,0,193,192,0],"taps":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0,0,0,0,80,81,79]},"crc":"aded180a"}
@hitsmaxft
hitsmaxft / distfeeds.conf
Created March 10, 2020 15:38
ustc openwrt 19.07.1 opkg distfeeds.conf
src/gz openwrt_core http://mirrors.ustc.edu.cn/lede/releases/19.07.1/targets/brcm2708/bcm2710/packages
src/gz openwrt_kmods http://mirrors.ustc.edu.cn/lede/releases/19.07.1/targets/brcm2708/bcm2710/kmods/4.14.167-1-ae418ed2395263358bbe7536d318ae28
src/gz openwrt_base http://mirrors.ustc.edu.cn/lede/releases/19.07.1/packages/aarch64_cortex-a53/base
src/gz openwrt_luci http://mirrors.ustc.edu.cn/lede/releases/19.07.1/packages/aarch64_cortex-a53/luci
src/gz openwrt_packages http://mirrors.ustc.edu.cn/lede/releases/19.07.1/packages/aarch64_cortex-a53/packages
src/gz openwrt_routing http://mirrors.ustc.edu.cn/lede/releases/19.07.1/packages/aarch64_cortex-a53/routing
src/gz openwrt_telephony http://mirrors.ustc.edu.cn/lede/releases/19.07.1/packages/aarch64_cortex-a53/telephony
@hitsmaxft
hitsmaxft / basecontroller.php
Last active August 29, 2015 14:00
basecontroller.php
<?php
class BaseController extends Controller {
public function _initialize(){
$this->assign("user", "me");
}
}
phpinfo()
PHP Version => 5.4.26
System => Darwin HitsMacAir 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64
Build Date => Mar 11 2014 00:51:03
Configure Command => './configure' '--prefix=/usr/local/Cellar/php54/5.4.26' '--localstatedir=/usr/local/var' '--sysconfdir=/usr/local/etc/php/5.4' '--with-config-file-path=/usr/local/etc/php/5.4' '--with-config-file-scan-dir=/usr/local/etc/php/5.4/conf.d' '--with-iconv-dir=/usr' '--enable-dba' '--with-ndbm=/usr' '--enable-exif' '--enable-soap' '--enable-wddx' '--enable-ftp' '--enable-sockets' '--enable-zip' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-mbstring' '--enable-mbregex' '--enable-bcmath' '--enable-calendar' '--with-zlib=/usr/local/opt/zlib' '--with-ldap' '--with-ldap-sasl=/usr' '--with-xmlrpc' '--with-kerberos=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local/opt/freetype' '--with-jpeg-dir=/usr/local/opt/jpeg' '--with-png-dir=/usr
@hitsmaxft
hitsmaxft / zipdiff.sh
Last active December 20, 2015 09:40
zip文件对比
#!/bin/bash
CWD="$(pwd)"
if [[ -n "$1" ]]
then
MOD_PACK="$1"
shift
fi
@hitsmaxft
hitsmaxft / powercurl.py
Last active December 10, 2015 01:48
多参数url生成器
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import ConfigParser
import itertools
import urllib2
import urllib
#url配置文件
# Maintainer: hitsmaxft <mfthits at gmail dot com>
# PKGBUILD for yong IM (v1.5.0-4)
pkgname=yong-lin
pkgver=1.5.0
pkgrel=4
pkgdesc="A Chinese Input Method of X (not opensource, )."
arch=("i686")
depends=('gtk2>=2.8')
license=('other')