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 we can use the script, we have to make it executable with the chmod command: | |
| #chmod +x ./go-executable-build.sh | |
| #then we can use it ./go-executable-build.sh yourpackage | |
| #!/usr/bin/env bash | |
| package=$1 | |
| if [[ -z "$package" ]]; then | |
| echo "usage: $0 <package-name>" | |
| exit 1 | |
| fi |
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
| sudo killall -STOP -c usbd |
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 Foundation | |
| struct Regex { | |
| var pattern: String { | |
| didSet { | |
| updateRegex() | |
| } | |
| } | |
| var expressionOptions: NSRegularExpressionOptions { | |
| didSet { |
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
| resolve: { | |
| alias: { | |
| vue: 'vue/dist/vue.js' | |
| } | |
| } |
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
| //makes swift run properly on linux | |
| docker run -it --security-opt seccomp=unconfined --name swiftfun swiftdocker/swift:latest /bin/bash |
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
| dnf install httpd nginx nodejs npm php mongodb mongodb-server net-tools nmap -y |
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
| BeagleBone Black: | |
| ifconfig usb0 192.168.7.2 | |
| route add default gw 192.168.7.1 | |
| Host PC: | |
| sudo su | |
| #eth0 is my internet facing interface, eth3 is the BeagleBone USB connection |
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
| resolve: { | |
| alias: { | |
| 'jquery': path.resolve(__dirname, 'node_modules/jquery/dist/jquery.js') | |
| } | |
| } |
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
| <!-- Insert this line above script imports --> | |
| <script>if (typeof module === 'object') {window.module = module; module = undefined;}</script> | |
| <!-- normal script imports etc --> | |
| <!-- Insert this line after script imports --> | |
| <script>if (window.module) module = window.module;</script> |
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
| sudo npm install -g electron --unsafe-perm=true --allow-root |