- add a new device
- partition with fdisk $ sudo fdisk /dev/sdb $ n # create a new partition $ p # primary partition $ # use default startor selector $ # use default end selector $ w # write to disk $ ls /dev/sdb* # show the new partition file
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
| grep -v -e '^$' foo.txt |
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
| There's two steps in that process: | |
| a) Grant privileges. As root user execute: | |
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password'; | |
| b) bind to all addresses: | |
| The easiest way is to comment out the line in your my.cnf file: | |
| #bind-address = 127.0.0.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
| /** | |
| * SOCKS5 Proxy as per RFC1928 | |
| * @see : http://www.ietf.org/rfc/rfc1928.txt | |
| */ | |
| /** | |
| * Load Dependancies | |
| */ | |
| var net = require('net'), |
So... this is obviously totally, 100%, like for. real. not. supported. by. Apple. …yet?
But still... I thought it was pretty badass. And, seeing how there's already a Swift buildpack for Heroku you could move some slow code into Swift can call it as a library function. But, you know, not in production or anything. That would be silly, right?
Now, having said that, the actual Python/Swift interop may have bugs. I'll leave that as an exercise to the reader.
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
| #import <mach/mach.h> | |
| #import <pthread/pthread.h> | |
| void catchMachExceptions(void); | |
| void *exc_handler(void *ignored); | |
| static mach_port_name_t myExceptionPort; | |
| void catchMachExceptions(void) { |
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
| - Alert "A valid provisioning profile for this executable was not found." when you debuging iOS app on a device. | |
| Delete Derived Data and rebuild. |
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
| #!/bin/bash | |
| BRANCH=release_50 | |
| ROOT=`pwd` | |
| SRC=$ROOT/llvm | |
| # GIT_BASE_URL=https://llvm.org/git | |
| if [[ "$GIT_BASE_URL" == "" ]]; then | |
| GIT_BASE_URL=https://github.com/llvm-mirror | |
| fi | |
| BUILDER=ninja |
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
| /* | |
| PHP | |
| └── is | |
| ├── minor | |
| │ └── perpetrated | |
| │ └── whereas | |
| │ └── skilled | |
| │ └── perverted | |
| │ └── professionals. | |
| └── a |