Skip to content

Instantly share code, notes, and snippets.

View cham11ng's full-sized avatar
🎯
Focusing

Sagar Chamling cham11ng

🎯
Focusing
View GitHub Profile
@cham11ng
cham11ng / configure_authorized_keys.md
Last active November 27, 2019 04:36
Setup SSH in Github

This is what got me working. Staring at C:\ProgramData\ssh\sshd_config I noticed this line was commented!!!

#PubkeyAuthentication yes

No idea how that happened; my box was pre-imaged. I uncommented that, plus ensured that these two lines in the config file were commented out:

#Match Group administrators
#      AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
@cham11ng
cham11ng / locks.md
Last active April 27, 2020 08:50
SQL Locks Research

Some findings:

  • Exclusive lock (X) This lock type, when imposed, will ensure that a page or row will be reserved exclusively for the transaction that imposed the exclusive lock, as long as the transaction holds the lock. (imposed by DML Statments)

DBMS products use a locking mechanism to control access and modifications while ensuring data integrity.

  1. SQL Table hints
""" Logging utility module. """
import logging
# import logstash
from logstash_async.handler import AsynchronousLogstashHandler
from elasticecslogging.handlers import ElasticECSHandler
from laudio import config