sudo find / -size +100M -exec sudo ls -l {} \;
This file contains hidden or 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
# | |
# before run $ sudo -E pip install Flask | |
# | |
# To run: $ python fake-server-chaos.py | |
# | |
# | |
from flask import Flask, request | |
import time | |
from threading import Thread |
This file contains hidden or 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
struct Drag { | |
static var placeholderView: UIView! | |
static var sourceIndexPath: NSIndexPath! | |
} | |
func handleLongPress(gesture: UILongPressGestureRecognizer) { | |
let point = gesture.locationInView(tableView) | |
let indexPath = tableView.indexPathForRowAtPoint(point) | |
switch gesture.state { |