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 |
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 | |
| #credits to https://github.com/madmantm/fedora-pentest-tools thanks :D | |
| echo "[*]preliminary questions regarding user-rights" | |
| clear | |
| read -p "[*]Please enter your username, this will help me fix permissions:" myname | |
| clear | |
| echo "[*]what would be your prefered directory name for the tools? no slashes pls" |
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
| //author: Jonathan R. Lopez | |
| function propsToFile (obj, prop, dirpath, ext) { | |
| for(let props in obj[prop]) { | |
| fs.writeFile(`${dirpath}${obj[prop][props].split(' ').join('_')}${ext}` , `<%# ${obj[prop][props].split(' ').join('_')} %>`, err=> { | |
| err ? console.log(err) : console.log('file written') | |
| }); | |
| } | |
| }; |
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 | |
| ## Bash Script to clear cached memory on (Ubuntu/Debian) Linux | |
| ## By Philipp Klaus | |
| ## see <http://blog.philippklaus.de/2011/02/clear-cached-memory-on-ubuntu/> | |
| if [ "$(whoami)" != "root" ] | |
| then | |
| echo "You have to run this script as Superuser!" | |
| exit 1 | |
| fi |