Skip to content

Instantly share code, notes, and snippets.

View crmaxx's full-sized avatar

Maxim Zhukov crmaxx

  • Russia, Vladimir
View GitHub Profile
@crmaxx
crmaxx / how-to-install-promtool.md
Created June 5, 2026 10:28 — forked from zulhfreelancer/how-to-install-promtool.md
How to install promtool by Prometheus?

How to install promtool by Prometheus?

# Fetch latest version
TAG=$(curl -s https://api.github.com/repos/prometheus/prometheus/releases | jq -r '.[] | .tag_name' | head -n 1)
echo $TAG

# Remove the `v` prefix
VERSION=$(echo $TAG | sed 's/v//')
echo $VERSION
PKG_CONFIG_PATH=`brew --prefix openssl@1.1`/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 = crmaxx@gmail.com
[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"