Skip to content

Instantly share code, notes, and snippets.

View Saransh-Sharma's full-sized avatar
🎈

Saransh Saransh-Sharma

🎈
View GitHub Profile
@Saransh-Sharma
Saransh-Sharma / explode-opvn.sh
Created October 1, 2021 12:13 — forked from dleonard00/explode-opvn.sh
extract the certificate and key from an .ovpn file
#!/bin/bash
# This script will extract the certificate and key from an .ovpn file
# into their own files, which makes it possible to use them to configure
# the VPN using Ubuntu's network manager
# Usage example:
# >> ovpnconvert username.dev.ovpn
# You can keep following these instructions here:
@Saransh-Sharma
Saransh-Sharma / Setup sendmail on OS X
Created May 7, 2019 09:22
Setup instructions for sendmail for Gmail on Mac OS X
1.) Create a file to store our credentials:
sudo nano /etc/postfix/sasl_passwd
2.) Add something like this:
smtp.gmail.com:587 [email protected]:password
3.) Now run:
@Saransh-Sharma
Saransh-Sharma / _launchAVD.sh
Last active May 3, 2019 10:03
Create and launch android AVD
#!/usr/bin/env bash
# check if any emulator name was specified
if [ -z ${1+x} ];
then echo "No AVD name is specified. Creating and powering on AVD Carl_Sagan by default";
emulatorName="Carl_Sagan";
else
emulatorName=$1;
fi
#!/bin/bash
sudo mount -o remount,size=10G,noatime /tmp
@Saransh-Sharma
Saransh-Sharma / google-apps-script.md
Created February 23, 2016 07:56 — forked from labnol/google-apps-script.md
The best resources for learning Google Apps Script, the glue that connects various Google services including Gmail, Google Drive, Calendar, Maps, Analytics and more.