Skip to content

Instantly share code, notes, and snippets.

View farhaduneci's full-sized avatar
🧠
AI-ing

Farhad Uneci farhaduneci

🧠
AI-ing
View GitHub Profile
@mirajehossain
mirajehossain / ubuntu-server-hardening.md
Last active April 12, 2026 11:56
ubuntu-server-hardening checklist

Ubuntu-Server-Hardening

1. Secure Shared Memory

What is shared memory?

Shared memory is an efficient means of passing data between programs. Because two or more processes can use the same memory space, it has been discovered that, since shared memory is, by default, mounted as read/write, the /run/shm space can be easily exploited. That translates to a weakened state of security.

If you’re unaware, shared memory can be used in an attack against a running service. Because of this, you’ll want to secure that portion of system memory.

@imomaliev
imomaliev / fields.py
Last active January 12, 2024 14:13 — forked from jpadilla/fields.py
CharacterSeparatedManyField - A Django REST framework field that separates a string with a given separator into a native list and reverts a list into a string separated with a given separator.
from rest_framework import serializers
from rest_framework.fields import empty
from rest_framework.utils import html
class CharacterSeparatedField(serializers.ListField):
"""
Character separated ListField.
Based on https://gist.github.com/jpadilla/8792723.
@cgons
cgons / mac-setup-for-python.md
Last active February 11, 2026 18:13
Python Dev Setup for (M1) Macs
@zzJinux
zzJinux / medium.user.js
Last active February 26, 2026 13:23 — forked from mathix420/medium.user.js
Bypass Medium Paywall fork: do not redirect for free posts
// ==UserScript==
// @name Medium Paywall Bypass
// @namespace Violentmonkey Scripts
// @run-at document-start
// @match *://*/*
// @grant none
// @version 2.4_6
// @updateURL https://gist.githubusercontent.com/zzJinux/364725e7c61810719286d94e88a4e38c/raw/medium.user.js
// @downloadURL https://gist.githubusercontent.com/zzJinux/364725e7c61810719286d94e88a4e38c/raw/medium.user.js
// @website https://freedium.cfd