Skip to content

Instantly share code, notes, and snippets.

View rbatty19's full-sized avatar
🏠

Roberto Batty rbatty19

🏠
  • Globant
  • Cartagena, Colombia
  • 03:34 (UTC -05:00)
View GitHub Profile
@daschaa
daschaa / aws-service-principals.txt
Created July 5, 2022 13:12
⚡️ List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
@neenjaw
neenjaw / notes_for_dive_design_patterns.md
Last active September 12, 2024 10:46
Dive Into Design Patterns

Notes for Dive Into Design Patterns

Pillars of OOP

  • Abstraction
  • Polymorphism
  • Encapsulation
  • Inheritance

Relations Between Objects

@rupeshtiwari
rupeshtiwari / material-icon.md
Last active August 19, 2024 12:58
Custom Material Icon Folder ( customize folder icons vscode material theme)
tags title
vscode, material,customize folder icons vscode material theme
How to add custom folder icon in Material icons

Steps to add custom folder icon in Material icons

Go to Settings.json file

@rbatty19
rbatty19 / config_vscode.json
Last active May 15, 2019 12:15
Configuraciones Personalizadas
// Mia Actual - current mine (abajo está la general)
{
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
/*Git Bash*/
//"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"files.autoSave": "afterDelay",
"workbench.colorTheme": "Solarized Light",
"workbench.iconTheme": "material-icon-theme",
"typescript.updateImportsOnFileMove.enabled": "always",
@navjotdhanawat
navjotdhanawat / json-to-s3.js
Created July 3, 2018 07:17
Create json and upload to s3 bucket using nodejs.
var AWS = require('aws-sdk');
AWS.config.update({ region: 'us-east-1' });
var s3 = new AWS.S3();
var obj = {
firstname: "Navjot",
lastname: "Dhanawat"
};
var buf = Buffer.from(JSON.stringify(obj));
@sdnts
sdnts / example.md
Last active January 10, 2023 20:50
Postman pm.sendRequest example

To send a request via the sandbox, you can use pm.sendRequest.

pm.test("Status code is 200", function () {
    pm.sendRequest('https://postman-echo.com/get', function (err, res) {
        pm.expect(err).to.not.be.ok;
        pm.expect(res).to.have.property('code', 200);
        pm.expect(res).to.have.property('status', 'OK');
    });
});
@anthonyray
anthonyray / gist:398fde676a7704c03d6624155ba0011e
Last active May 6, 2024 06:15
Set up OhMyZsh on Amazon EC2 instance running Ubuntu Server 14.04
  1. Connect to your EC2 instance
  2. Install zsh : sudo apt-get update && sudo apt-get install zsh
  3. Edit your passwd configuration file to tell which shell to use for user ubuntu : sudo vim /etc/passwd
  4. Look for ubuntu user, and replace bin/bash by bin/zsh
  5. Install OhMyZsh : sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  6. Disconnect from your instance and reconnect it.
@dersam
dersam / gitkraken.zsh
Last active September 17, 2024 20:22
Open GitKraken using the current repo directory in the cli.
## Open GitKraken using the current repo directory.
## For when you want a prettier view of your current repo,
## but prefer staying in the cli for most things.
## This will break if GitKraken ever removes the -p flag.
## If you're not using OSX, the path is definitely different.
kraken () {
~/Applications/GitKraken.app/Contents/MacOS/GitKraken -p $(pwd)
}
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream