Skip to content

Instantly share code, notes, and snippets.

@vanjos
vanjos / get_memcache_keys.php
Created October 16, 2013 19:30
Get ALL keys from memcache using PHP
<?php
$server = "localhost";
$port = 11211;
/**
* Taken directly from memcache PECL source
*
* http://pecl.php.net/package/memcache
*
*/
@zhuziyi1989
zhuziyi1989 / URL Schemes.md
Last active December 25, 2024 05:56
常用 URL Schemes 收集。

** 由于此文年事已久,可能某些 URL Schemes 已失效,可在评论区留言指出!(最后更新于 2024.10.28)

关于 URL Scheme 你知道多少?

iOS 系统中

由于苹果的各应用都是在沙盒中,不能够互相之间访问或共享数据。但是苹果还是给出了一个可以在 APP 之间跳转的方法:URL Scheme。简单的说,URL Scheme 就是一个可以让 APP 相互之间可以跳转的协议。每个 APP 的 URL Scheme 都是不一样的,如果存在一样的 URL Scheme,那么系统就会响应先安装那个 APP 的 URL Scheme,因为后安装的 APP 的 URL Scheme 被覆盖掉了,是不能被调用的。

Android 系统中

@justinhartman
justinhartman / 01_nginx-reload-post-hook.sh
Last active December 25, 2024 05:56
Let's Encrypt Certbot post hook command for Nginx which checks the updated configuration files and reloads the server if everything validates.
#!/usr/bin/env bash
#
# Certbot Nginx Reload
#
# Let's Encrypt Certbot post hook command for Nginx which checks the updated
# configuration files and reloads the server if everything validates.
#
# Author : Justin Hartman <[email protected]>
# Version : 1.0.1
# License : MIT <https://opensource.org/licenses/MIT>
@drench
drench / ipod2json
Created July 22, 2011 04:18
reads the iTunesDB from an iPod and converts (most of it) to JSON
#!/usr/bin/env python
import gpod
import json
import sys
ipodpath = sys.argv[1]
itdb = gpod.itdb_parse(ipodpath, None)
@huazhanshen
huazhanshen / BT 磁力搜索引擎索引
Created May 30, 2018 05:39
BT 磁力搜索引擎索引
btkitty
知名的BT磁力搜索,资源很多
http://cnbtkitty.com/
备用域名:http://btkitty.fyi/
idope.se
资源丰富的BT磁力搜索,并且大多数速度下载速度很快
https://idope.se/
@mbinna
mbinna / effective_modern_cmake.md
Last active December 25, 2024 05:52
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@rrbutani
rrbutani / .macos-sandbox-notes
Last active December 25, 2024 05:48
macOS sandbox notes
(placeholder to set the gist name)
@gidoBOSSftw5731
gidoBOSSftw5731 / README.md
Last active December 25, 2024 05:47
Block annoying Youtube elements with ublock origin/adblock plus compatible filters

These are fairly experimental and may affect performance or stop working at any time. Feel free to comment if you have any better implementations, I tried to be both as specific as possible and follow reccomendation from the documentation, though I am just a guy.

The files are (at time of writing) are .ubo files (for UBlock Origin) though I dont believe this is an official file name.

All these were testing using AdNauseum, a skin of UBlock Origin.

Instructions on how to use these located here: https://www.ghacks.net/2014/10/10/how-to-add-custom-filters-to-chrome-ad-blocking-extension-%C2%B5block/ (the particular tab may be called "your filters" or "my filters")

I am not directly affiliated with UBlock Origin, AdBlock Plus, Youtube, nor their developers.

@liuran001
liuran001 / config.yaml
Last active December 25, 2024 05:36
mihomo (Clash Meta) 懒人配置
# mihomo (Clash Meta) 懒人配置
# 版本 V1.15-241205
# https://gist.github.com/liuran001/5ca84f7def53c70b554d3f765ff86a33
# https://obdo.cc/meta
# 作者: 笨蛋ovo (bdovo.cc)
# Telegram: https://t.me/baka_not_baka
# 关注我的 Telegram 频道谢谢喵 https://t.me/s/BDovo_Channel
# 修改自官方示例规则 https://wiki.metacubex.one/example/#meta
# 转载请保留此注释
# 尽量添加了较为详尽的注释,不理解的地方建议对照 虚空终端 (Clash Meta) Docs 进行理解
@sanderd
sanderd / spreadingactivation.adoc
Created September 26, 2016 10:13 — forked from gerbrand/spreadingactivation.adoc
Demonstration spreading activation in Neo4j

Spreading activation in Neo4j

Introduction

How does the human brain work? How do thoughts pop up in our conscience? Just thinking about the question is confusion enough. Maybe our brain works as a semantic network as explained by Carole Yue at Kahn Academy.
Try for yourself: think of a bird? You probably think a sparrow, duck. Think of an extinct animal? Now you might think of the dodo, mammoth or dinosaur. Animal living on the south pole: a penguin? Or polar bear?

Facts, ideas, memories in our brain are interconnected. They’re not structured into tables like in relational databases or hierarchical in directories on a harddrive: if I’d ask you to name all the birds you know, you won’t give me a long list immediately. A better model of human m