Skip to content

Instantly share code, notes, and snippets.

View alex-sysoev's full-sized avatar

Alexander Sysoev alex-sysoev

View GitHub Profile
@EDsteve
EDsteve / MS5611.ino
Created June 4, 2017 11:20
Vario Paragliding
// Original code by Rolf R Bakke, Oct 2012,
// Modified May 2017 by Thomas Gilson. tbgilson@gmail.com
// code is for the arduino pro/pro mini, using MS5611 barometer and speaker on pin 2.
// can be hooked up to a button for different mode changes on the "fly" (he he).
// made especially for paragliders.
// before using this, you should know roughly what your min sink rate will be.
// this code is designed to sound no tone when descending normally at speeds near your min sink rate.
// it sounds (relatively) continuous low frequency tones when descending faster than user-settable sink threshold.
// it sounds high-frequency beeps when gaining altitude faster than user-settable ascend threshold.
// it may detect when you are getting thermal uplift but still descending. This can be disabled if preferred.
@wbotelhos
wbotelhos / clear-sidekiq-jobs.sh
Last active July 23, 2024 14:51
Clear Sidekiq Jobs
require 'sidekiq/api'
# 1. Clear retry set
Sidekiq::RetrySet.new.clear
# 2. Clear scheduled jobs
Sidekiq::ScheduledSet.new.clear
@alex-sysoev
alex-sysoev / gist:aa472d1fd0f25e5a1ced
Last active February 26, 2018 22:12 — forked from p404/gist:f0d37cb4b4912543f5a5
Server configuration for a rails application
# User: ubuntu
sudo apt-get update
sudo apt-get upgrade
# Access keys
vim .ssh/authorized_keys
# Hostname
sudo vim /etc/hostname
sudo vim /etc/hosts
@gonzalo-bulnes
gonzalo-bulnes / safe_merge.sh
Last active August 16, 2022 15:44
Some merging rules to make collaboration easier through repository order. Think of rebasing as updating the context in which you write your feature, see also: https://gonzalo-bulnes.github.io/blog/gardening_with_git/context-from-scratch.html
# safe merge
#
# merge the branch XXXXXXXX-add-example-feature into master
# make sure the feature is properly tested and
# doesn't break anything in its original context
git checkout XXXXXXXX-add-example-feature
rake # the test suite MUST NOT raise any error
# make sure your local copy of master is up-to-date