Skip to content

Instantly share code, notes, and snippets.

View rahulvramesh's full-sized avatar
💻
🚊

Rahul V Ramesh rahulvramesh

💻
🚊
View GitHub Profile
@rahulvramesh
rahulvramesh / gmeet.js
Created July 15, 2022 06:01
Google Meet Recorder Using playwright and firefox
const { devices, firefox, chromium } = require('playwright');
(async () => {
const browser = await chromium.launch({headless: false});
const context = await browser.newContext({
permissions: ['geolocation', 'microphone', 'camera'],
colorScheme: 'dark',
recordVideo: {
dir: 'videos/',
size: { width: 1920, height: 1080 },
}
@rahulvramesh
rahulvramesh / install-toolbox.sh
Created February 15, 2022 07:57 — forked from greeflas/install-toolbox.sh
JetBrains Toolbox installation script for Ubuntu - https://www.jetbrains.com/toolbox/app/
#!/bin/bash
set -e
if [ -d ~/.local/share/JetBrains/Toolbox ]; then
echo "JetBrains Toolbox is already installed!"
exit 0
fi
echo "Start installation..."
@rahulvramesh
rahulvramesh / dom.php
Created November 9, 2021 06:39
DOMphp + image
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('allow_url_fopen', 1);
require 'vendor/autoload.php';
// reference the Dompdf namespace
@rahulvramesh
rahulvramesh / getJSONFromFigmaFile.js
Created August 30, 2021 09:53 — forked from souporserious/getJSONFromFigmaFile.js
Generates JSON from Figma file
import request from 'request'
const api_endpoint = 'https://api.figma.com/v1'
const personal_access_token = 'FIGMA_ACCESS_TOKEN_HERE' // https://www.figma.com/developers/docs#auth-dev-token
function downloadSvgFromAWS(url) {
return new Promise((resolve, reject) => {
request.get(
url,
{
@rahulvramesh
rahulvramesh / ssh_client.go
Created July 20, 2021 15:17 — forked from iamralch/ssh_client.go
SSH client in GO
package main
import (
"fmt"
"io"
"io/ioutil"
"net"
"os"
"strings"
@rahulvramesh
rahulvramesh / revprox.go
Created May 12, 2021 16:00 — forked from thurt/revprox.go
Simple reverse proxy in Go (forked from original to use a struct instead of a closure)
package main
import(
"log"
"net/url"
"net/http"
"net/http/httputil"
)
func main() {
@rahulvramesh
rahulvramesh / config
Created May 2, 2021 16:17 — forked from pksunkara/config
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[sendemail]
smtpencryption = tls
@rahulvramesh
rahulvramesh / vault-golang-login
Created April 10, 2021 09:59 — forked from jun06t/vault-golang-login
Golang Vault Login Sample
package main
import (
"encoding/json"
"fmt"
"net/http"
"time"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/builtin/credential/aws"
@rahulvramesh
rahulvramesh / laravel setup.sh
Created February 10, 2021 15:39 — forked from rolandstarke/laravel setup.sh
Server setup bash script for Laravel
# Ubuntu 18.04 LTS Server Setup for Laravel
# Login as root user
sudo su -
# Update list of available packages
apt update
@rahulvramesh
rahulvramesh / mac-setup-redis.md
Created January 22, 2021 07:56 — forked from tomysmile/mac-setup-redis.md
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis