Skip to content

Instantly share code, notes, and snippets.

View beyondszine's full-sized avatar
💭
learning to code :)

Saurabh Shandilya beyondszine

💭
learning to code :)
View GitHub Profile
@beyondszine
beyondszine / auto-increment-flutter-version.sh
Last active June 16, 2023 08:27
this is to be used in actions to auto increment flutter version in pubspec.yaml file
# Set this to "major", "minor", or "patch" to control which part of the version is incremented.
# call this file with VERSION_INCREMENT as argument or if running manually, uncomment
# VERSION_INCREMENT="major"
# Check if VERSION_INCREMENT is set and non-empty
if [[ -z "${VERSION_INCREMENT}" ]]; then
echo "VERSION_INCREMENT variable is not set, exiting."
exit 1
fi
@beyondszine
beyondszine / main.dart
Created May 9, 2023 08:32
solar-arc-1934
void main() {
Map<String, dynamic> person = {
'name': 'John Doe',
'age': 30,
'address': {
'street': '123 Main St',
'city': 'Anytown',
'state': 'CA',
},
};
@beyondszine
beyondszine / ns-inet.sh
Last active December 5, 2018 12:09 — forked from dpino/ns-inet.sh
Setup a network namespace with Internet access using NAT & IP forwarding
#!/usr/bin/env bash
set -x
NS="ns1"
VETH="veth1"
VPEER="vpeer1"
VETH_ADDR="10.200.1.1"
VPEER_ADDR="10.200.1.2"