-
Open the Terminal
-
Use
mysqldumpto backup your databases -
Check for MySQL processes with:
ps -ax | grep mysql -
Stop and kill any MySQL processes
-
Analyze MySQL on HomeBrew:
brew remove mysql
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
| # NOTE: registry keys for IE 8, may vary for other versions | |
| $regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' | |
| function Clear-Proxy | |
| { | |
| Set-ItemProperty -Path $regPath -Name ProxyEnable -Value 0 | |
| Set-ItemProperty -Path $regPath -Name ProxyServer -Value '' | |
| Set-ItemProperty -Path $regPath -Name ProxyOverride -Value '' | |
| [Environment]::SetEnvironmentVariable('http_proxy', $null, 'User') |
ST(Sublime Text)安装emmet插件后,输入!,按tab键就可以快速得到一个简易的html5模板,甚是便捷:
<!DOCTYPE html>
<html lang="en">
<head>#HERO4 Black Wifi hacking, ep 1
URL for streaming: http://10.5.5.9/gp/gpExec?p1=gpTsFeeder&a1=%22%22&c1=restart&p2=gpStream&a2=%22%22&c2=restart
###Android decopilation APK
- AUDIO_INPUT_MODE: http://10.5.5.9/camera/AI
- AUTO_POWER_OFF: http://10.5.5.9/camera/AO
- BACPAC_BATTERY_LEVEL: http://10.5.5.9/bacpac/blx
- BACPAC_CV: http://10.5.5.9/bacpac/cv
#GoPro HERO4 (A tale of firmware leaks and marketing)
Written by /u/konrad-iturbe (Konrad Iturbe) and with help of /u/OverByThere's leaked firmware.
The GoPro HERO4 Black Adventure edition is 4x times more powerful than ever.
HERO4 cameras:
- HERO4 Black (BANZAI)
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
| var selector = 'img' // Replace this with the selector for the element you want to make transformable | |
| jQuery.getScript('//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js', function() { | |
| jQuery.getScript('//cdnjs.cloudflare.com/ajax/libs/numeric/1.2.6/numeric.min.js', function() { | |
| (function() { | |
| var $, applyTransform, getTransform, makeTransformable; | |
| $ = jQuery; |
These rules are adopted from the AngularJS commit conventions.
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
| define(function(require) { | |
| var React = require('react'); | |
| var paramRegex = /__(\d)+/; | |
| var parser = new DOMParser(); | |
| var errorDoc = parser.parseFromString('INVALID', 'text/xml'); | |
| var errorNs = errorDoc.getElementsByTagName("parsererror")[0].namespaceURI; | |
| // turns the array of string parts into a DOM | |
| // throws if the result is an invalid XML document. |
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
| ffmpeg -ss <start_time> -i video.mp4 -t <duration> -q:v 2 -vf select="eq(pict_type\,PICT_TYPE_I)" -vsync 0 frame%03d.jpg |
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
| // Render Multiple URLs to image | |
| var RenderUrlsToImage, arrayOfUrls, system; | |
| system = require("system"); | |
| var fs = require('fs'); | |
| /* | |
| Render given urls | |
| @param array of URLs to render |