Skip to content

Instantly share code, notes, and snippets.

@mkocikowski
mkocikowski / gist:aeca878d58d313e902bb
Last active May 8, 2024 14:52
Setting up Redis to run as a daemon under systemd

This can be used to daemonize anything that would normally run in the foreground; I picked Redis. Put this in /etc/systemd/system/redis.service:

[Unit]
Description=Redis
After=syslog.target

[Service]
ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf
RestartSec=5s
@maxwellmlin
maxwellmlin / LPX-Trial-Reset.sh
Created April 14, 2021 03:46
Logic Pro X Trial Reset
mv -v ~/Library/Application\ Support/.lpxuserdata ~/.Trash
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active May 8, 2024 14:51
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
@voluntadpear
voluntadpear / remote-work-py.md
Last active May 8, 2024 14:49
Trabajo remoto desde Paraguay
def check_missing_data(df):
# Check for missing values
proportion_null_rows = 100*(round(df.isnull().any(axis=1).sum()/df.any(axis=1).count(),2))
if proportion_null_rows <= 5:
print(f"There are {df.isnull().any(axis=1).sum()} rows with a null value. All of them are erased!")
df.dropna()
else:
print("Too many null values, we need to check columns by columns further.")
if df.isnull().sum().sum() > 0:
print("\nProportion of missing values by column")
@wumb0
wumb0 / delta_patch.py
Last active May 8, 2024 14:43
a script for applying MS patch deltas
from ctypes import (windll, wintypes, c_uint64, cast, POINTER, Union, c_ubyte,
LittleEndianStructure, byref, c_size_t)
import zlib
# types and flags
DELTA_FLAG_TYPE = c_uint64
DELTA_FLAG_NONE = 0x00000000
DELTA_APPLY_FLAG_ALLOW_PA19 = 0x00000001
@kikugie
kikugie / stdtools.md
Last active May 8, 2024 14:43
Storagetech mod tools
@xbdmHQ
xbdmHQ / Custom Windows 10 & Windows 11 Privacy Tweaked OS.md
Last active May 8, 2024 14:39
Best Custom Windows 10 & Windows 11 Privacy Tweaked OS

Best-Custom-Windows-10-11-Privacy-Tweaked-OS

A look into the best custom windows 10 and 11 privacy tweaked os for limiting the spying invasive by microsoft.

Revision (Open Source / Recommended)

Revision - a global community dedicated to free information and collaboration. They value cultural diversity and embrace open source principles. Every mind is unique and every contribution is valued.

ReviOS is a customized version of Windows with improved performance, stability, and compatibility. It aspires to re-create what Windows as an operating system should have been - easy and simple.

With the main audience being gamers, power-users and enthusiasts, we understand that performance, speed and low latency is obligatory, which is why great effort has been invested into making ReviOS a capable, efficient yet private operating system.

@heroheman
heroheman / ranger-cheatsheet.md
Last active May 8, 2024 14:38
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@dideler
dideler / bootstrapping.md
Last active May 8, 2024 14:38
Bootstrapping - a list of useful resources to get up and running quickly

Welcome!

UPDATE: This list is no longer maintained. I've moved it to its own repo so you can send suggestions as Pull Requests. https://github.com/dideler/bootstrapping/

For feedback or suggestions, please send a tweet (@dideler). Gist comments don't notify me. Pull requests aren't possible with gists (yet), so I don't recommend forking because then I can't easily get the change.

Starring this gist will give me an idea of how many people consider this list useful.