Skip to content

Instantly share code, notes, and snippets.

View lucascebertin's full-sized avatar

Lucas Cé Bertin lucascebertin

View GitHub Profile
@codfish
codfish / #linting.md
Last active September 20, 2025 18:34
Prettier + ESLint + Husky + lint-staged + commitlint

My personal & professional linting setup for JS projects.

  • Modern ESLint v9+ flat config: Uses the new flat configuration format
  • Dynamic feature detection: Automatically configures based on your project's dependencies
  • TypeScript support: Full TypeScript linting with modern typescript-eslint parser and rules
  • React ecosystem: React, React Hooks, and JSX accessibility rules when React is detected
  • Next.js support: Automatically configures Next.js official plugin linting rules when detected
  • Test framework agnostic: Supports Jest and Vitest with automatic detection
  • Testing Library integration: Automatically includes Testing Library rules for test files
  • YAML/YML support: Built-in linting for YAML configuration files

Lista de comandos Git:

  • git init: prepara os arquivos para serem comitados pela primeira vez para o repositório;
  • git add .: adiciona os arquivos para serem enviados;
  • git commit -m "": comita os arquivos com a mensagem do commit;
  • git push origin [branch]: leva os arquivos para o respositório remoto;
  • git remote rename [beanstalk] [origin]: renomeia o nome do repositório;
  • git remote -v: visualiza os repositórios clonados;
  • stage - arquivos preparados para o commit.
  • git stash: salva as modificações locamente e retira as modificações do projeto atual (branch);
  • git stash list: exibe esta salvo no stash;
@AlbertoMonteiro
AlbertoMonteiro / ObjectSpread.cs
Created February 14, 2018 23:24
Spread object in C#
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
namespace Playground
{
public class Program
@jchandra74
jchandra74 / PowerShell Customization.md
Last active August 20, 2025 11:13
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@sh1n0b1
sh1n0b1 / linuxprivchecker.py
Created July 13, 2015 23:36
linuxprivchecker.py -- a Linux Privilege Escalation Check Script
#!/usr/env python
###############################################################################################################
## [Title]: linuxprivchecker.py -- a Linux Privilege Escalation Check Script
## [Author]: Mike Czumak (T_v3rn1x) -- @SecuritySift
##-------------------------------------------------------------------------------------------------------------
## [Details]:
## This script is intended to be executed locally on a Linux box to enumerate basic system info and
## search for common privilege escalation vectors such as world writable files, misconfigurations, clear-text
## passwords and applicable exploits.
@sckalath
sckalath / linux_privesc
Last active August 20, 2025 12:44
Linux Privilege Escalation Techniques
// Determine linux distribution and version
cat /etc/issue
cat /etc/*-release
cat /etc/lsb-release
cat /etc/redhat-release
// Determine kernel version - 32 or 64-bit?
cat /proc/version
uname -a
uname -mrs