Skip to content

Instantly share code, notes, and snippets.

View AndrewLaganaro's full-sized avatar
🖥️
Coding

Andrew Laganaro AndrewLaganaro

🖥️
Coding
View GitHub Profile
@AndrewLaganaro
AndrewLaganaro / git-fork-clone-upstream.py
Created June 27, 2020 02:24 — forked from christ66/git-fork-clone-upstream.py
Fork a github repo, clone it, and set the upstream to the forked url
from github import Github
import sys
from os.path import expanduser
import os
from git import Repo, GitCommandError
f = open(expanduser("~/.github"), "r")
token = f.readline()[len("oauth="):].lstrip().rstrip()
g = Github(token)
user = g.get_user()
@AndrewLaganaro
AndrewLaganaro / delete-likes-from-twitter.md
Created July 12, 2020 19:19 — forked from aymericbeaumet/delete-likes-from-twitter.md
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
#include <RH_RF95.h>
#define RF95_CS 10
#define RF95_INT 2
#define RF95_RST 9
#define RF95_FREQ 915.0
RH_RF95 rf95(RF95_CS, RF95_INT);
@AndrewLaganaro
AndrewLaganaro / Remote.md
Created April 28, 2021 16:01 — forked from mondaini/Remote.md
List of companies hiring for full remote positions to work with companies in the US/Europe
@AndrewLaganaro
AndrewLaganaro / remove_crw.cmd
Created May 3, 2021 18:30 — forked from xvitaly/remove_crw.cmd
Remove telemetry updates for Windows 7 and 8.1
@echo off
echo Uninstalling KB3075249 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart
echo Uninstalling KB3080149 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart
echo Uninstalling KB3021917 (telemetry for Win7)
start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart
echo Uninstalling KB3022345 (telemetry)
start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart
echo Uninstalling KB3068708 (telemetry)
@AndrewLaganaro
AndrewLaganaro / twitter-remove-retweets.js
Created September 27, 2021 01:30 — forked from antlionguard/twitter-remove-retweets.js
With this script, you can remove all retweets you are retweeted on Twitter.
const timer = ms => new Promise(res => setTimeout(res, ms));
// Unretweet normally
const unretweetTweet = async (tweet) => {
await tweet.querySelector('div[data-testid="unretweet"]').click();
await timer(250);
await document.querySelector('div[data-testid="unretweetConfirm"]').click();
console.log('****// Unretweeted Successfully //****')
}

Install gitflow on Windows

Download and install Git from MSysGit or Git SCM. Download and install getopt.exe from the util-linux package into C:\Program Files\Git\bin. (Only getopt.exe, the others util-linux files are not used). Also install libintl3.dll and libiconv2.dll from the Dependencies packages (libintl and libiconv), into the same directory.

Suppose that Git is installed in the folder c:\bin\git and GnuWin32 in the folder c:\bin\GnuWin32.

Clone the git-flow sources from GitHub:

$ git clone --recursive git://github.com/nvie/gitflow.git
@AndrewLaganaro
AndrewLaganaro / conda-basics.md
Created August 10, 2023 03:18 — forked from atifraza/conda-basics.md
Basics of the conda package manager

Conda basics and best practices

Best practices

  • Don't install additional packages into the base environment
  • Give meaningful names to environments, e.g., PROJECT_NAME-env
  • Always specify package version numbers
  • Install all required packages in one command to reduce later conflicts
  • Install pip in each environment to avoid using the system default version
  • Always version control the environment.yml file
@AndrewLaganaro
AndrewLaganaro / GitCommitEmoji.md
Created April 1, 2024 01:17 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji