Skip to content

Instantly share code, notes, and snippets.

View renatocfrancisco's full-sized avatar
:shipit:
still js

Renato C. Francisco renatocfrancisco

:shipit:
still js
View GitHub Profile
@renatocfrancisco
renatocfrancisco / uninstall_all_pip_packages.bat
Last active August 16, 2023 15:56
listing installed global pip packages in a txt file and uninstalling all - github copilot
@echo off
REM Get a list of all globally installed packages
pip list --format=freeze > packages.txt
REM Uninstall each package one by one
for /f "delims=" %%i in (packages.txt) do (
pip uninstall -y %%i
)
@aspose-com-gists
aspose-com-gists / csv-to-excel.py
Last active March 30, 2023 17:11
Convert CSV to Excel and Excel to CSV in Python
import jpype
import asposecells
jpype.startJVM()
from asposecells.api import Workbook, LoadOptions, SaveFormat
# Create CSV LoadOptions object
loadOptions = LoadOptions(FileFormatType.CSV)
# Create a Workbook object with CSV file's path and the loadOptions
workbook = Workbook("data.csv", loadOptions)
@vdonoladev
vdonoladev / Padrões de Commits.md
Created February 22, 2021 20:37
Padrões de Commits

📄
Padrões de commits

De acordo com a documentação do Convetional Commits, Commits Semânticos são uma convenção simples para ser utilizada nas mensagens de commit. Essa convenção define um conjunto de regras para criar um histórico de commit explícito, o que facilita a criação de ferramentas automatizadas.

Esses commits auxiliarão você e sua equipe a entenderem de forma facilitada quais alterações foram realizadas no trecho de código que foi commitado.

@l-wagner
l-wagner / ecosystem.config.js
Created January 22, 2021 13:04
PM2 Ecosystem config example
// ============== PM2 ECOSYSTEM FILE =================
// /srv/www/pm2/ecosystem.config.js
// shared environment variables
const commonEnv = {
devEnv: {},
prodEnv: {
SHARED_SECRET: '123456',
ANOTHER_SHARED_SECRET: '123456',
NODE_ENV: 'PROD',
@stephensanwo
stephensanwo / Python Cheatsheet.md
Last active May 25, 2022 15:51
Python Comprehensive Cheatsheet
@anmolsukki
anmolsukki / Badges.md
Last active March 7, 2023 09:42
[ Badges ] Badges File
@illuzian
illuzian / quick_reference.pq
Last active February 11, 2022 17:54
Power BI M/Power Query Reference
/*
Copyright 2020 Anthony Hawkes
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@rsperl
rsperl / nmap_examples.md
Last active February 16, 2024 02:13
nmap examples #snippet
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
@Kartones
Kartones / postgres-cheatsheet.md
Last active May 3, 2024 20:51
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)