Skip to content

Instantly share code, notes, and snippets.

View skbly7's full-sized avatar
🌐
Somewhere in universe

Shivam Khandelwal skbly7

🌐
Somewhere in universe
View GitHub Profile
@skbly7
skbly7 / receive.py
Created July 19, 2023 21:50
layer2 fun
import argparse
from pypacker import psocket
from pypacker.pypacker import mac_bytes_to_str
from pypacker.layer12 import ethernet
parser = argparse.ArgumentParser()
parser.add_argument("-v", "--verbose", help="print whole packets", action="store_true")
parser.add_argument("-s", "--source", help="filter packet with source mac (all caps)")
parser.add_argument("-i", "--interface", help="interface to use", default="ens5")
usePassword: true
master:
port: 6379
command: "/run.sh"
disableCommands:
- FLUSHDB
- FLUSHALL
service:
type: LoadBalancer
port: 6379
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<div class="button-container">
<a target="_blank" href="https://www.aicrowd.com/challenges/food-recognition-challenge" style="float:right;-webkit-text-size-adjust: none; text-decoration: none; display: inline-block; color: #ffffff; background-color: #de4b46; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; width: auto; width: auto; border-top: 1px solid #de4b46; border-right: 1px solid #de4b46; border-bottom: 1px solid #de4b46; border-left: 1px solid #de4b46; padding-top: 5px; padding-bottom: 5px; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; text-align: center; mso-border-alt: none; word-break: keep-all;">
<span style="padding-left:10px;padding-right:10px;font-size:14px;display:inline-block;">
<span style="line-height: 19px; word-break: break-word;">
<span style="font-size: 14px; line-height: 16px;" data-mce-style="font-size: 14px; line-height: 16px;">
Read More
</span>
</span>
</span>
</a>
@skbly7
skbly7 / ocf::btactic:zimbra
Created September 21, 2016 04:38
Mirror for Zimbra HA pacemaker. (ocf::btactic:zimbra)
#!/bin/sh
#
# Resource script for Zimbra
#
# Description: Manages Zimbra as an OCF resource in
# an high-availability setup.
#
# Author: Adrian Gibanel
# <adrian.gibanel@btactic.com> : Original Author
# License: GNU General Public License (GPL)