Skip to content

Instantly share code, notes, and snippets.

View ahxxm's full-sized avatar
🚘
On The Road

ahxxm ahxxm

🚘
On The Road
View GitHub Profile
@slimsag
slimsag / ramblings.md
Last active December 13, 2023 08:02
Because cross-compiling binaries for Windows is easier than building natively

Because cross-compiling binaries for Windows is easier than building natively

I want Microsoft to do better, want Windows to be a decent development platform-and yet, I constantly see Microsoft playing the open source game: advertising how open-source and developer friendly they are - only to crush developers under the heel of the corporate behemoth's boot.

The people who work at Microsoft are amazing, kind, talented individuals. This is aimed at the company's leadership, who I feel has on many occassions crushed myself and other developers under. It's a plea for help.

The source of truth for the 'open source' C#, C++, Rust, and other Windows SDKs is proprietary

You probably haven't heard of it before, but if you've ever used win32 API bindings in C#, C++, Rust, or other languages, odds are they were generated from a repository called microsoft/win32metadata.

@merrickluo
merrickluo / bingwall
Created August 9, 2021 11:46
bash script to fetch bingwallpaper
#!/usr/bin/env bash
resolution=3840
api="https://bing.biturl.top/?resolution=$resolution"
store="$HOME/Pictures/Bing"
mkdir -p $store
img_url=`curl -s $api | jq -r .url`
img_name=${img_url##*=}
@rmoriz
rmoriz / desc.md
Last active October 25, 2023 12:21
WireGuard Key Generation (wg genkey)

wg genkey / pubkey

wg genkey
qJvFeHHuffBaPWx4veJGQqXw6j5zdo5cSOaBd1Z0Km4=


echo 'qJvFeHHuffBaPWx4veJGQqXw6j5zdo5cSOaBd1Z0Km4=' | wg pubkey
knL56pMLtyQVyZXOd9m2vEeOopPtbv4tMSU0ctBvGQo=
@MineBartekSA
MineBartekSA / catbox
Last active June 29, 2024 01:36
CatBox - An implementation of catbox.moe API in Bash
#!/bin/bash
#
# CatBox v2.0
# An implementation of catbox.moe API in Bash
# Author: MineBartekSA
# Gist: https://gist.github.com/MineBartekSA/1d42d6973ddafb82793fd49b4fb06591
# Change log: https://gist.github.com/MineBartekSA/1d42d6973ddafb82793fd49b4fb06591?permalink_comment_id=4596132#gistcomment-4596132
#
# MIT License
#
@shellexy
shellexy / ifw-inh-qqtim-services.xml
Created November 14, 2018 03:53
将这个文件放入 /data/system/ifw/ 即可抑制 qq、tim、淘宝、支付宝、美团、高德等国产 app 的多余后台服务 ,同时保持 tim 能收到消息
<rules>
<service block="true" log="false">
<component-filter name="tv.danmaku.bili/tv.danmaku.bili.update.UpdateService" />
<component-filter name="tv.danmaku.bili/com.xiaomi.push.service.XMPushService" />
<component-filter name="tv.danmaku.bili/com.xiaomi.mipush.sdk.PushMessageHandler" />
<component-filter name="tv.danmaku.bili/com.xiaomi.mipush.sdk.MessageHandleService" />
<component-filter name="tv.danmaku.bili/com.evernote.android.job.v14.PlatformAlarmService" />
<component-filter name="com.tencent.mobileqq/com.tencent.mobileqq.qipc.QIPCServiceEx" />
<component-filter name="com.tencent.mobileqq/com.tencent.pluginloader.proxy.DownloadProxyService" />
<component-filter name="com.tencent.mobileqq/com.tencent.proxyinner.plugin.loader.NowQTServiceProxy" />
@stathissideris
stathissideris / solver.clj
Created August 19, 2018 23:11
Sudoku solver clojure
(ns sat.core
(:require [rolling-stones.core :as sat :refer [!]]
[clojure.string :as str]))
(def rows 9)
(def cols 9)
(def values 9)
(defn possible-square-values
@zthxxx
zthxxx / install-EFB.sh
Last active July 21, 2020 04:58
install ehForwarderBot 2.0
apt install -y python3-pip libopus0 ffmpeg libmagic1
pip3 install setuptools ehforwarderbot efb-telegram-master efb-wechat-slave
EFB_DATA_PATH="${HOME}/.ehforwarderbot"
EFB_PROFILE="${EFB_DATA_PATH}/profiles/default"
mkdir -p ${EFB_PROFILE}/blueset.telegram
cat > ${EFB_PROFILE}/config.yaml <<-EOF
master_channel: blueset.telegram
slave_channels:
@kookxiang
kookxiang / hackQQ.sh
Last active June 19, 2024 12:01
一键得到一个精简版的手机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,确保能看到你的手机
@ppzvpp
ppzvpp / ppzvpp.asc
Created April 16, 2016 16:11
#TwitterFinished
```
pub 4096R/6F5C4672 2016-04-16
uid @ppzvpp (#TwitterFinished) <ppzvpp@twitter>
```
```
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQINBFcSRfsBEAC7BOjFsMEj8LZuuaE369eHQsGtoVNF2q/z1kZ7DX81fwInDhYZ
@rossant
rossant / benchmark.ipynb
Last active July 12, 2023 09:34
Quick HDF5 benchmark
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.