Skip to content

Instantly share code, notes, and snippets.

@laamalif
laamalif / keymap.c
Last active March 15, 2024 00:38
QMK Keychron K6 Pro
/* Copyright 2021 @ Keychron (https://www.keychron.com)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@laamalif
laamalif / keymap.c
Created March 13, 2024 18:36
QMK K6 Pro Keymap
/* Copyright 2021 @ Keychron (https://www.keychron.com)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@laamalif
laamalif / dnsq.zsh
Last active February 3, 2024 11:07
DNS over HTTPS is not what I thought
# https://www.petefreitag.com/blog/dns-over-https/
# https://news.ycombinator.com/item?id=39209062
dnsq() {
# Configuration
local CLOUDFLARE_URL="https://1.1.1.1/dns-query"
local GOOGLE_URL="https://8.8.8.8/resolve"
local QUAD9_URL="https://9.9.9.9:5053/dns-query"
local DEFAULT_DNS="cloudflare"
local DEFAULT_TYPE=("A")
@laamalif
laamalif / loader.conf
Created April 22, 2022 22:31
FreeBSD Tuning and Optimization
#
# Calomel.org -|- April 2021
#
# https://calomel.org/freebsd_network_tuning.html
#
# ZFS root boot config
#
zfs_load="YES"
vfs.root.mountfrom="zfs:zroot"
/*
Navicat Premium Data Transfer
Source Server : undeadly
Source Server Type : MySQL
Source Server Version : 50728
Source Host : 52.221.250.68:3306
Source Schema : ibteda
Target Server Type : MySQL
@laamalif
laamalif / nginx_dynamic_tls.patch
Created April 28, 2019 15:11
nginx_dynamic_tls_records_1.16.0
--- nginx-1.16.0/src/event/ngx_event_openssl.c 2019-04-23 17:12:58.000000000 +0400
+++ nginx-1.16.0_dyn_size/src/event/ngx_event_openssl.c 2019-04-28 17:04:49.448812950 +0400
@@ -1518,6 +1518,7 @@ ngx_ssl_create_connection(ngx_ssl_t *ssl
sc->buffer = ((flags & NGX_SSL_BUFFER) != 0);
sc->buffer_size = ssl->buffer_size;
+ sc->dyn_rec = ssl->dyn_rec;
sc->session_ctx = ssl->ctx;
This file has been truncated, but you can view the full file.
2e43d3975271a5774124a552a68817fa ./0001_-_Naqoosh_-_Ghalib_Number_-_1/000.jpg
45c3330f598bf2564eb9c20940bf7445 ./0001_-_Naqoosh_-_Ghalib_Number_-_1/001.jpg
f8bfcd370f1852838450278b51020fcd ./0001_-_Naqoosh_-_Ghalib_Number_-_1/002.jpg
130e9014fc15a252c879a60bb2c8659d ./0001_-_Naqoosh_-_Ghalib_Number_-_1/003.jpg
9c7393db2163c404d7df6abf56e6161d ./0001_-_Naqoosh_-_Ghalib_Number_-_1/004.jpg
7e9de1b0cf1d5d929057a81a0ae944e8 ./0001_-_Naqoosh_-_Ghalib_Number_-_1/005.jpg
286b1949e048306147dee499733b6611 ./0001_-_Naqoosh_-_Ghalib_Number_-_1/006.jpg
4bc81d8682cdbb8bb4a397257bb57331 ./0001_-_Naqoosh_-_Ghalib_Number_-_1/007.jpg
a9d03e17ffda190f23cdec7cfc52014e ./0001_-_Naqoosh_-_Ghalib_Number_-_1/008.jpg
e7822fb4af4f380de903ea8b2690fafa ./0001_-_Naqoosh_-_Ghalib_Number_-_1/009.jpg
@laamalif
laamalif / autowihte
Created November 8, 2017 14:54
auto white correction opencv
#!/usr/bin/env python
import cv2
import sys
import os
import numpy as np
sysArgLen = len(sys.argv)
if not (sysArgLen >= 2 and sysArgLen <= 3):
print "\tUsage: autow.py filename"
sys.exit()
@laamalif
laamalif / adaway.conf
Last active February 20, 2019 12:47
block ads/tracking with unbound
This file has been truncated, but you can view the full file.
local-zone: "tracking.klickthru.com" redirect
local-data: "tracking.klickthru.com A 0.0.0.0"
local-zone: "click.buzzcity.net" redirect
local-data: "click.buzzcity.net A 0.0.0.0"
local-zone: "ads.admoda.com" redirect
local-data: "ads.admoda.com A 0.0.0.0"
local-zone: "stats.pflexads.com" redirect
local-data: "stats.pflexads.com A 0.0.0.0"
local-zone: "a.glcdn.co" redirect
local-data: "a.glcdn.co A 0.0.0.0"

Keybase proof

I hereby claim:

  • I am laamalif on github.
  • I am laamalif (https://keybase.io/laamalif) on keybase.
  • I have a public key whose fingerprint is 86A1 15BE 3E82 3DAC 1797 3C70 0760 6C4A CC9D BB10

To claim this, I am signing this object: