| Value | Color |
|---|---|
| \e[0;30m | Black |
| \e[0;31m | Red |
| \e[0;32m | Green |
| \e[0;33m | Yellow |
| \e[0;34m | Blue |
| \e[0;35m | Purple |
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
| - Preparing required package | |
| $ sudo apt-get update | |
| $ sudo apt-get install -y libboost-all-dev libusb-1.0.0-dev libssl-dev cmake libprotobuf-dev protobuf-c-compiler protobuf-compiler | |
| $ sudo apt-get install -y libqt5multimedia5 libqt5multimedia5-plugins libqt5multimediawidgets5 qtmultimedia5-dev libqt5bluetooth5 libqt5bluetooth5-bin qtconnectivity5-dev pulseaudio librtaudio-dev librtaudio5a | |
| - Build aasdk | |
| cd ~ | |
| Fork abraha2d's aasdk to your account | |
| $ git clone https://github.com/USERNAME/aasdk.git |
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
| # Step 1: Set priveleges | |
| $ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all | |
| Starting... | |
| Setting allow all users to YES. | |
| Setting all users privileges to 1073742079. | |
| Done. | |
| # Step 2: Allow VNC clients |
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
| —– BEGIN LICENSE —– | |
| Mifeng User | |
| Single User License | |
| EA7E-1184812 | |
| C0DAA9CD 6BE825B5 FF935692 1750523A | |
| EDF59D3F A3BD6C96 F8D33866 3F1CCCEA | |
| 1C25BE4D 25B1C4CC 5110C20E 5246CC42 | |
| D232C83B C99CCC42 0E32890C B6CBF018 | |
| B1D4C178 2F9DDB16 ABAA74E5 95304BEF | |
| 9D0CCFA9 8AF8F8E2 1E0A955E 4771A576 |
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
| #EXTM3U | |
| #EXTINF:-1,TELEMUNDO | |
| http://iphone-streaming.ustream.tv/ustreamVideo/21733416/streams/live/playlist.m3u8 | |
| #EXTINF:0,TELEMUNDO | |
| http://iphone-streaming.ustream.tv/ustreamVideo/21733416/streams/live/playlist.m3u8 | |
| #EXTINF:-1,UNIVISION | |
| http://iphone-streaming.ustream.tv/ustreamVideo/21680354/streams/live/playlist.m3u8 | |
| #EXTINF:0,UNIVISION 1 |
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
| # Customize BASH PS1 prompt to show current GIT repository and branch. | |
| # by Mike Stewart - http://MediaDoneRight.com | |
| # SETUP CONSTANTS | |
| # Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
| # I don't remember where I found this. o_O | |
| # Reset | |
| Color_Off="\[\033[0m\]" # Text Reset |
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
| const mouseEventOf = (eventType) => (element, x, y) => { | |
| const rect = element.getBoundingClientRect() | |
| const event = new MouseEvent(eventType, { | |
| view: window, | |
| bubbles: true, | |
| cancelable: true, | |
| clientX: rect.left + x, | |
| clientY: rect.top + y, | |
| }) |
NB! command-R is replaced with holding the power button on M1 macs.
a. Boot into recovery using command-R during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS
b. Initial installation will run for approximately 1 hour, and reboot once
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
| # Rails Stuff | |
| alias stoprails='kill -9 $(lsof -i :3000 -t)' | |
| alias startrails='rails server -d' | |
| alias restartrails='stopRails && startRails' | |
| #Check PHP For Erroes | |
| alias phpcheck='find ./ -name \*.php | xargs -n 1 php -l' | |
| # ROT13-encode text. Works for decoding, too! ;) | |
| alias rot13='tr a-zA-Z n-za-mN-ZA-M' |