Skip to content

Instantly share code, notes, and snippets.

View miguelzinhe's full-sized avatar

miguel miguelzinhe

  • Brazil
View GitHub Profile
@visualglitch91
visualglitch91 / index.js
Created August 12, 2020 21:57
Delete all tweets
(async () => {
const twitterClientToken =
"AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA";
function getCookie(cname) {
const name = cname + "=";
const decodedCookie = decodeURIComponent(document.cookie);
let ca = decodedCookie.split(";");
for (let i = 0; i < ca.length; i++) {
@sibelius
sibelius / route.ts
Created January 28, 2019 00:41
routeTo helper to handle params and query string
import { generatePath } from 'react-router-dom';
import { stringify } from 'query-string';
const routeTo = (path: string, params: object, qs: object) => {
const url = generatePath(path, params);
return qs ? `${url}?${stringify(qs}` : url;
}
history.push(routeTo('admin/view/:id', { id: 'ok'}, { anotherParam: 'value' }));
@vhaberkorn
vhaberkorn / Instalação_Archlinux.md
Last active February 21, 2021 21:50
Instalação Arch

Instalação do arch linux com full disk encription LVM on LUKS

baseado no script de instalação de @derekstavis 💚

Se algum momento tiver dúvidas sobre o os comando, procurar aqui:(https://wiki.archlinux.org/index.php/installation_guide)

Garantir se fez o boot utilizando EFI

ls /sys/firmware/efi # Deve haver arquivos nesse folder

Checar conexão com a internet.

@kentbrew
kentbrew / finding_twitter_user_id.md
Last active August 14, 2025 11:47
Finding Twitter User IDs

Finding Twitter User IDs

User accounts on Twitter are commonly identified by screen name, which may be changed by operators when they take over an account, or have been sitting on an old account for a long time and want to transition it into malicious use.

User IDs, however, are permanent. There are several services out there that will try to find them for you but it seems like a bad idea to me, since you're alerting them to the fact that there's something interesting about this account. There's also plenty of bad advice that uses many long-since-abandoned Twitter API endpoints.

As of this writing (2018-02-18) you can view source and search for /profile_banners/, which will show something like this:

.enhanced-mini-profile .mini-profile .profile-summary {
@pandafulmanda
pandafulmanda / Python3 Virtualenv Setup.md
Last active August 6, 2025 13:42 — forked from akszydelko/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@PurpleBooth
PurpleBooth / README-Template.md
Last active November 3, 2025 11:24
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@vitorbritto
vitorbritto / rm_mysql.md
Last active October 25, 2025 23:33
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

    brew remove mysql
    
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]: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