Skip to content

Instantly share code, notes, and snippets.

@jrelo
jrelo / gcc-security.txt
Last active November 14, 2024 06:54
GCC security related flags reference.
Source material:
http://security.stackexchange.com/questions/24444/what-is-the-most-hardened-set-of-options-for-gcc-compiling-c-c
https://wiki.gentoo.org/wiki/Hardened_Gentoo
https://wiki.debian.org/Hardening
================================================================================================================>
GCC Security related flags and options:
CFLAGS="-fPIE -fstack-protector-all -D_FORTIFY_SOURCE=2"
LDFLAGS="-Wl,-z,now -Wl,-z,relro"
@vincentkoc
vincentkoc / 00_Readme.md
Last active November 14, 2024 06:53
UQ Agentic Workflow Masterclass Resources

UQ Agentic Workflow Masterclass

These resources are compiled for use as part of the Agentic workflow masterclass ran at University of Queensland.

@DarkStoorM
DarkStoorM / twitch_skip_redemption_window.md
Last active November 14, 2024 06:52
Twitch spam redemptions

Spam channel points rewards by skipping the redemption window without Twitch API

  • open Devtools -> Network
  • filter requests by gql.twitch

a

  • clear requests list and redeem a channel points reward
  • right click the request and copy as fetch
@repeatedly
repeatedly / d_master.md
Last active November 14, 2024 06:49
D言語基礎文法最速マスター

他の言語をある程度知っている人はこれを読めばD言語の基礎をマスターでき,D言語の氷山の一角くらいは知ることができると思います.対象バージョンはdmd 2.059です.

1. 基礎

ソースファイル

ASCIIかUTFしか受け付けません.それ以外の文字コードで書くとコンパイルエラーになります.

main

D言語のmainはCとは違い以下のようなシグネチャです.

0x00 0 STOP
0x01 3 ADD
0x02 5 MUL
0x03 3 SUB
0x04 5 DIV
0x05 5 SDIV
0x06 5 MOD
0x07 5 SMOD
0x08 8 ADDMOD
0x09 8 MULMOD
@zhuziyi1989
zhuziyi1989 / URL Schemes.md
Last active November 14, 2024 06:45
常用 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 系统中

@sweethuman
sweethuman / UsefulMaterials.md
Last active November 14, 2024 06:40
Useful materials to checkout. In case you want to learn more.

Useful Articles, Videos and Tools

You can check them out if you want to learn more. Some are theoretical, some are more practical. You can look through them.

YouTube

Channels

IAmTimCorey (C# mostly)
Christopher Okhravi (General videos, about programming concepts, ideas and rules)

@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active November 14, 2024 06:39
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@tdreyno
tdreyno / airports.json
Created December 13, 2012 18:50
JSON data for airports and their locations
This file has been truncated, but you can view the full file.
[
{
"code": "AAA",
"lat": "-17.3595",
"lon": "-145.494",
"name": "Anaa Airport",
"city": "Anaa",
"state": "Tuamotu-Gambier",
"country": "French Polynesia",
@ruvnet
ruvnet / Prediciton.md
Last active November 14, 2024 06:37
A prediction framework & prompt uses a "future retrospective" approach where predictions are framed as historical analysis from a future date. This method has proven particularly effective for economic indicators, market trends, and event outcomes when combined with rigorous backtesting and statistical validation

Predictive Narrative Framework & Prompt

This framework leverages research from Baylor University showing that language models achieve significantly higher accuracy when making predictions through narrative storytelling rather than direct forecasting.

Research

How to structure prompts using the narrative approach that proved more successful than direct prediction:

Direct Prompt (Less Effective)