Skip to content

Instantly share code, notes, and snippets.

View iklobato's full-sized avatar
🏠
Working from home

iklobato iklobato

🏠
Working from home
  • Campinas
  • 12:32 (UTC -03:00)
View GitHub Profile
@iklobato
iklobato / bind_keys.md
Last active January 16, 2024 15:33
Enable Word Navigation in iTerm 2 Using Option (Alt) and Arrow Keys

Optimize iTerm 2 Word Navigation Configuration

Enhance your iTerm 2 command-line experience with improved word navigation. This guide covers two approaches: a convenient one-liner script and a manual method.

One-Liner Approach

Learn how to quickly configure word navigation in iTerm 2 using a one-liner script. This script enhances key bindings with the Option (Alt) key and arrow keys, facilitating smooth movement one word backward and forward.

Implementation

@iklobato
iklobato / bucket-migration.sh
Last active November 22, 2023 15:57
bucket-migration
#!/bin/bash
# Purpose: This Bash script automates data migration between BigQuery and Google Cloud's storage.
# It streamlines the process by using Google Cloud Storage as temporary storage. It's designed to export table
# schemas to JSON, load data from CSV files into BigQuery for analysis, and securely move data between different
# storage buckets. Additionally, it simplifies bucket management for organized data and enhanced redundancy.
# Value: For GCP users, this script is invaluable for simplifying and expediting data migration tasks between
# BigQuery, making it a crucial resource for data management.
# How to Run: Before executing, set key variables like `SOURCE_PROJECT_ID`, `DESTINATION_PROJECT_ID`,
# and `DATASET_NAME`. Then, prepare an input file listing the table names you want to process. Run the script in
@iklobato
iklobato / migrate_sh.sh
Last active August 30, 2024 12:54
This script is responsible to move that from bigquery between different Google Cloud accounts
#!/bin/bash
if [[ "$*" == *-v* ]]; then
set -x
fi
source_project_id="${SOURCE_PROJECT_ID}"
destination_project_id="${DESTINATION_PROJECT_ID}"
dataset_name="${DATASET_NAME}"
inurl /bug bounty
inurl : / security
inurl:security.txt
inurl:security "reward"
inurl : /responsible disclosure
inurl : /responsible-disclosure/ reward
inurl : / responsible-disclosure/ swag
inurl : / responsible-disclosure/ bounty
inurl:'/responsible disclosure' hoodie
responsible disclosure swag r=h:com
.php
.html
.txt
.htm
.aspx
.asp
.js
.css
.pgsql.txt
.mysql.txt
# All scripts
```
--tamper=apostrophemask,apostrophenullencode,appendnullbyte,base64encode,between,bluecoat,chardoubleencode,charencode,charunicodeencode,concat2concatws,equaltolike,greatest,halfversionedmorekeywords,ifnull2ifisnull,modsecurityversioned,modsecurityzeroversioned,multiplespaces,nonrecursivereplacement,percentage,randomcase,randomcomments,securesphere,space2comment,space2dash,space2hash,space2morehash,space2mssqlblank,space2mssqlhash,space2mysqlblank,space2mysqldash,space2plus,space2randomblank,sp_password,unionalltounion,unmagicquotes,versionedkeywords,versionedmorekeywords
```
# General scripts
```
--tamper=apostrophemask,apostrophenullencode,base64encode,between,chardoubleencode,charencode,charunicodeencode,equaltolike,greatest,ifnull2ifisnull,multiplespaces,nonrecursivereplacement,percentage,randomcase,securesphere,space2comment,space2plus,space2randomblank,unionalltounion,unmagicquotes
```
# Microsoft access
```
@mayukh18
mayukh18 / flask_setup_heroku.md
Created September 28, 2017 19:38
How to setup flask app with database on heroku

Setting up flask app in heroku with a database

The below article will cover the intricacies of setting up databases and heroku in respect to a flask app. This is more like a memo and will have out of sequence instructions or solutions to errors so read thoroughly.

Setting up a database

You'll need the packages

@mdonkers
mdonkers / server.py
Last active November 15, 2024 20:01
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
anonymous
anonymous / PROJETO ED 1.cpp
Created March 28, 2017 18:55
PROJETO ED 1 created by henriquelobato - https://repl.it/GhZL/157
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 5
typedef struct Fila{
int senha, posicao;
struct Fila* prox;
}Fila;
anonymous
anonymous / PROJETO ED 1.cpp
Created March 28, 2017 02:49
PROJETO ED 1 created by henriquelobato - https://repl.it/GhZL/95
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 5
typedef struct Fila{
int senha;
char tipo;
struct Fila* prox;
}Fila;