Skip to content

Instantly share code, notes, and snippets.

@nperovic
nperovic / Dark_MsgBox.ahk
Last active April 18, 2024 20:21
Apply dark theme to your built-in MsgBox.
#Requires AutoHotkey v2.1-alpha.9
; for v2.1.alpha.9 users
class RECT {
left : i32
top : i32
right : i32
bottom: i32
}
@dasdo
dasdo / GIT.md
Last active April 18, 2024 20:20
Lista de Comandos en GIT

Configuración Básica

Configurar Nombre que salen en los commits

	git config --global user.name "dasdo"

Configurar Email

	git config --global user.email dasdo1@gmail.com
@carlessanagustin
carlessanagustin / Nginx_Cheat_Sheet.md
Last active April 18, 2024 20:18
Nginx Cheat Sheet
@chrisvfritz
chrisvfritz / index.html
Created November 18, 2014 19:22
Simplest possible HTML template
<!doctype html>
<html>
<head>
<title>This is the title of the webpage!</title>
</head>
<body>
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p>
</body>
</html>
@the-spyke
the-spyke / pipewire.md
Last active April 18, 2024 20:17
Enable PipeWire on Ubuntu 22.04

Enable PipeWire on Ubuntu 22.04

This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA like pipewire-debian, you might get into conflicts.

Ubuntu 22.04 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use PipeWire for audio and Bluetooth instead of PulseAudio.

Starting from WirePlumber version 0.4.8 automatic Bluetooth profile switching (e.g. switching from A2DP to HSP/HFP when an application needs microphone access) is supported. Jammy (22.04) repos provide exactly version 0.4.8. So, we're good.

Based on Debian Wiki, but simplified for Ubuntu 22.04.

@alphamu
alphamu / Android Privacy Policy Template
Created February 9, 2017 03:17
A template for creating your own privacy policy for Android apps. Look for "[" and "<!--" to see where you need to edit this app in order to create your own privacy olicy.
<html>
<body>
<h2>Privacy Policy</h2>
<p>[Individual or Company Name] built the [App Name] app as a [open source | free | freemium | ad-supported | commercial] app. This SERVICE is provided by [Individual or company name] [at no cost] and is intended
for use as is.</p>
<p>This page is used to inform website visitors regarding [my|our] policies with the collection, use, and
disclosure of Personal Information if anyone decided to use [my|our] Service.</p>
<p>If you choose to use [my|our] Service, then you agree to the collection and use of information in
relation with this policy. The Personal Information that [I|we] collect are used for providing and
improving the Service. [I|We] will not use or share your information with anyone except as described
@mcxiaoke
mcxiaoke / miui-blotware-apps.md
Last active April 18, 2024 20:16
MIUI 13/14 bloatware apps, updated at 20240816

对于所有应用,不建议直接删除,使用adb shell pm disable-user package-name禁用即可,方便出问题时恢复。

DO NOT UNINSTALL:

  • com.miui.securitycenter
  • com.miui.securityadd
  • com.xiaomi.finddevice

(Don’t uninstall these three apps or services from your Xiaomi device. Otherwise, you may encounter device bricking or bootloop issues.)

<img src="https://img.shields.io/badge/-.ENV-ECD53F?style=flat&logo=dotenv&logoColor=white"/>
<img src="https://img.shields.io/badge/-.NET-512BD4?style=flat&logo=dotnet&logoColor=white"/>
<img src="https://img.shields.io/badge/-/e/-000000?style=flat&logo=e&logoColor=white"/>
<img src="https://img.shields.io/badge/-1001Tracklists-40AEF0?style=flat&logo=1001tracklists&logoColor=white"/>
<img src="https://img.shields.io/badge/-1Password-3B66BC?style=flat&logo=1password&logoColor=white"/>
<img src="https://img.shields.io/badge/-2K-DD0700?style=flat&logo=2k&logoColor=white"/>
<img src="https://img.shields.io/badge/-365 Data Science-000C1F?style=flat&logo=365datascience&logoColor=white"/>
<img src="https://img.shields.io/badge/-3M-FF0000?style=flat&logo=3m&logoColor=white"/>
<img src="https://img.shields.io/badge/-42-000000?style=flat&logo=42&logoColor=white"/>
<img src="https://img.shields.io/badge/-4chan-006600?style=flat&logo=4chan&logoColor=white"/>
@beginor
beginor / snowflake-id.sql
Last active April 18, 2024 20:13
Twitter Snowflake ID for PostgreSQL
CREATE SEQUENCE public.global_id_seq;
ALTER SEQUENCE public.global_id_seq OWNER TO postgres;
CREATE OR REPLACE FUNCTION public.id_generator()
RETURNS bigint
LANGUAGE 'plpgsql'
AS $BODY$
DECLARE
our_epoch bigint := 1314220021721;
seq_id bigint;
@boomshadow
boomshadow / dnsmasq.conf
Last active April 18, 2024 20:11 — forked from NAR8789/dnsmasq.conf
wildcard dns for docker-compose using dnsmasq
# explicitly define host-ip mappings
# dnsmasq entries are always wildcard entries, so this maps both myapp.local and *.myapp.local
address=/myapp.local/219.219.219.125
# set the upstream resolver for people running Linux; this allows all other DNS to be resolved:
server=1.1.1.1
server=1.0.0.1