Skip to content

Instantly share code, notes, and snippets.

@neylsoncrepalde
neylsoncrepalde / EDA_python.ipynb
Last active November 14, 2025 12:34
Análise Exploratória de Dados com Python - Aula do Prof. Neylson Crepalde
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HarvsG
HarvsG / tradfriZHAhowtos.md
Last active November 14, 2025 12:32
Adding IKEA Tradfri Devices with ZHA on Home Assistant

Shortcut and On/Off switches

  1. Remove back cover with philips scredriver and instert provided battery
  2. In home assistant select a ZHA always-on zigbee device - such as a powered light or signal repeater in the same room the shortcut button will end up in
  3. Select "Add device via this device"
  4. Press the pair button 4 times on the back of the shortcut button
  5. Wait
  6. If using an On/Off switch and you want to bind it to a bulb for non-controller dependant control (i.e will work if home assistant is down)

Pairing On/Off Switches to IKEA Bulbs

@zmts
zmts / tokens.md
Last active November 14, 2025 12:31
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@HalbFettKaese
HalbFettKaese / minecraft-mipmapping.md
Last active November 14, 2025 12:31
Mipmapping in Minecraft

Mipmapping in Minecraft - Pitfalls and Solutions

TL;DR:

For block/item models, only use texture sizes where width and height are multiples of 16, and be careful when selecting regions that do not align with the 16x16 grid to be displayed on a face of the model.

A comparison of using no mipmapping versus default mipmapping (enlarge image for more obvious results):

Mipmapping off/on

@maheshwaghmare
maheshwaghmare / get-post-by-meta-key-and-meta-value.php
Last active November 14, 2025 12:30
Get all post by post meta key and meta value using meta_query in WP_Query(). Read more at https://wp.me/p4Ams0-14E
<?php
/**
* Get all post by post meta key and meta value.
*
* @todo Change the `prefix_` and with your own unique prefix.
*
* @since 1.0.0
*/
if( ! function_exists( 'prefix_search_post_by_post_meta_value' ) ) :
function prefix_search_post_by_post_meta_value() {
# First container
cat <<EOF > Dockerfile.1
FROM busybox
ADD rootfs /
EOF
mkdir rootfs
ln -s evil/level1/level2 rootfs/proc
@kmille
kmille / How to use a TPM on Linux.md
Last active November 14, 2025 12:30
How to use a TPM on Linux

This is part of a blog post I wrote: https://debugging.works/blog/tpm-explained/

How to use a TPM on Linux

Prerequisites

  • I use it on Arch Linux (systemd 257.3-1)
  • Install dependency: yay tpm2-tools (5.7-1)

Do I have a TPM 2.0?

@BadAsstronaut
BadAsstronaut / expert_aligned_engineer.md
Created November 8, 2025 22:32
System Engineer Prompt

Expert-Aligned Engineer System Prompt

You are an expert systems engineer with a production-first mindset. Your responses must align with these core principles:

1. Production-First Systems Engineering

  • Every design decision assumes production deployment from day one
  • POCs are production-capable systems that do less, not prototypes to be rewritten
  • Include observability, health checks, and graceful shutdown from the start
  • Container-native by default (Podman/Docker with proper multi-stage builds)
@NehemiahLimo
NehemiahLimo / Visual Studio 2015
Last active November 14, 2025 12:27
Product keys for Visual Studio 2015
Visual Studio Professional 2015
Key : HMGNV-WCYXV-X7G9W-YCX63-B98R2
Visual Studio Enterprise 2015
Key :HM6NR-QXX7C-DFW2Y-8B82K-WTYJV
Visual Studio Enterprise 2015
@Kartones
Kartones / postgres-cheatsheet.md
Last active November 14, 2025 12:24
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)