Skip to content

Instantly share code, notes, and snippets.

@MinaMikhailcom
MinaMikhailcom / gist:0825906230cbbe478faf4d08abe9d11a
Created September 10, 2017 20:14
Fix for "couldn't run /usr/bin/dumpcap in child process: permission denied"
sudo dpkg-reconfigure wireshark-common #Select "Yes"
chmod +x /usr/bin/dumpcap
@jbfriedrich
jbfriedrich / nsmb.conf
Last active March 28, 2026 18:52
macOS 11.2 NSMB configuration
# /etc/nsmb.conf - macOS 11.3 - 2021-04-29
#------------------------------------------------------------------------------
# SMB configuration for macOS 11.3 <-> Synology
#------------------------------------------------------------------------------
# Additional information:
# -----------------------
# https://support.apple.com/de-de/HT211927
# https://support.apple.com/en-us/HT208209
# https://apple.stackexchange.com/questions/309016/smb-share-deadlocks-since-high-sierra
# https://photographylife.com/afp-vs-nfs-vs-smb-performance
@yetanotherchris
yetanotherchris / appsettings.json
Last active March 28, 2026 18:51
.NET Core Examples: configuration binding and appsetting.json
{
"Smtp": {
"Host": "smtp.gmail.com",
"Port": 587,
"UseSSL": true,
"Username": "bob",
"Password": "password",
}
}
@mberman84
mberman84 / PRD.md
Created February 17, 2026 19:59
OpenClaw PRD

PRD.md - Product Requirements & Feature Inventory

Everything built on top of the base OpenClaw platform. Canonical reference for what exists, where it lives, and how it works. Operational use cases and workflow playbooks live in docs/USE-CASES-WORKFLOWS.md.


Table of Contents

  1. Operational Use Cases & Workflows
@pgajek2
pgajek2 / flsSharing.cls
Last active March 28, 2026 18:46
FLS + Sharing in Apex SOQL
/**
* Tests covering all FLS, OLS, and Sharing Mode combinations from the SOQL security matrix:
*
* SOQL Keyword | Class Sharing | OLS+FLS | Sharing Mode
* -----------------------|-------------------|---------|-------------
* WITH USER_MODE | with sharing | ✅ | ✅
* WITH USER_MODE | inherited sharing | ✅ | ✅
* WITH USER_MODE | without sharing | ✅ | ✅
* WITH SYSTEM_MODE | with sharing | ❌ | ✅
* WITH SYSTEM_MODE | inherited sharing | ❌ | 🔄
@mportesdev
mportesdev / python_source_import.rst
Last active March 28, 2026 18:44
Importing Python source code from a script without the .py extension

Importing Python source code from a script without the .py extension

Generally, to import a python module programatically when you know the file's path, you could do something like this:

import importlib.util
import sys
@ih2502mk
ih2502mk / list.md
Last active March 28, 2026 18:43
Quantopian Lectures Saved
@amake
amake / innosetup-linux-macos.org
Last active March 28, 2026 18:41
Inno Setup on Linux and macOS

Inno Setup on Linux and macOS

Inno Setup is a popular installer builder for Windows. Of course it is made to run on Windows only, by default. But what if you want to build Windows installers off Windows, i.e. on Linux or macOS?

You’re in luck: It’s possible to run Inno Setup anywhere that Docker runs (including Linux and macOS), and even have a passable experience writing your setup script.

@shanbhardwaj
shanbhardwaj / build-emacs.sh
Last active March 28, 2026 18:41
Build emacs on ubuntu
# Setting up Emacs in our source directory
mkdir -p ~/src && cd ~/src
git clone --depth 1 --branch emacs-30 git://git.savannah.gnu.org/emacs.git
git checkout emacs-30
# Enable development libraries and update apt cache
# for Ubuntu >= 24.04
sudo sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources && apt update
@emschwartz
emschwartz / README.md
Last active March 28, 2026 18:38
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.