ssh root@YOURDOMAIN
adduser deploy
visudo # Add deploy ALL=(ALL) ALL
This file contains 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
require('dotenv').config(); | |
require('colors'); | |
const express = require('express'); | |
const ExpressWs = require('express-ws'); | |
const { GptService } = require('./services/gpt-service'); | |
const { StreamService } = require('./services/stream-service'); | |
const { TranscriptionService } = require('./services/transcription-service'); | |
const { TextToSpeechService } = require('./services/tts-service'); |
This file contains 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
# After reloading the configuration file, we can send [command] to an application | |
# running within tmux simply by pressing [command] twice. | |
set -g prefix C-n | |
bind C-n send-prefix | |
set-option -g default-shell /bin/zsh | |
# Splitting panes | |
bind | split-window -h -c "#{pane_current_path}" | |
bind - split-window -v -c "#{pane_current_path}" |
This file contains 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
{ | |
"businesses": [ | |
{ | |
"id": "beauty-cutie-nail-and-spa-new-york", | |
"name": "Beauty Cutie Nail & Spa", | |
"image_url": "https://s3-media3.fl.yelpcdn.com/bphoto/SL6_3y8AgXkbUxcxiCwNkg/o.jpg", | |
"is_closed": false, | |
"url": "https://www.yelp.com/biz/beauty-cutie-nail-and-spa-new-york?adjust_creative=QH0KY8ridWGXeICCt8MrQg&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=QH0KY8ridWGXeICCt8MrQg", | |
"review_count": 8, | |
"categories": [ |
This file contains 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
package jieqoo.android.KASS.test.tasks; | |
import java.util.concurrent.CountDownLatch; | |
import java.util.concurrent.TimeUnit; | |
import jieqoo.android.models.RESTListener; | |
import jieqoo.android.models.RESTResponse; | |
import jieqoo.android.tasks.FetchRESTResponseTask; | |
import jieqoo.android.util.Configuration; | |
import android.test.InstrumentationTestCase; |
This file contains 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
defmodule Interpolation do | |
def call(string, bindings \\ []) do | |
~r/(?<head>)%{[^}]+}(?<tail>)/ | |
|> Regex.split(string, on: [:head, :tail]) | |
|> Enum.reduce("", fn | |
<<"%{" <> rest>>, acc -> | |
key = String.to_atom(String.rstrip(rest, ?})) | |
acc <> to_string(Dict.fetch!(bindings, key)) | |
segment, acc -> | |
acc <> segment |
This file contains 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
https://github.com/typelift/Swiftz | |
https://github.com/bricepollock/modular-architecture | |
https://github.com/joeldev/JLRoutes | |
https://github.com/thoughtbot/Argo | |
https://github.com/Alamofire/Alamofire | |
https://github.com/mxcl/PromiseKit | |
https://github.com/aschuch/AwesomeCache | |
https://github.com/danielgindi/Charts | |
https://github.com/ViccAlexander/Chameleon |
This file contains 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
* { | |
line-height: 30px; | |
} |
This file contains 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
filetype on | |
filetype indent on | |
filetype plugin on | |
syntax on | |
call plug#begin('~/.vim/plugged') | |
Plug 'mileszs/ack.vim' | |
" Plug 'rking/ag.vim' | |
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' | |
Plug 'scrooloose/nerdtree' |
This file contains 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
http://stackoverflow.com/questions/29846864/change-the-app-name-sent-by-dockers-syslog-driver | |
http://dokku.viewdocs.io/dokku/docker-options/ |
NewerOlder