This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @troyhunt collected 500M passwords in "Pwned Passwords v2" DB. | |
# This is the one-liner for checking your password against that DB with the support of k-Anonymity. | |
# k-Anonymity means his website won't know the password you check. | |
# Read more about the DB & k-Anonymity in this blogpost: https://www.troyhunt.com/ive-just-launched-pwned-passwords-version-2/ | |
# Usage: | |
# 1. Execute in bash/zsh. | |
# 2. Enter your password. | |
# 3. If it outputs nothing -- your password didn't appear in the DB. | |
# Otherwise it will show how many times that password appeared in the breaches. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////// Exercise Web Crawler / Golang | |
package main | |
import ( | |
"fmt" | |
) | |
type Fetcher interface { | |
// Fetch returns the body of URL and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/D/Camera Uploads ❯❯❯ IFS=$'\n'; for f in $(ls | cat) | |
do | |
folder=$(echo $f | sed "s/\(\) \([0-9][0-9]\.[0-9][0-9]\.[0-9][0-9].*\)/\1/g" | sed "s/-/_/g") | |
echo "Moving $f to $folder" | |
mv $f ~/BACKUP/$folder | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.utils; | |
import android.content.Context; | |
import android.util.Log; | |
import android.view.GestureDetector; | |
import android.view.MotionEvent; | |
import android.widget.Toast; | |
public class GlassGestures implements GestureDetector.OnGestureListener { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Subscribes to notifications on the user's timeline. | |
*/ | |
public static Subscription insertSubscription(Credential credential, String callbackUrl, | |
... | |
// Rewrite "appspot.com" to "Appspot.com" as a workaround for | |
// http://b/6909300. | |
callbackUrl = callbackUrl.replace("appspot.com", "Appspot.com"); | |
// add ssl proxy | |
callbackUrl = "https://mirrornotifications.appspot.com/forward?url=" + callbackUrl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */ | |
/* | |
Part of the Processing project - http://processing.org | |
Copyright (c) 2004-12 Ben Fry and Casey Reas | |
Copyright (c) 2001-04 Massachusetts Institute of Technology | |
This library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uname -a; echo "ISSUE:"; cat /etc/issue; echo "VERSION:"; cat /etc/*version*; echo "RELEASE:"; cat /etc/*release* | |
java -version; echo "ALTERNATIVES: "; update-alternatives --list java | |
apt-cache show adobe-flashplugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ua.edu.lnu.pif.ucs; | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.event.InputEvent; | |
import java.awt.geom.Point2D; | |
import java.util.ArrayList; | |
import java.util.Random; | |
import edu.umd.cs.piccolo.PCanvas; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ua.edu.lnu.pif.ucs; | |
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
import java.util.Map; | |
import java.util.TreeMap; |
NewerOlder