- Go to your profile on instagram.com (sign in if not already)
- Click on
XXX following
for the popup with the users you're following to appear - Open Chrome Devtools and Paste the following into the Console and hit return:
(async function(){
const UNFOLLOW_LIMIT = 800
const delay = (ms) => new Promise(_ => setTimeout(_, ms))
const findButton = (txt) => [...document.querySelectorAll("button").entries()].map(([pos, btn]) => btn).filter(btn => btn.innerHTML === txt)[0]
Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.
- Go to: https://twitter.com/{username}/likes
- Open the console and run the following JavaScript code:
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
d.click()
}
Sort lines alphabetically, if they aren't already, and perform these steps:
(based on this related question: https://stackoverflow.com/q/1573361/3258851)
-
Control+F
-
Toggle "Replace mode"
-
Toggle "Use Regular Expression" (the icon with the
.*
symbol)
Quick tip. It is possible to download media with small python script.
Goto https://my.telegram.org and generate api id and api hash
Install Telethon library with pip3 install telethon
Run saveAllMedia.py (replace api_id, api_hash and username with your values).
If you need proxy install https://github.com/Anorov/PySocks pip install PySocks
This code downloads all media from the dialog with username user/chat/channel in current directory.
Recently, I did a bit of shuffling around with my devices. My dad wanted wifi he can carry around. So I gave him the Huwaie portable router and my brother got my wall plugged 3G dongle and I was left with my trusty ol' TP-LINK-MR3020. Since I use 3G myself, I decided I would utilise the TP-LINK and so got a NETGEAR dongle without inbuilt wifi instead of a new 3g/4G dongle (cause it was cheaper and won't interfere with TP-LINK's wifi signal). Then in a hurry to get my router to work I flashed it with the upgrade firmware and something went wrong along the way and it bricked the device (3 lights blinking intermittently).
The way to prop it back to life is to to get a serial connection from the device. This involves prying open the device (voids warranty but the concept of warranty itself is mostly useless anyway).
There are two ways to go about this:
About kubeconfig
and Sharing kubeconfigs
When you create a Google Cloud Container cluster with gcloud container clusters create
it also generates a kubeconfig
entry.
See the output below:
Creating cluster petclinic...done.
Created [https://container.googleapis.com/v1/projects/gcloud-testing-vish/zones/asia-east1-a/clusters/petclinic].
kubeconfig entry generated for petclinic.
NAME LOCATION MASTER_VERSION MASTER_IP MACHINE_TYPE NODE_VERSION NUM_NODES STATUS
<script> | |
countdown('06/26/2017 8:00 PM', 'timer'); //date format: mm/dd/yyyy hh:mm AM | |
function countdown(dt, id) | |
{ | |
var end = new Date(dt); | |
var _second = 1000; | |
var _minute = _second * 60; | |
var _hour = _minute * 60; | |
var _day = _hour * 24; |
#! /bin/bash | |
# Replace "/path/to/gsutil/" with the path of your gsutil installation. | |
PATH="$PATH":/path/to/gsutil/ | |
# Replace "/home/username/" with the path of your home directory in Linux/Mac. | |
# The ".boto" file contains the settings that helps you connect to Google Cloud Storage. | |
export BOTO_CONFIG="/home/username/.boto" | |
# A simple gsutil command that returns a list of files/folders in your bucket. |
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)