Skip to content

Instantly share code, notes, and snippets.

View kirill-fedyanin's full-sized avatar

Kirill kirill-fedyanin

View GitHub Profile
@rsvp
rsvp / noise.sh
Last active April 18, 2024 14:18
noise : relaxing ambient Brown noise generator (cf. white noise) | Linux bash script using sox | CogSci notes
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2019-01-02
#
# _______________| noise : ambient Brown noise generator (cf. white noise).
#
# Usage: noise [minutes=59] [band-pass freq center=1786] [wave]
# ^minutes can be any positive integer.
# Command "noise 1" will display peak-level meter.
#
# Dependencies: play (from sox package)
@zunda
zunda / gist:5328483
Last active December 15, 2015 21:49
While trying to use Spork following Learn Web Development with the Ruby on Rails Tutorial, it seems that the installed gem does not put enough permissions to the executable. http://ruby.railstutorial.org/chapters/static-pages?version=4.0#sec-spork
$ bundle install
:
Using spork-rails (3.2.1) from git://github.com/railstutorial/spork-rails.git (at rails-4)
:
$ bundle exec spork --bootstrap
/usr/local/bin/spork:23:in `load': cannot load such file -- /var/lib/gems/1.9.1/gems/spork-1.0.0rc3/bin/spork (LoadError)
from /usr/local/bin/spork:23:in `<main>'
$ ls -l /var/lib/gems/1.9.1/gems/spork-1.0.0rc3/bin/spork
-rwx--x--x 1 root root 460 Apr 6 15:32 /var/lib/gems/1.9.1/gems/spork-1.0.0rc3/bin/spork
$ sudo chmod a+r /var/lib/gems/1.9.1/gems/spork-1.0.0rc3/bin/spork
@julionc
julionc / 00.howto_install_phantomjs.md
Last active July 8, 2024 21:44
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@afn
afn / gist:c04ccfe71d648763b306
Created June 12, 2014 15:35
Restart phantomjs when it hangs
# Borrowed from https://github.com/y310/rspec-retry/blob/master/lib/rspec/retry.rb
CAPYBARA_TIMEOUT_RETRIES = 3
RSpec.configure do |config|
config.around(:each, type: :feature) do |ex|
example = RSpec.current_example
CAPYBARA_TIMEOUT_RETRIES.times do |i|
example.instance_variable_set('@exception', nil)
self.instance_variable_set('@__memoized', nil) # clear let variables
@Epigene
Epigene / MB puma + Nginx settings
Last active December 28, 2020 19:35
MB puma + Nginx settings
# /config/puma.rb
app = "manabalss" # App-specific
root = "/home/deployer/apps/#{app}"
workers 5
threads 1, 1 # relying on many workers for thread-unsafe apps
rackup DefaultRackup
port 11592
@sgnn7
sgnn7 / enable_mongo.sh
Created December 22, 2015 23:06
Mongodb 3.2 on Ubuntu 15.10
echo '[Unit]
Description=High-performance, schema-free document-oriented database
After=syslog.target network.target
[Service]
User=mongodb
Group=mongodb
ExecStart=/usr/bin/mongod -f /etc/mongod.conf
[Install]
@xdralex
xdralex / checklist.md
Created April 19, 2021 13:39
ML/DL/CS Checklist

Deep Learning

concepts

  • forward and backward propagation
  • vanishing gradient
  • image convolution operation
  • feature map, filter/kernel
  • receptive field
  • embedding
  • translation invariance
@aidenlx
aidenlx / fish_shell_local_install.sh
Last active September 20, 2022 13:08 — forked from masih/fish_shell_local_install.sh
Installs Fish Shell without root access (work with fish v3.5.1)
#!/bin/bash
# Script for installing Fish Shell on systems without root access.
# Fish Shell will be installed in $HOME/.local
# It's assumed that wget and following packages is installed (https://github.com/fish-shell/fish-shell#dependencies-1)
# 1. a C++11 compiler (g++ 4.8 or later, or clang 3.3 or later)
# 2. CMake (version 3.5 or later)
# exit on error
set -e