Install android SDK (bottom of the page) or full android studio if you need to develop on android.
fastboot
looks like adb
but it is used when device is in bootloader
(or fastboot).
#!/usr/bin/env python | |
""" | |
Twitter's API doesn't allow you to get replies to a particular tweet. Strange | |
but true. But you can use Twitter's Search API to search for tweets that are | |
directed at a particular user, and then search through the results to see if | |
any are replies to a given tweet. You probably are also interested in the | |
replies to any replies as well, so the process is recursive. The big caveat | |
here is that the search API only returns results for the last 7 days. So |
// ==UserScript== | |
// @name FB LoginDialog Hider | |
// @namespace loginhider.thezero.org | |
// @include https://*.facebook.com/* | |
// @include http://*.facebook.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// If you don't have a facebook account or you are not logged in, |
#!/bin/bash | |
aria2c -j5 -i list.txt -c --save-session out.txt | |
has_error=`wc -l < out.txt` | |
while [ $has_error -gt 0 ] | |
do | |
echo "still has $has_error errors, rerun aria2 to download ..." | |
aria2c -j5 -i list.txt -c --save-session out.txt | |
has_error=`wc -l < out.txt` | |
sleep 10 |
Install android SDK (bottom of the page) or full android studio if you need to develop on android.
fastboot
looks like adb
but it is used when device is in bootloader
(or fastboot).
#!/usr/bin/ruby | |
require "pry" | |
require "peach" rescue nil | |
gallery=ARGV[0].chomp("/") | |
page_num=1 | |
gallery_id=gallery.split("/").last | |
%x{mkdir "#{gallery_id}"} |
When the shared files on Google Drive is downloaded, it is necessary to change the download method by the file size. The boundary of file size when the method is changed is about 40MB.
filename="### filename ###"
fileid="### file ID ###"
curl -L -o ${filename} "https://drive.google.com/uc?export=download&id=${fileid}"
# -*- coding: utf-8 -*- | |
import base64, requests, os, re, sys | |
from bs4 import BeautifulSoup | |
def _crack(code): | |
zeros = '' | |
ones = '' | |
for n,letter in enumerate(code): |
So you went live and you want everyone to know. Here's how you do it:
Go to https://ifttt.com/ and create an account (if you don't already have one)
Setting up analog surround sound on Ubuntu Linux with a 3 3.5mm capable sound card:
A while back, I received the Logitech Z506 Speaker system, and with Windows, setting it up was a pretty plug and play experience. On Linux, however, its' a wholly different ballgame. For one, there's no Realtek HD Audio control panel here, so what gives? How do you around this problem?
Introducing the tools of the trade:
You'll want to use a tool such as hdajackretask , pavucontrol and pavumeter for the pin re-assignments and audio output monitoring afterwards respectively. The tools are installed by running:
sudo apt-get install alsa-tools-gui pavumeter pavucontrol
So you want to decrypt switch content ? Well, the good news is that all the tools required to do that are written up! The great news is, since this is crypto we're talking about, you'll have to find the keys. Yourself. Like it's easter.
So here you can find a template of the $HOME/.switch/prod.keys
file that hactool uses to decrypt content. It contains all the SHA256 and location of the keys and seeds, so you can find them yourselves.
Note that all the seeds (the keys that end with _source
) are used along with the master_key_##
to derive an actual key.
If you have somehow obtained the key without the seed, you can rename xxx_source
to xxx_##
(where ## is the master key number) and put your key there.