Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
let's learn some swift

Rahul V Ramesh rahulvramesh

:octocat:
let's learn some swift
View GitHub Profile
@rahulvramesh
rahulvramesh / install-toolbox.sh
Created Feb 15, 2022 — forked from greeflas/install-toolbox.sh
JetBrains Toolbox installation script for Ubuntu - https://www.jetbrains.com/toolbox/app/
View install-toolbox.sh
#!/bin/bash
set -e
if [ -d ~/.local/share/JetBrains/Toolbox ]; then
echo "JetBrains Toolbox is already installed!"
exit 0
fi
echo "Start installation..."
View dom.php
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('allow_url_fopen', 1);
require 'vendor/autoload.php';
// reference the Dompdf namespace
View getJSONFromFigmaFile.js
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,
{
View ssh_client.go
package main
import (
"fmt"
"io"
"io/ioutil"
"net"
"os"
"strings"
@rahulvramesh
rahulvramesh / revprox.go
Created May 12, 2021 — forked from thurt/revprox.go
Simple reverse proxy in Go (forked from original to use a struct instead of a closure)
View revprox.go
package main
import(
"log"
"net/url"
"net/http"
"net/http/httputil"
)
func main() {
@rahulvramesh
rahulvramesh / config
Created May 2, 2021 — forked from pksunkara/config
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
View config
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
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 Apr 10, 2021 — forked from jun06t/vault-golang-login
Golang Vault Login Sample
View vault-golang-login
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 Feb 10, 2021 — forked from rolandstarke/laravel setup.sh
Server setup bash script for Laravel
View laravel setup.sh
# 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 Jan 22, 2021 — forked from tomysmile/mac-setup-redis.md
Brew install Redis on Mac
View mac-setup-redis.md

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@rahulvramesh
rahulvramesh / swarm.yml
Created Dec 14, 2020 — forked from MetalArend/swarm.yml
Run a GitLab Runner on your Swarm
View swarm.yml
version: '3.4'
secrets:
# Find your registration token at: "Your project" > "Settings" > "CI/CD" > "Runners settings" > "Specific Runners" (look for registration token)
# Register it as `GITLAB_REGISTRATION_TOKEN`: `docker secret create GITLAB_REGISTRATION_TOKEN YOUR_REGISTRATION_TOKEN`
GITLAB_REGISTRATION_TOKEN:
external: true
# Find your personal access token at: "Your user account" > "Settings" > "Access Tokens" > "Create personal access token" (for api)
# Register it as `GITLAB_PERSONAL_ACCESS_TOKEN`: `docker secret create GITLAB_PERSONAL_ACCESS_TOKEN <YOUR ACCESS TOKEN>`