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
<body></body> | |
<script src="/three.js"></script> | |
<script src="/controls/OrbitControls.js"></script> | |
<script> | |
// (1) TRY clicking the HIDE CODE button! --> | |
// The "scene" is where stuff in our game will happen: | |
var scene = new THREE.Scene(); | |
// The "camera" is what sees the stuff: |
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
sheriff = Proprietor.find_by(name: "Sheriff") | |
Building.where(proprietor: sheriff).each do |building| | |
building.photo.purge | |
building.attachments.each do |attachment| | |
attachment.file.purge | |
end | |
building.floor_plans.each do |floor_plan| | |
floor_plan.blueprint.purge | |
end | |
building.building_systems.each do |system| |
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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: ingress-nginx | |
labels: | |
app.kubernetes.io/name: ingress-nginx | |
app.kubernetes.io/instance: ingress-nginx | |
--- |
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
RUBY_CONFIGURE_OPTS="--disable-dtrace" rbenv install 2.5.3 |
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
webpacker_1 | ℹ 「wdm」: Failed to compile. | |
webpacker_1 | ✖ 「wdm」: Hash: 3a4e636409bd11d802a3 | |
webpacker_1 | Version: webpack 4.29.6 | |
webpacker_1 | Time: 2096ms | |
webpacker_1 | Built at: 04/12/2019 11:36:00 AM | |
webpacker_1 | Asset Size Chunks Chunk Names | |
webpacker_1 | js/application-ccae482cc60dff2d1d2f.js 781 KiB application [emitted] application | |
webpacker_1 | js/application-ccae482cc60dff2d1d2f.js.map 943 KiB application [emitted] application | |
webpacker_1 | manifest.json 364 bytes [emitted] | |
webpacker_1 | |
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 'roo' | |
require 'pp' | |
xlsx = Roo::Excelx.new('./omni.xlsx') | |
# sheet = xlsx.default_sheet | |
ones = [] | |
twos = [] | |
threes = [] | |
fours = [] |
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
# Digital Ocean / Rails 4.1.6 / Ruby 2.1.3 / nginx 1.4.6 / Ubuntu 14.04x64 / Capistrano 3.2.1 | |
# https://gorails.com/deploy/ubuntu/14.04 | |
# https://coderwall.com/p/yz8cha/deploying-rails-app-using-nginx-unicorn-postgres-and-capistrano-to-digital-ocean | |
# http://www.cubicleapps.com/articles/ubuntu-rails-ready-with-nginx-unicorn | |
# 1) SETUP DEPLOY USER AND GET ROOT ACCESS OUT OF THE WAY | |
you@local:~$ ssh root@IPADDRESS | |
root@remote:~$ adduser USERNAME | |
root@remote:~$ visudo | |
# # User privilege specification |
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
export iterm2_hostname=xxx.xxx.xxx.xxx | |
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash" |
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
# Open SSH tunnels to both servers, routing postgres traffic to local port | |
# I use SSH Tunnel app for that, but I'm pretty sure you could figure out how to | |
# run that tunnel in the command line | |
# First: Dump the old DB | |
pg_dump -U deploy -h 127.0.0.1 -p 3303 -d my_app_production -F c -f outfile.sqlc | |
# It will prompt you for the user's password, and then you should be golden. | |
# -U username | |
# -h host (localhost) |
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
# On my mac | |
> brew install pstree | |
> pstree -p PID |
NewerOlder