λ ~ rm -rf /usr/local/var/postgres
λ ~ initdb --locale=en_US.UTF-8 -E UTF-8 /usr/local/var/postgres
λ ~ /usr/local/bin/pg_upgrade --old-datadir /usr/local/var/postgresql@11 \
--new-datadir /usr/local/var/postgres \
--old-bindir /usr/local/opt/postgresql@11/bin \
--new-bindir /usr/local/opt/postgresql@13/bin
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
#! /bin/sh | |
# @author: Jarle Friestad | |
# Based on script by Claus Witt (http://clauswitt.com/319.html) | |
# Adding or Removing Items to hosts file | |
# Use -h flag for help | |
DEFAULT_IP=127.0.0.1 | |
IP=${3:-$DEFAULT_IP} | |
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
namespace :deploy do | |
namespace :assets do | |
Rake::Task['deploy:assets:precompile'].clear_actions | |
desc "Precompile assets on local machine and upload them to the server." | |
task :precompile do | |
run_locally do | |
execute 'RAILS_ENV=production bundle exec rake assets:precompile' | |
end |
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
NieR Replicant | |
NieR Gestalt | |
Dante's Inferno | |
Demon's Souls | |
Drakengard 3 | |
Capita America: Super soldier | |
Sly Cooper: Theives in Time | |
Infamous 1 | |
Infamous 2 | |
Amazing Spider-Man |
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
# custom JetBrains Rider VM options | |
-ea | |
-Xms2048m | |
-Xmx4096m | |
-Xss16m | |
-XX:MetaspaceSize=512m | |
-XX:MaxMetaspaceSize=2G | |
-XX:ConcGCThreads=6 | |
-XX:ParallelGCThreads=6 |
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
[user] | |
name = Maxim Zhukov | |
email = crmaxx@gmail.com | |
[core] | |
excludesfile = /Users/mzhukov/.gitignore_global | |
editor = subl -w | |
logAllRefUpdates = true | |
#autocrlf = true | |
[credential] | |
helper = osxkeychain |
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
{ | |
"[dockerfile]": { | |
"editor.defaultFormatter": "ms-azuretools.vscode-docker" | |
}, | |
"telemetry.enableCrashReporter": false, | |
"telemetry.enableTelemetry": false, | |
"files.trimTrailingWhitespace": true, | |
"files.exclude": { | |
"/*.beam": true, | |
"/*.pyc": true, |
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
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/core" | |
tap "homebrew/services" | |
brew "autoconf" | |
brew "automake" | |
brew "cmake" | |
brew "coreutils" | |
brew "curl" | |
brew "direnv" |
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
# this monit config goes in /etc/monit/conf.d | |
check process puma_master | |
with pidfile /data/myapp/current/tmp/puma.pid | |
start program = "/etc/monit/scripts/puma start" | |
stop program = "/etc/monit/scripts/puma stop" | |
group myapp | |
check process puma_worker_0 | |
with pidfile /data/myapp/current/tmp/puma_worker_0.pid |
When developing a program in Ruby, you may sometimes encounter a memory leak. For a while now, Ruby has a facility to gather information about what objects are laying around: ObjectSpace.
There are several approaches one can take to debug a leak. This discusses a time-based approach, where a full memory dump is generated every, say, 5 minutes, during a time that the memory leak is showing up. Afterwards, one can look at all the objects, and find out which ones are staying around, causing the
NewerOlder