/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
xcode-select --install
brew install [email protected]
| module.exports = { | |
| merchant: { | |
| id: '', | |
| key: '' | |
| }, | |
| developer: { | |
| id: '', | |
| key: '' | |
| }, | |
| clientId: '', |
| #basics | |
| export PATH=/usr/bin:/usr/sbin:/bin:/sbin:~/bin | |
| source ~/.bashrc | |
| # nice colors | |
| export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
| export CLICOLOR=1 | |
| export LSCOLORS=ExFxBxDxCxegedabagacad | |
| alias ls='ls -GFh' |
| #!/bin/bash | |
| hdiutil create -o /tmp/Mojave.cdr -size 8g -layout SPUD -fs HFS+J | |
| hdiutil attach /tmp/Mojave.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
| sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build | |
| mv /tmp/Mojave.cdr.dmg ~/Desktop/InstallSystem.dmg | |
| hdiutil detach /Volumes/Install\ macOS\ Mojave | |
| hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/Mojave.iso | |
| mv ~/Desktop/Mojave.iso.cdr ~/Desktop/Mojave.iso |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name servername.localdomain; | |
| index index.php index.html; | |
| root /path/to/root; |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
xcode-select --install
brew install [email protected]
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| WIFI_INTERFACE=$(networksetup -listallhardwareports | awk '/Wi-Fi/{getline; print $2}') | |
| NETWORK_SSID=YourNetworkSSID | |
| # You can set $NETWORK_PASSWORD in your profile if you don't want to be prompted for it every time. | |
| PASSWORD=$NETWORK_PASSWORD | |
| if [ -z ${PASSWORD+x} ]; then | |
| echo "Give me the password for $NETWORK_SSID immediately!" |
| #!/bin/bash | |
| # Put this in your deployment user's home directory. Make sure nvm is installed for that user. | |
| # Execute this file from the directory where the pm2 app package.json resides. | |
| # Example: ssh user@server "cd /path/to/app/root && /home/user/deploy_pm2_app.sh pm2_app_name" | |
| NVM_DIR=/home/username/.nvm | |
| [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
| ## Run whatever you need to do to prepare for restart: |
| import "reflect-metadata"; | |
| import { APIGatewayEvent, Context } from "aws-lambda"; | |
| import { BaseEntity, Column, Connection, Entity, getConnectionManager, PrimaryColumn } from "typeorm"; | |
| import v4 = require("uuid/v4"); | |
| @Entity() | |
| export class TData extends BaseEntity { | |
| @PrimaryColumn() | |
| public id: string; |
| import * as lambda from 'aws-lambda' | |
| import connectionOptions from '../db/ConnectionOptions' | |
| import { Connection } from 'typeorm' | |
| import { Database } from '../db' | |
| import { User } from '../entities' | |
| import 'reflect-metadata' | |
| import 'envkey' | |
| exports.api = async (event: lambda.APIGatewayProxyEvent, serverlessContext: lambda.Context) => { | |
| // This enables Lambda function to complete |