Skip to content

Instantly share code, notes, and snippets.

View RobBikmansurov's full-sized avatar
🏀
I enjoy playing basketball and running

RobBikmansurov RobBikmansurov

🏀
I enjoy playing basketball and running
View GitHub Profile
@Alevsk
Alevsk / install-docker.yaml
Last active October 16, 2025 13:27
Ansible playbook to install docker
- hosts: "{{ HOSTS }}"
name: Install Docker
become: yes
vars:
docker_group: docker
tasks:
- name: Install apt-transport-https
ansible.builtin.apt:
name:
- apt-transport-https
@RobBikmansurov
RobBikmansurov / BootstrapToRails6.md
Created October 24, 2020 05:37 — forked from nachozt/BootstrapToRails6.md
Bootstrap to Rails 6 with webpacker

Step 1:

Add bootstrap and its dependencies:

yarn add bootstrap jquery popper.js

Step 2:

in config/webpack/environment.js add the following:

/* Prevent unsecure [target="_blank] links */
a[target='_blank']:not([rel~='noopener']):not([rel~='noreferrer']) {
outline: 2px dashed red;
}
@alexey-goloburdin
alexey-goloburdin / voxengine.js
Created February 9, 2020 08:36
voximplant_outgoing.html — HTML страница, которая может звонить на мобильные и городские номера телефонов, используя VoxImplant Web SDK. voxengine.js — JS в самом облаке VoxImplant, который обрабатывает звонок и ставит его на запись.
// see YouTube Video about it — https://youtu.be/VcBJmHNSxG4
VoxEngine.addEventListener(AppEvents.CallAlerting, function (e) {
call = e.call;
callerid = e.destination;
call.record();
var pstnCall = VoxEngine.callPSTN(e.destination, 'your_495_or_8800_phone_number');
VoxEngine.easyProcess(e.call, pstnCall);
});
@nachozt
nachozt / BootstrapToRails6.md
Last active November 8, 2022 23:26
Bootstrap to Rails 6 with webpacker

Step 1:

Add bootstrap and its dependencies:

yarn add bootstrap jquery popper.js

Step 2:

in config/webpack/environment.js add the following:

@installero
installero / html-css-livereload.md
Last active July 23, 2020 13:22
HTML/CSS рецепты: LiveReload

Ссылки

@jalkoby
jalkoby / my_awesome_rspec_hacks.rb
Created September 29, 2018 13:05
My awesome RSpec hacks
## Context + metadata
shared_context 'Logged as a user', role: true do
let(:user) { |example| create :user, example.metadata[:role] }
before { login_as user }
end
scenario "Login as a client", role: :client
scenario "Login as a customer", role: :customer
scenario "Login as an admin", role: :admin
@vorozhba
vorozhba / Как удалить commit в Github.txt
Last active October 16, 2025 17:41
Как удалить commit в Github
1. Получаем хэш-код коммита, к которому хотим вернуться.
2. Заходим в папку репозитория и пишем в консоль:
$ git reset --hard a3775a5485af0af20375cedf46112db5f813322a
$ git push --force
@strzibny
strzibny / unused_routes.rb
Created May 5, 2016 15:21
Find unused routes in Rails
#!/usr/bin/env ruby
# Extracted from traceroute gem + checking the presence of views as well
require_relative './config/environment.rb'
class Traceroute
def initialize(app)
@app = app
end
@subfuzion
subfuzion / curl.md
Last active October 11, 2025 00:58
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.