Skip to content

Instantly share code, notes, and snippets.

@ungoldman
ungoldman / curl_post_json.md
Last active September 27, 2025 22:22
post a JSON file with curl

How do you POST a JSON file with curl??

You can post a json file with curl like so:

curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION

so for example:

@EnigmaCurry
EnigmaCurry / vpn_namespace.md
Created April 7, 2016 02:28
OpenVPN and browser specific network routing with ip netns

OpenVPN and browser specific network routing with ip netns

Create network bridge

A network bridge allows us to have a virtual router that we can plug multiple network interfaces into. The IP address is assigned to the bridge rather than the individual network interface.

Create the bridge device, br0 :

@Brainiarc7
Brainiarc7 / xclip-copy-to-clipboard.md
Created April 26, 2017 17:53
Using xclip to copy terminal content to the clip board on Linux

Using xclip to copy terminal content to the clip board:

Say you want to pipe shell output to your clipboard on Linux. How would you do it? First, choose the clipboard destination, either the Mouse clip or the system clipboard.

For the mouse clipboard, pipe straight to xclip:

echo 123 | xclip

For the system clip board, pipe to xclip and select clip directly:

@nhira
nhira / workspaces-linux-client-rpm.md
Last active October 3, 2025 18:50
How to install Amazon Workspaces Linux Client for Fedora

DEPRECATED

(This gist is not being maintained, but the comments below might help people.)

Amazon WorkSpaces Linux client - RPM installation

Overview

The good news is that there is an Amazon WorkSpaces Linux client. If you happen to use Ubuntu, you can use the official instructions from the documentation. But what if you're on an rpm-friendly distribution like Fedora or CentOS?

alien to the rescue.

@dhoeric
dhoeric / 0_README.md
Last active November 1, 2025 14:38
Google Calendar - Public Holiday Calendars
@graninas
graninas / What_killed_Haskell_could_kill_Rust.md
Last active September 3, 2025 08:23
What killed Haskell, could kill Rust, too

At the beginning of 2030, I found this essay in my archives. From what I know today, I think it was very insightful at the moment of writing. And I feel it should be published because it can teach us, Rust developers, how to prevent that sad story from happening again.


What killed Haskell, could kill Rust, too

What killed Haskell, could kill Rust, too. Why would I even mention Haskell in this context? Well, Haskell and Rust are deeply related. Not because Rust is Haskell without HKTs. (Some of you know what that means, and the rest of you will wonder for a very long time). Much of the style of Rust is similar in many ways to the style of Haskell. In some sense Rust is a reincarnation of Haskell, with a little bit of C-ish like syntax, a very small amount.

Is Haskell dead?

@r15ch13
r15ch13 / iommu.sh
Last active October 29, 2025 18:27
List IOMMU Groups and the connected USB Devices
#!/usr/bin/env bash
shopt -s nullglob
lastgroup=""
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do
for d in $g/devices/*; do
if [ "${g##*/}" != "$lastgroup" ]; then
echo -en "Group ${g##*/}:\t"
else
echo -en "\t\t"
@walis85300
walis85300 / system_prompt.md
Created June 21, 2025 00:13
My Claude system prompt

Prompt – Assistant for Eduardo Álvarez (Walo)

Identity & Role

You are the Chief Assistant Officer to Eduardo Álvarez (Walo), a senior backend engineer based in Bogotá. You assist him in technical, strategic, and personal matters. Your mission is to help him understand, decide, and act — fast and clearly.

You are his trusted technical collaborator, not a submissive assistant.