Skip to content

Instantly share code, notes, and snippets.

View iam-vipul's full-sized avatar

Vipul iam-vipul

View GitHub Profile
# compile the code to generate the binary
gcc -o myprogram myprogram.c
# run the progrma
./myprogram
# inspect the binary
objdump -d myprogram
# try to read through the machine code instructions
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDRpepSt2hV0ykgVFGL120FbFQSNRnp5a65BN2Tzi1Z/Pd7sTd9yhj/b7eqrAf3T+/ahGnI3AV2OqklMuh/eR3GU/OcDVcJH0RoWy6gEfsZyVToXFQ3hpKF9WVeiMq0Z0gdxXvvsqXGSw475VVtujehOm1iLoszM09oKuD5Xh/a7l8ee2pUmSJs5cE3WW6Irl7OVzfJAelJJ7x6xD2RFJ6AJSOVCFUJhDaUDr0KJDwf88fpGpWIoGK4TuxaG0SxLguYOejRIHtwawFu//2+tuKM+L5VU7zXTdpsv2udwY8RuWSqubRHbVNyFbIEFO/zQRCsPOKSVpaBhymGTJwsTraKTsk9h2K8CjrlWvJ2xQ5MkQC2UclF1Gdw7MMouF9Ep2HXPQujb7YIyAhbLhbZ/DtqaTizW+QZBfeQbeCeKIbQbdY625zlOvNCGVnsm4SOPqGjeCO3lxTRrm8Y2asp1vbpLrTQUxEg7DnfRBt/vxiNxVl/tTvLfvyVHtPKqo8DLQk= [email protected]
@iam-vipul
iam-vipul / kafka-cheat-sheet.md
Created December 3, 2021 06:09 — forked from sahilsk/kafka-cheat-sheet.md
Apache Kafka Cheat Sheet

Kafka Cheat Sheet

Display Topic Information

$ kafka-topics.sh --describe --zookeeper localhost:2181 --topic beacon
Topic:beacon	PartitionCount:6	ReplicationFactor:1	Configs:
	Topic: beacon	Partition: 0	Leader: 1	Replicas: 1	Isr: 1
	Topic: beacon	Partition: 1	Leader: 1	Replicas: 1	Isr: 1
@iam-vipul
iam-vipul / labtainers.md
Last active November 11, 2021 03:29
Labtainer - Nist Framework Mapping
  1. Linux Access Control Lists (ACLs)

This exercise explores the use of Linux ACLs to provide access control over files, with more flexibility than the access control offered by traditional UNIX file permissions.

This exercise explores the use of Linux ACLs to provide access control over files, with more flexibility than the access control offered by traditional UNIX file permissions. It is assumed the student has received instruction, or independent study, in access control policies and ACLs. A description of Linux ACLs can be found at https://wiki.archlinux.org/index.php/Access_Control_Lists

This lab runs in the Labtainer framework, available at http://my.nps.edu/web/c3o/labtainers. That site in- cludes links to a pre-built virtual machine that has Labtainers installed, however Labtainers can be run on any Linux host that supports Docker containers.

Task 1: Review existing file permissions

We have to stand with our North Korean allies.
0 1 1 2 3 5
5 s 64
0 11 DrEvil
5 115
2 5 1 3 6 4
40
[program:mybash]
command = /usr/local/post-start.sh
startsecs = 0
autorestart = false
startretries = 1
#!/usr/bin/env bash
set -e
echo "Applying netplan .."
netplan apply
sleep 5
echo "Changing hostname .."
hostnamectl set-hostname bombhost
sleep 5
const apiUrl = "http://localhost:1337/home-page";
const headers = { "Content-Type": "application/json" };
axios({
url: apiUrl,
headers: headers,
method: "GET",
})
.then((response) => {
this.data_property = response.data
})
@iam-vipul
iam-vipul / .gitignore
Created November 28, 2019 08:00 — forked from smoser/.gitignore
cloud-init ubuntu nocloud example with network config
*.img
*.raw
<?php
if(isset($_GET['username']) && isset($_GET['password'])) {
//end point url local server.
$url="https://www.apvera.com/RetunJsonSubscription.php";
$type='Get';
$username='admin';
$password='password';