Skip to content

Instantly share code, notes, and snippets.

View anir's full-sized avatar

Anirban Das anir

  • Ontario, Canada
View GitHub Profile
Note 1: The following CQ curl commands assumes a admin:admin username and password.
Note 2: For Windows/Powershell users: use two "" when doing a -F cURL command.
Example: -F"":operation=delete""
Note 3: Quotes around name of package (or name of zip file, or jar) should be included.
Uninstall a bundle (use http://localhost:4505/system/console/bundles to access the Apache Felix web console)
curl -u admin:admin -daction=uninstall http://localhost:4505/system/console/bundles/"name of bundle"
Install a bundle
curl -u admin:admin -F action=install -F bundlestartlevel=20 -F
@anir
anir / Jenkins+Script+Console.md
Created July 11, 2018 22:53 — forked from mubbashir/Jenkins+Script+Console.md
jenkins groovy scripts collection.
for i in 1 2 3; do
docker-machine create -d virtualbox node-$i
done
eval $(docker-machine env node-1)
docker swarm init \
--advertise-addr $(docker-machine ip node-1)
TOKEN=$(docker swarm join-token -q worker)
@anir
anir / ckad-learning.md
Created January 23, 2020 20:55 — forked from benc-uk/ckad-learning.md
Certified Kubernetes Application Developer (CKAD)
@anir
anir / 2repos-sync.sh
Created April 2, 2020 16:08 — forked from yorammi/2repos-sync.sh
Sync 2 remote repositories script - Just define the 3 variables (use export command for that!)
#!/bin/bash
# REPO_NAME=<repo>.git
# ORIGIN_URL=git@<host>:<project>/$REPO_NAME
# REPO1_URL=git@<host>:<project>/$REPO_NAME
rm -rf $REPO_NAME
git clone --bare $ORIGIN_URL
if [ "$?" != "0" ]; then
echo "ERROR: failed clone of $ORIGIN_URL"