Skip to content

Instantly share code, notes, and snippets.

BOOKS:

  • The Secret Life of Programs: Understand Computers -- Craft Better Code [Steinhart, Jonathan E.]
  • Computer Systems: A Programmer's Perspective, 3 Edition [Randal E. Bryant, David R. O'Hallaron]
  • Code: The Hidden Language of Computer Hardware and Software [Petzold, Charles]
  • How Computers Really Work: A Hands-On Guide to the Inner Workings of the Machine [Justice, Matthew]
  • How the Internet Really Works: An Illustrated Guide to Protocols, Privacy, Censorship, and Governance [Article 19, Knodel, Mallory, Uhlig, Ulrike, ten Oever, Niels, Cath, Corinne]
  • How Software Works: The Magic Behind Encryption, CGI, Search Engines, and Other Everyday Technologies [Spraul, V. Anton]
  • The Secret Life of Programs: Understand Computers -- Craft Better Code [Steinhart, Jonathan E.]
  • How Cybersecurity Really Works: A Hands-On Guide for Total Beginners [Grubb, Sam]
@itsrick07
itsrick07 / 2birthday.html
Last active February 11, 2025 17:26
Happy Birthday Tamanna
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
#!/bin/bash
# README: A more updated version is on the comments by (ashmna)[https://gist.github.com/ashmna]
# See at: https://gist.github.com/allangarcia/938b052a7d55d1652052e4259364260b?permalink_comment_id=4265898#gistcomment-4265898
# this is for tools required
brew update
brew install ninja
brew install cmake
@scottt732
scottt732 / partial.tf
Created February 11, 2025 17:23
argoproj/argo-cd!17064 terraform
#
# ArgoCD Config - Clusters
#
resource "kubernetes_manifest" "clusters" {
for_each = {
for k, v in var.argo_managed_clusters : k => v if var.env_code == "mgmt"
}
manifest = {
"apiVersion" = "v1"
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created February 11, 2025 17:23
gh-api-cli v4.0.2 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-2270195762-3335344054-2709297393-1000</user>
<keys>
<key installerType="Msi" displayName="gh-api-cli" displayVersion="4.0.2">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{12B2F28F-DCF9-4518-BAB5-7CA5BD91357A}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /I{12B2F28F-DCF9-4518-BAB5-7CA5BD91357A}]]></UninstallString>
@ryanhossain9797
ryanhossain9797 / windows_activation.md
Created February 11, 2025 17:23 — forked from bramada/windows_activation.md
Activate Windows for free

For Windows 10

Step 1 - Open PowerShell or Command Prompt as administrator

Step 2 - Install KMS client key

slmgr /ipk your_license_key

Replace your_license_key with following volumn license keys according to Windows Edition:

gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
sobel = cv2.Sobel(gray_image, ddepth=cv2.CV_64F, dx=1, dy=1, ksize=3)
sobel_gray = cv2.Sobel(image, ddepth=cv2.CV_64F, dx=1, dy=1, ksize=3)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/access/Ownable.sol";
interface IGitcoinPassport {
function getScore(address account) external view returns (uint256);
}
contract Factory is Ownable {
{"abi":[{"type":"constructor","inputs":[{"name":"_name","type":"string","internalType":"string"},{"name":"_description","type":"string","internalType":"string"},{"name":"_ipfsHash","type":"string","internalType":"string"},{"name":"_tokensPerUser","type":"uint256","internalType":"uint256"},{"name":"_tokensPerVerifiedUser","type":"uint256","internalType":"uint256"},{"name":"_minScoreToJoin","type":"uint256","internalType":"uint256"},{"name":"_minScoreToVerify","type":"uint256","internalType":"uint256"},{"name":"_endTime","type":"uint256","internalType":"uint256"},{"name":"_passportScorer","type":"address","internalType":"address"},{"name":"_admin","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"type":"function","name":"castVote","inputs":[{"name":"pollId","type":"uint256","internalType":"uint256"},{"name":"votingPower","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"config","inputs":[],"outputs":[{"name":"name","ty
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created February 11, 2025 17:22
myharmony v1.0.1 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1554833228-56566251-3449598448-1000</user>
<keys>
<key installerType="Unknown" displayName="MyHarmony" displayVersion="1.0.1.257">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\036a0e4fc6a247ec</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[rundll32.exe dfshim.dll,ShArpMaintain MyHarmony.application, Culture=neutral, PublicKeyToken=893f52c973591bc9, processorArchitecture=msil]]></UninstallString>