If you are annoyed that "Sources for Android 26" are not yet available via SDK manager, this might be for you:
- Collect source files
mkdir android-sdk-source-build
cd android-sdk-source-build
mkdir -p frameworks/base
public class DividerItemDecorator extends ItemDecoration { | |
public static final int HORIZONTAL = LinearLayout.HORIZONTAL; | |
public static final int VERTICAL = LinearLayout.VERTICAL; | |
private Drawable mDivider; | |
private int mOrientation; | |
private final Rect mBounds = new Rect(); | |
public DividerItemDecorator(Drawable divider, int orientation) { |
fb_friends() | |
{ | |
args="'$@'" | |
eval "grep -a --color=auto -in --color=always $args ./test.txt" | |
echo "grep -a --color=auto -in --color=always $args ./test.txt" | |
echo $args | |
} | |
fb_friends "$@" |
#!/bin/bash | |
# Usage | |
# $ ./install-cert-macos.sh "/path/to/cert" | |
CERT_PATH="$1" | |
# First, grab the SHA-1 from the provided SSL cert. | |
CERT_SHA1=$(openssl x509 -in "$CERT_PATH" -sha1 -noout -fingerprint | cut -d "=" -f2 | sed "s/://g") | |
# Next, grab the SHA-1s of any standard.dev certs in the keychain. | |
# Don't return an error code if nothing is found. |
If you are annoyed that "Sources for Android 26" are not yet available via SDK manager, this might be for you:
mkdir android-sdk-source-build
cd android-sdk-source-build
mkdir -p frameworks/base
import requests | |
import string | |
import random | |
import urllib | |
import time | |
import base64 | |
from decimal import Decimal | |
# Blind GQL injection and optimised binary search - A7 ~ Gee cue elle (misc) Google CTF 2017 | |
# https://www.youtube.com/watch?v=za_9hrq-ZuA |
from pwn import * | |
s = log.waitfor("Calculating CRC reverse lookup table") | |
reverse_crc = {crc.crc_32(p16(i)): p16(i) for i in range(2**16)} | |
s.success() | |
e = ELF("./crcme_8416479dcf3a74133080df4f454cd0f76ec9cc8d") | |
r = process("./crcme_8416479dcf3a74133080df4f454cd0f76ec9cc8d") | |
@MemLeak |
Couple of my hobbies are travelling and photography. I love to take pictures and experiment with photography. Usually after my trips, I just copy the photos to either my iPad or couple of my external hard disks. After 10 years, I have over 200K photos distributed across several disks and machines. I had to find a way to organize these photos and create a workflow for future maintenance. In this post I want to address one of the issues I had to solve: ** finding duplicate images **.
First, I needed to find out what exactly is a duplicate image. Analysing my photos, I found couple of interesting things:
/*1484157874,,JIT Construction: v2773152,en_US*/ | |
/** | |
* Copyright Facebook Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
*/ | |
try { | |
window.AudienceNetworkPrebid || (function(window, fb_fif_window) { | |
var apply = Function.prototype.apply; |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import re | |
import requests | |
import sys | |
from Crypto.Cipher import AES | |
/** | |
* Lightweight script to detect whether the browser is running in Private mode. | |
* @returns {Promise<boolean>} | |
* | |
* Live demo: | |
* @see https://output.jsbin.com/tazuwif | |
* | |
* This snippet uses Promises. If you want to run it in old browsers, polyfill it: | |
* @see https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.min.js | |
* |