Skip to content

Instantly share code, notes, and snippets.

View crmaxx's full-sized avatar

Maxim Zhukov crmaxx

  • Russia, Vladimir
View GitHub Profile
PKG_CONFIG_PATH=`brew --prefix [email protected]`/lib/pkgconfig/ rvm install "ruby-3.3.3"
@crmaxx
crmaxx / update-hosts
Created October 4, 2023 10:27 — forked from jarlef/update-hosts
Shell script to update hosts file
#! /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}
@crmaxx
crmaxx / deploy.rb
Created September 9, 2021 13:35 — forked from ayamomiji/deploy.rb
capistrano 3: precompile assets on local machine then upload
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
@crmaxx
crmaxx / migrate.md
Last active August 12, 2021 13:46
PG migrate 11 to 13
λ ~  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
@crmaxx
crmaxx / rpcs3_backlog.txt
Last active March 10, 2020 09:44
Playstation 3 backlog
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
@crmaxx
crmaxx / rider64.exe.vmoptions
Created March 3, 2020 10:12
My JetBrains Rider VM options
# custom JetBrains Rider VM options
-ea
-Xms2048m
-Xmx4096m
-Xss16m
-XX:MetaspaceSize=512m
-XX:MaxMetaspaceSize=2G
-XX:ConcGCThreads=6
-XX:ParallelGCThreads=6
@crmaxx
crmaxx / .gitconfig
Created February 9, 2020 22:32
.gitconfig
[user]
name = Maxim Zhukov
email = [email protected]
[core]
excludesfile = /Users/mzhukov/.gitignore_global
editor = subl -w
logAllRefUpdates = true
#autocrlf = true
[credential]
helper = osxkeychain
@crmaxx
crmaxx / settings.json
Last active December 30, 2019 08:28
Current VSCode settings
{
"[dockerfile]": {
"editor.defaultFormatter": "ms-azuretools.vscode-docker"
},
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"files.trimTrailingWhitespace": true,
"files.exclude": {
"/*.beam": true,
"/*.pyc": true,
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
tap "homebrew/services"
brew "autoconf"
brew "automake"
brew "cmake"
brew "coreutils"
brew "curl"
brew "direnv"
@crmaxx
crmaxx / puma.monitrc
Created March 15, 2019 10:05 — forked from sudara/puma.monitrc
Example config needed to use monit with puma, monitoring workers for mem.
# 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