Please read the manual carefuly
- Creating sudoers user (don’t use root)
- do update first
sudo apt-get update
- do update first
var params = "username=username&password=password"; | |
new Promise(function (resolve, reject) { | |
var http = new XMLHttpRequest(); | |
http.open("POST", "https://www.instagram.com/accounts/login/ajax/", true); | |
http.setRequestHeader('x-csrftoken', window._sharedData.config.csrf_token); | |
http.setRequestHeader('x-instagram-ajax', '1'); | |
http.setRequestHeader('x-requested-with', 'XMLHttpRequest'); | |
http.setRequestHeader("pragma", "no-cache"); | |
http.setRequestHeader("cache-control", "no-cache"); |
var params = "username=username&password=password"; | |
new Promise(function (resolve, reject) { | |
var http = new XMLHttpRequest(); | |
http.open("POST", "https://www.instagram.com/accounts/login/ajax/", true); | |
http.setRequestHeader('x-csrftoken', window._sharedData.config.csrf_token); | |
http.setRequestHeader('x-instagram-ajax', '1'); | |
http.setRequestHeader('x-requested-with', 'XMLHttpRequest'); | |
http.setRequestHeader("pragma", "no-cache"); | |
http.setRequestHeader("cache-control", "no-cache"); |
## How to install mcrypt in php7.2 | |
## | |
## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/ | |
## | |
# | |
# Check version php and pecl | |
# | |
php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php |
Please read the manual carefuly
sudo apt-get update
// Install the latest Xcode, with the Command Line Tools. | |
// Install Homebrew | |
// Install aircrack-ng: | |
brew install aircrack-ng | |
// Create the following symlink: | |
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/sbin/airport | |
// Figure out which channel you need to sniff: | |
sudo airport -s |
###################### | |
# Options | |
###################### | |
REVEAL_ARCHIVE_IN_FINDER=false | |
FRAMEWORK_NAME="${PROJECT_NAME}" | |
SIMULATOR_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.framework" |
import UIKit | |
@IBDesignable | |
class CustomView: UIView { | |
@IBInspectable var borderColor: UIColor? = UIColor.clearColor() { | |
didSet { | |
layer.borderColor = self.borderColor?.CGColor | |
} | |
} | |
// Draw a sine curve | |
let centerY = frame.height / 2 // find the vertical center | |
let steps = 200 // Divide the curve into steps | |
let stepX = frame.width / CGFloat(steps) // find the horizontal step distance | |
// Make a path | |
let path = UIBezierPath() | |
// Move the starting point to the left center | |
path.moveToPoint(CGPoint(x: 0, y: centerY)) | |
// Loop and draw steps in straingt line segments |
// Draw a sine curve with a fill | |
let centerY = frame.height / 2 // find the vertical center | |
let steps = 200 // Divide the curve into steps | |
let stepX = frame.width / CGFloat(steps) // find the horizontal step distance | |
// Make a path | |
let path = UIBezierPath() | |
// Start in the lower left corner | |
path.moveToPoint(CGPoint(x: 0, y: frame.height)) |