I hereby claim:
- I am egbertp on github.
- I am egbertp (https://keybase.io/egbertp) on keybase.
- I have a public key whose fingerprint is 40B6 9E1B 1381 CBF8 E93C 102A 14FB A86D 71D5 75EE
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
package actions | |
import ( | |
"math" | |
"os" | |
"github.com/gobuffalo/buffalo" | |
"github.com/gobuffalo/pop" | |
"github.com/gobuffalo/pop/nulls" | |
"github.com/gorilla/sessions" |
$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', "$LocalTempDir\$ChromeInstaller"); & "$LocalTempDir\$ChromeInstaller" /silent /install; $Process2Monitor = "ChromeInstaller"; Do { $ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 } else { rm "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound) |
############################################################################## | |
# | |
# Author: Egbert Pot | WebOak | www.weboak.nl | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as | |
# published by the Free Software Foundation, either version 3 of the | |
# License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
# encoding: utf-8 | |
class ImageUploader < CarrierWave::Uploader::Base | |
# Include RMagick or MiniMagick support: | |
# include CarrierWave::RMagick | |
include CarrierWave::MiniMagick | |
include CarrierWaveDirect::Uploader | |
# process :set_content_type |
# set_default(:postgresql_host, "localhost") | |
# set_default(:postgresql_user) { application } | |
# set_default(:postgresql_password) { Capistrano::CLI.password_prompt "PostgreSQL Password: " } | |
# set_default(:postgresql_database) { "#{application}_production" } | |
namespace :postgresql do | |
# desc "Create a database for this application." | |
# task :create_database, roles: :db, only: {primary: true} do | |
# run %Q{#{sudo} -u postgres psql -c "create user #{postgresql_user} with password '#{postgresql_password}';"} | |
# run %Q{#{sudo} -u postgres psql -c "create database #{postgresql_database} owner #{postgresql_user};"} |