Skip to content

Instantly share code, notes, and snippets.

View callingmedic911's full-sized avatar
:bowtie:

Aditya Pandey callingmedic911

:bowtie:
View GitHub Profile
@callingmedic911
callingmedic911 / hadoop_4_node.txt
Created September 12, 2023 04:33
hadoop_4_node.txt
adpa2403@cluster-a02d-m:~/.ssh/lab-2-convert-wordcount-to-urlcount-callingmedic911$ hdfs dfsadmin -report
Configured Capacity: 421706153984 (392.74 GB)
Present Capacity: 334180270039 (311.23 GB)
DFS Remaining: 334179106816 (311.23 GB)
DFS Used: 1163223 (1.11 MB)
DFS Used%: 0.00%
Replicated Blocks:
Under replicated blocks: 0
Blocks with corrupt replicas: 0
Missing blocks: 0
@callingmedic911
callingmedic911 / hadoop_2_node.txt
Last active September 12, 2023 04:34
hadoop_2_node.txt
adpa2403@cluster-a3e1-m:~/lab-2-convert-wordcount-to-urlcount-callingmedic911$ hdfs dfsadmin -report
Configured Capacity: 210853076992 (196.37 GB)
Present Capacity: 172264705966 (160.43 GB)
DFS Remaining: 172263632896 (160.43 GB)
DFS Used: 1073070 (1.02 MB)
DFS Used%: 0.00%
Replicated Blocks:
Under replicated blocks: 0
Blocks with corrupt replicas: 0
Missing blocks: 0
from cryptography.hazmat.primitives.asymmetric import dh
from cryptography.hazmat.primitives import serialization, hashes
from cryptography.hazmat.primitives.kdf.hkdf import HKDF
# Generate our own private key and public key
parameters = dh.generate_parameters(generator=2, key_size=2048)
private_key = parameters.generate_private_key()
public_key = private_key.public_key()
# Serialize the public key and send it to the other party
# Prime number and generator for Diffie-Hellman
p = 23
g = 5
# Alice and Bob generate their own secret keys
a = 6
b = 15
# Alice and Bob calculate their public keys
A = (g ** a) % p
{
"Add describe block": {
"scope": "javascript,javascriptreact,typescript,typescriptreact",
"prefix": "describe",
"body": [
"describe('$1', () => {",
"\t$0",
"})"
],
"description": "Add describe block in test file"
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Docker
# @raycast.mode compact
# Optional parameters:
# @raycast.icon images/docker.png
# @raycast.argument1 { "type": "text", "placeholder": "cmd" }
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Postgres
# @raycast.mode compact
# Optional parameters:
# @raycast.icon images/postgres.png
# @raycast.argument1 { "type": "text", "placeholder": "cmd" }
@callingmedic911
callingmedic911 / supabase.sh
Created April 24, 2022 14:44
Raycast command wrapper for Supabase CLI
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Supabase
# @raycast.mode fullOutput
# Optional parameters:
# @raycast.icon images/supabase.png
# @raycast.argument1 { "type": "text", "placeholder": "cmd" }