Skip to content

Instantly share code, notes, and snippets.

@licensed
licensed / Readme.text
Created January 18, 2020 14:37 — forked from nishitpatel/Readme.text
Add GitIgnore to existing Repository.
Step 1: Mannually add git ignore file on git server with predefine templates for ex. if you are adding gitignore file in
iOS project than user Object-C template.
Step 2: After successfully adding git ignore update your local branch code with latest code.
Step 3: While Merging master code with local code may be you will see VIM editor to add commit message. So for VIM editor
Just press ESC -> : -> x it will close VIM editor. After than perform
Git add .
Git commit -m "COMMIT MESSAGE"
Git Push origin "BRANCH_NAME"
Step 4: After you run your project you will still see the untracked files. To remove those files perform following setps.
May be in your repository you will see any other file so below path is just for reference please don't take it seriousally
@licensed
licensed / binance.py
Created March 19, 2020 03:03 — forked from joaoescribano/binance.py
Binance login + wallet check + captcha solver
#!/usr/bin/env python3
# Usage:
# ./binance.py <email> <senha> <otp> <wallet to test json>
from solver import PuzleSolver
import calendar
import json
import os
import pyotp
@licensed
licensed / git-update-fork.sh
Created April 19, 2020 23:38 — forked from rdeavila/git-update-fork.sh
Git: como atualizar um fork com as mudanças do original?
#!/bin/bash
# Adicione um novo remote; pode chamá-lo de "upstream":
git remote add upstream https://github.com/usuario/projeto.git
# Obtenha todos os branches deste novo remote,
# como o upstream/master por exemplo:
git fetch upstream
- Commit all your changes, including .gitignore
- git rm -r --cached .
- git add .
- git commit -m ".gitignore fix"
Source: https://www.codeblocq.com/2016/01/Untrack-files-already-added-to-git-repository-based-on-gitignore/
@licensed
licensed / keychron_linux.md
Created November 8, 2021 20:18 — forked from andrebrait/keychron_linux.md
Keychron keyboards on Linux (+ Bluetooth fixes)

Here is the best setup (I think so :D) for Keychron + Linux

Make Fn + F-keys work

Keychron Keyboards on Linux use the hid_apple driver (even in Windows/Android mode), both in Bluetooth and Wired modes. By default, this driver uses the F-keys as multimedia shortcuts and you have to press Fn + the key to get the usual F1 through F12 keys.

In order to change this, you need to change the fnmode parameter for the hid_apple kernel module. Here's some documentation on it, but a quick summary can be found below:

@licensed
licensed / switchHeadphones.sh
Created November 13, 2021 00:24 — forked from OndraZizka/switchHeadphones.sh
Bluetooth headset - switch between quality sound + no mic (A2DP) and crappy sound and mic (HSP/HFP)
#!/bin/bash
#### Restart Bluetooth
if [ "$1" == "resetBT" ] ; then
sudo rfkill block bluetooth && sleep 0.1 && sudo rfkill unblock bluetooth;
exit;
fi;
#### Toggle listen/speak
if [ "$1" == "" -o "$1" == "toggle" ] ; then
@licensed
licensed / .my_setup_oh-my-zsh
Created November 18, 2021 22:15 — forked from andrelugomes/.my_setup_oh-my-zsh
Install oh-my-zsh, plugins and theme
- ok-my-zsh
- p10k.zsh : custon
- .zshrc : Plugins
@licensed
licensed / PKGBUILD
Created March 23, 2022 00:28
IRPF2022-1.2 PKGBUILD
# Maintainer: Márcio Sousa Rocha <[email protected]>
pkgname=irpf
pkgver=2022.1.1
pkgrel=1
license=('custom')
arch=(any)
pkgdesc='Programa Oficial da Receita para elaboração do IRPF'
url='https://www.receita.fazenda.gov.br'
@licensed
licensed / clone_root_disk.md
Created December 19, 2022 01:42 — forked from keilmillerjr/clone_root_disk.md
Cloning a Root Disk (Linux)

Cloning a Root Disk (Linux)

Preface

You need to create a bootable live disk to clone your disk. You can not copy a partition that is mounted. If you do not have internet access, use gparted. Otherwise, it might be better to use your operating systems live installer, such as Manjaro. We can download gparted and still have things like a web browser incase we get stuck. We will be using the Manjaro live disk for this guide.

Create a bootable live disk

  1. Download Manjaro.
  2. Insert USB disk.
// ==UserScript==
// @name Medium2Freedium Redirect
// @namespace http://tampermonkey.net/
// @version 2025-03-27
// @description Redirect Medium articles to Freedium
// @author licensed
// @match *://medium.com/*
// @match *://*.medium.com/*
// @grant none
// ==/UserScript==