Skip to content

Instantly share code, notes, and snippets.

View shubham-kshetre's full-sized avatar

Shubham Kshetre shubham-kshetre

View GitHub Profile
#!/bin/bash
echo "Working Directory: " && pwd
rm ~/run.sh
#!/bin/bash
# Variables
IMAGE_NAME="suyashbhawsar/alm-app"
CONTAINER_NAME="alm"
# Function to check if container is running
check_container_status() {
docker ps --filter "name=$CONTAINER_NAME" --format "{{.Status}}"
}
name: Lint Checks
on:
merge_group:
types: [checks_requested]
push:
branches:
- develop
- release-*
pull_request:
branches:
class NQBacktracking:
def __init__(self, x_, y_):
self.ld = [0] * 30
self.rd = [0] * 30
self.cl = [0] * 30
self.x = x_
self.y = y_
def printSolution(self, board):
print(
@shubham-kshetre
shubham-kshetre / studentData.sol
Created November 5, 2023 12:16
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract StudentData {
struct Student {
uint256 id;
string name;
uint256 age;
string major;
}
@shubham-kshetre
shubham-kshetre / .prettierrc.json
Created November 5, 2023 11:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=builtin&optimize=false&runs=200&gist=
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
@shubham-kshetre
shubham-kshetre / user-data-server
Created September 29, 2023 08:59 — forked from dbkinghorn/user-data-server
Ubuntu 20.04 user-data files for autoinstall ISO
#cloud-config
autoinstall:
version: 1
refresh-installer: # start with an up-to-date installer
update: yes
interactive-sections: # Install groups listed here will wait for user input
- storage
storage: # should set the interactive default but doesn't seem to work??
layout:
name: direct
#!/bin/bash
while true; do
# Get the current IP address of the server
NEW_IP=$(ip addr show | awk '/inet .* global/{split($2,a,"/"); print a[1]; exit}')
DOMAIN="erium.local"
HOSTS_FILE="/etc/hosts"