Skip to content

Instantly share code, notes, and snippets.

View atb00ker's full-sized avatar
:octocat:
Working on Qatalog

Ajay Tripathi atb00ker

:octocat:
Working on Qatalog
View GitHub Profile
@thedroidgeek
thedroidgeek / nokia-router-cfg-tool.py
Last active May 5, 2024 07:44
Nokia/Alcatel-Lucent router backup configuration tool
#!/usr/bin/env python3
#
# Nokia/Alcatel-Lucent router backup configuration tool
#
# Features:
# - Unpack/repack .cfg files generated from the backup and restore functionnality
# in order to modify the full router configuration
# - Decrypt/encrypt the passwords/secret values present in the configuration
@chukaofili
chukaofili / cert-manager-cluster-issuer.yaml
Created May 24, 2018 13:38
cert-manager-cluster-issuer
apiVersion: certmanager.k8s.io/v1alpha1
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
spec:
acme:
server: https://acme-staging.api.letsencrypt.org/directory
email: [your-email-goes-here]
privateKeySecretRef:
name: letsencrypt-staging
@emilioriosvz
emilioriosvz / rabbitasyncawait.js
Created September 7, 2017 12:04
rabbitmq async await
var amqp = require('amqplib')
var open = require('amqplib').connect('amqp://localhost');
const connect = (url = 'amqp://localhost') => {
return new Promise((resolve, reject) => {
amqp.connect(url)
.then(conn => resolve(conn))
.catch(err => reject(err))
})