npm init
npm add semantic-release --save-dev
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
namespace :heroku do | |
task :import_remote_database => :environment do | |
return 'Only in development' unless Rails.env.development? | |
puts "From what heroku app do you want to import the database?" | |
remote = STDIN.gets.chomp | |
puts "Creating dump on heroku, takes a while" | |
heroku_command('pg:backups capture', remote) |
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
namespace :slack do | |
task :dropfiles do | |
token = 'xoxp-?????' # h&f | |
# get upser id | |
user_id = 'U02B4AR0N' | |
# get files | |
cmd = "curl -s -X POST --data '#{{token: token, count: 1000, user: user_id}.to_query}' https://slack.com/api/files.list" |
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
#!/usr/bin/env ruby | |
# Author: René Weteling | |
# Email: [email protected] | |
# Description: Command to list all branches of all folders at a specified | |
# locaton. Handy if you have multiple projects. | |
# Installation: | |
# 1 - Store in your path (usually ~/bin/gitbranches) | |
# 2 - Make executable (chmod +x gitbranches) | |
# 3 - Source your terminal, and enjoy (gitbranches [path || '.']) |
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 com.aceandtate.stock.api.StockService | |
import com.lightbend.lagom.scaladsl.api.{ LagomConfigComponent, ServiceAcl, ServiceInfo } | |
import com.lightbend.lagom.scaladsl.client.LagomServiceClientComponents | |
import com.lightbend.lagom.scaladsl.devmode.LagomDevModeComponents | |
import com.softwaremill.macwire._ | |
import controllers.StockController | |
import play.api.ApplicationLoader.Context | |
import play.api.libs.ws.ahc.AhcWSComponents | |
import play.api.{ ApplicationLoader, BuiltInComponentsFromContext, Mode } | |
import play.filters.HttpFiltersComponents |
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
tar -czf /storage-backup-$(date +"%d").tar.gz /home/dokku/storage && AWS_ACCESS_KEY_ID=$AWS_KEY AWS_SECRET_ACCESS_KEY=$AWS_SECRET aws s3 cp /storage-backup-$(date +"%d").tar.gz s3://$AWS_BUCKET && rm /storage-backup-$(date +"%d").tar.gz |
https://github.com/tonsky/FiraCode
npm init
npm install --save-dev prettier @prettier/plugin-ruby
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
{"lastUpload":"2021-05-26T13:39:19.811Z","extensionVersion":"v3.4.3"} |
use balenaEtcher to write to the sd https://www.armbian.com/orange-pi-pc/
root@ip, password 1234
The project consists of 2 repositories, one for the frontend (nodejs vuejs) one for the backend (php laravel). To install the correct versions of php, node etc.
just run asdf install
and if you dont have asdf installed, shame on you! https://github.com/asdf-vm/asdf and install the asdf plugins for php, nodejs (google is your friend)
Make sure you have mysql installed brew install mysql
(mac) than create a database and make sure the credentials are compliant with the .env file.
You can also ask sohail for a production database to have some data.
OlderNewer