Skip to content

Instantly share code, notes, and snippets.

View vermauv's full-sized avatar
🙂

Udit Verma vermauv

🙂
  • @srijanaravali Srijan Technologies Pvt. Ltd.
  • Goa, India
View GitHub Profile
#!/bin/bash
#
# Delete files older than some time
#
usage()
{
cat << EOF
usage $0 options
@vermauv
vermauv / removeuuid.sh
Created December 22, 2017 09:26
This gist removes uuid from the config files exported by drupal config workflow, used when you want to deploy same config to multisites
#!/bin/bash
FILES=config/default/sync/*
for f in $FILES
do
echo "Processing $f file..."
sed -i '' '/^uuid:/d' $f
done
@vermauv
vermauv / createpatch.sh
Last active December 26, 2017 08:57
This script can be used when your drupal project has a list of hacked contrib modules and you haven't yet created the patches.
#!/bin/bash
echo "Please provide the directory having the original modules"
read modulesdir
cd $modulesdir
echo "Please provide the module directory that has the hacked modules eg. /User/username/sites/test/all/modules"
read repo_module_dir
echo "Please provide the path where the patches should be placed"
read patchpath
@vermauv
vermauv / postman_collection.json
Created May 10, 2018 06:43
Camunda Postman Examples (create w/wo embedded forms, deploy, complete/assign/approve tasks)
{
"info": {
"_postman_id": "767f8402-3259-1c5a-5597-fb9a62a77193",
"name": "Camunda OC Demo",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Task List",
"request": {
@vermauv
vermauv / certs.markdown
Last active March 29, 2022 09:35
Openssl certs and keys

Create openssl key and cert :

openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365

To convert these into .key and .crt format:

openssl rsa -outform der -in key.pem -out server.key
@vermauv
vermauv / Dockerfile
Created March 7, 2019 10:45
Docker file for nginx
FROM debian:jessie
RUN apt-get update && apt-get install -y wget curl
RUN echo "deb http://nginx.org/packages/debian/ jessie nginx" >> /etc/apt/sources.list
RUN echo "deb-src http://nginx.org/packages/debian/ jessie nginx" >> /etc/apt/sources.list
RUN wget http://nginx.org/packages/keys/nginx_signing.key
RUN cat nginx_signing.key | apt-key add -
RUN apt-get update
RUN apt-get install -y nginx