Skip to content

Instantly share code, notes, and snippets.

View sachinsmc's full-sized avatar
🕸️
👨🏼‍💻

Sachin Chavan sachinsmc

🕸️
👨🏼‍💻
View GitHub Profile
@sachinsmc
sachinsmc / enbd-parser.py
Created February 11, 2024 15:58
parse endb statement
from lxml import etree, objectify
import sys
import argparse
import re
import os.path
import datetime
def f_colorise(string, color):
colors = {
'red': '\033[91m',
@sachinsmc
sachinsmc / main.go
Last active March 27, 2023 19:07
SOLID Principles in Golang
package main
import "fmt"
// Single Responsibility Principle:
// Each struct has only a single responsibility.
// User struct represents a user in the system.
type User struct {
ID int
FirstName string
@sachinsmc
sachinsmc / commands.sh
Last active September 3, 2022 07:00
Linux Commands cheatsheet for CTF & bug hunting
These are all the useful commands I can think of right now that you don't need
to have root privileges to run. Some will be useful for Werewolves, others
might be useful for CtF contests, for the rest, who knows.
The five most important commands in Linux are:
apropos - search the manual page names and descriptions
help - bash built-in commands, see bash
info - readable online documentation
man - an interface to the on-line reference manuals
whatis - display manual page descriptions
@sachinsmc
sachinsmc / launch.json
Created January 21, 2022 08:56
Debug configuration for AWS Lambda - Serverless Invoke Local
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug AWS Lambda",
"program": "${workspaceRoot}/node_modules/.bin/sls",
"runtimeVersion": "12.20.2",
"args": [
const { EventEmitter } = require('events');
var input = {
"orders": [
[
"Pepperoni",
"Mushrooms",
"Sausage"
]
]
@sachinsmc
sachinsmc / xmr btc atomic swap.md
Created September 29, 2021 11:00
List of Rendezvous Points for atomic swap

Bitcoin–Monero Cross-chain Atomic Swap Rendezvous Points

Here is the list of rendezvous point for xmr-btc-swap Atomic swap

/dnsaddr/rendezvous.coblox.tech/p2p/12D3KooWQUt9DkNZxEn2R5ymJzWj15MpG6mTW84kyd8vDaRZi46o

/dns4/rendezvous.xmr.radio/tcp/8888/p2p/12D3KooWN3n2MioS515ek6LoUBNwFKxtG2ribRpFkVwJufSr7ro7

<body class="align">
<div class="grid">
<form action="https://httpbin.org/post" method="POST" class="form login">
<div class="form__field">
<label for="login__username"><svg class="icon"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#user"></use></svg><span class="hidden">Username</span></label>
<input id="login__username" type="text" name="username" class="form__input" placeholder="Username" required>
</div>
@sachinsmc
sachinsmc / main.go
Created June 24, 2019 11:33
learn go cheat.sh
package main
import(
"fmt"
m "math"
"os"
"io/ioutil"
"net/http"
"strconv"
)