Skip to content

Instantly share code, notes, and snippets.

View ccloli's full-sized avatar
💩
Shitty shit shitting shits shittily

864907600cc ccloli

💩
Shitty shit shitting shits shittily
View GitHub Profile
@ccloli
ccloli / OculusLinkASW.ahk
Created April 21, 2024 17:19
A simple GUI script to turn off ASW, without pressing keyboard everytime.
#Requires AutoHotkey v2.0
actionTexts := Map()
actionTexts["1"] := "Disable ASW"
actionTexts["2"] := "Force 45 FPS without ASW"
actionTexts["3"] := "Force 45 FPS with ASW"
actionTexts["4"] := "Enable ASW Auto"
msg := ""
msgId := 0.0
title := "Oculus Link ASW Mode Switch"
@ccloli
ccloli / [AD] Quest Store $30 bonus for new Quest user.md
Last active January 10, 2024 14:39
[AD] Get $30 bonus for new Quest user

https://www.meta.com/referrals/link/quc14556

Get $30 bouns if you're new to Meta Quest. Use the link and accept the referral to create a new account. Once you use the new account to activate your new Quest device, you'll receive the bonus credits to your Meta Quest Store.
Meta Quest 新用户邀请,激活后可获赠 $30 美元。Meta Quest 新用户可使用上述邀请链接注册新用户,当你使用新账户激活你的新 Quest 设备时,将获得额外的 $30 商店余额。

Only new account or an account never accepted referrals before and have no actived devices can be applied. If you've already activated your Quest device in a day but haven't accept any referrals, you can remove the device from your account and factory reset your device, accept the referrals, then activate it again.
仅限新账户或从未接受过邀请且目前没有设备的账户。如果你在当天激活了新的 Quest 设备但没有接受过邀请,可在帐号内移除设备并出厂重置设备,然后接受邀请链接,再重新激活设备。

If you already have a primary account, consider register a new Meta account to accept the referral, then use multiple accounts feature to share the game library (but developer mode is only available for device's administrator account).

@ccloli
ccloli / ←_←.gif
Last active April 26, 2021 03:35
←_←
←_←.gif
cmake_minimum_required(VERSION 3.5)
project(animeloop-cli)
find_package(PkgConfig REQUIRED)
add_subdirectory(${PROJECT_SOURCE_DIR}/cxxopts)
include_directories(${PROJECT_SOURCE_DIR}/cxxopts/include)
include_directories(${PROJECT_SOURCE_DIR}/research)
@ccloli
ccloli / pmspi.py
Last active August 4, 2018 18:30 — forked from lackofdream/pmspi.py
Raspberry Pi and PMS5003
import serial
import datetime
import time
port = serial.Serial('/dev/ttyUSB0', baudrate=9600, timeout=2.0)
port.write(b'\x42\x4D\xE4\x00\x01\x01\x74')
def read_pm_line(_port):
rv = b''
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>图像直方图对比</title>
<style>
* {
box-sizing: border-box;
}
.box {
@ccloli
ccloli / deploy.php
Created April 15, 2017 16:02
PHP Git Deployment Script, deploy your repo with GitHub zipball
<?php
//error_reporting(E_ERROR);
set_time_limit(600);
$owner = '';
// repo owner
$repo = '';
// repo namespace
$token = '';
@ccloli
ccloli / GM_xhr_test.user.js
Created April 9, 2016 12:47
Get a large binary file as ArrayBuffer with GM_xhr
// ==UserScript==
// @name GM_xhr test
// @version 1.0
// @description Get a large binary file as ArrayBuffer with GM_xhr
// @include http://localhost
// @author 864907600cc
// @icon https://secure.gravatar.com/avatar/147834caf9ccb0a66b2505c753747867
// @grant GM_xmlhttpRequest
// @connect localhost
// @namespace http://ext.ccloli.com
@ccloli
ccloli / GM_download_polyfill.js
Last active February 21, 2021 14:26
GM_download polyfill, a polyfill to make your userscript supports GM_download
/*
* GM_download polyfill
*
* @description A polyfill to make your userscript supports GM_download
* @author ccloli
* @version 1.0
*/
// to use this polyfill, you must add "@grant GM_xmlhttpRequest" at userscript metadata block