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 | |
| CYAN="$(tput bold; tput setaf 6)" | |
| RESET="$(tput sgr0)" | |
| clear | |
| if command -v python3 > /dev/null 2>&1; then | |
| if [ $(python3 -c "print('ye')") = "ye" ]; then | |
| clear |
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
| # In macOS Catalina onwards `/usr/bin` is protected. Before you would only need to run a root shell to make any changes. Now there is something extra to do. | |
| # Let's say I want to run this command: | |
| # sudo rm -rf /usr/bin/python3 | |
| # Deleting something will give you the error: | |
| # rm: /usr/bin/python3: Read-only file system | |
| # To get around this you need to first run: |
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 Axios = require('axios'); | |
| const { | |
| PIZZLY_URL, | |
| PIZZLY_SECRET_KEY, | |
| PIZZLY_TRELLO_ID, | |
| PIZZLY_XERO_ID, | |
| } = process.env; | |
| const integrations = { |
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 | |
| # Are you using Mac OS X? | |
| # You need to install coreutils for this to work. | |
| # try `brew install coreutils` | |
| # or `sudo port install coreutils` | |
| # set a part size that works with FAT32 drives | |
| PART_SIZE=3999 | |
| # nice little intro |
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 | |
| # Are you using Mac OS X? | |
| # You probably need to install a newer version of split for this to work. | |
| # try `brew install coreutils` | |
| # or `sudo port install coreutils` | |
| # set a part size that works with FAT32 drives | |
| PART_SIZE=3999 | |
| # nice little intro |
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 | |
| # Are you using Mac OS X? | |
| # You probably need to install a newer version of split for this to work. | |
| # try `brew install coreutils` | |
| # or `sudo port install coreutils` | |
| # set a part size that works with FAT32 drives | |
| PART_SIZE=3999 | |
| # nice little intro |
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
| # 1. Install haproxy on Ubuntu. | |
| # 2. Edit file path: /etc/haproxy/haproxy.cfg | |
| # 3. Run with: haproxy -f /etc/haproxy/haproxy.cfg | |
| # 4. haproxy will run in the background, so you can disconnect safely. | |
| # 5. Point your Shadowsocks client at <CHINA IP>:8001 (or 8002, etc.) - you will actually be connected to your interational server! | |
| global | |
| defaults | |
| log global |
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
| 'use strict'; | |
| const path = require('path') | |
| const redirect = new_url => { | |
| return { | |
| status: '301', | |
| statusDescription: 'Moved Permanently', | |
| headers: { | |
| location: [{ |
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 https = require('https'); | |
| const { CODESHIP_KEY, PROJECT_ID } = process.env; | |
| const getBuilds = () => { | |
| console.time('Fetching builds...'); | |
| return new Promise((resolve, reject) => { | |
| const host = 'codeship.com'; | |
| const path = `/api/v1/projects/${PROJECT_ID}.json?api_key=${CODESHIP_KEY}`; | |
| const options = { |
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
| # AWS Lambda Node.js deploy script | |
| # @author Nabil Freeman <nabil@instafork.com> (https://github.com/nabilfreeman) | |
| # *************************************** | |
| # Environment variables required: | |
| # AWS_ACCESS_KEY_ID=XXXXXXX | |
| # AWS_SECRET_ACCESS_KEY=XXXXXXXX | |
| # AWS_DEFAULT_REGION=eu-west-1 | |
| # LAMBDA_FUNCTION_NAME=asdfghjkl |