Skip to content

Instantly share code, notes, and snippets.

@Mayurifag
Mayurifag / test_helper.rb
Created January 26, 2022 14:10 — forked from DavertMik/test_helper.rb
Better debugging for rails tests: logs and custom output to stdout
# run it as DEBUG=true rails test
if ENV['DEBUG']
Rails.logger = Logger.new(STDOUT)
Rails.logger.level = Logger::INFO
Rails.logger.datetime_format = ""
Rails.logger.formatter = proc do |severity, _time, _progname, msg|
"#{severity.green}: #{msg}\n"
end
@Mayurifag
Mayurifag / application.rb
Created January 16, 2022 20:27 — forked from KELiON/application.rb
Compile all assets from roots
# Precompile all JS/CSS in root of app/assets/stylesheets and app/assets/javascripts
config.assets.precompile +=
Dir[::Rails.root.join('app/assets/*/*.{js,css,coffee,sass,scss}*')].
map { |i| File.basename(i).sub(/(\.js)?\.coffee$/, '.js') }.
map { |i| File.basename(i).sub(/(\.css)?\.(sass|scss)$/, '.css') }.
reject { |i| i =~ /^application\.(js|css)$/ }
@Mayurifag
Mayurifag / shit.ahk
Created August 10, 2021 14:43
shit.ahk
; Rbutton related
#SingleInstance Force
SendMode Input
Process, Priority, , High
SetBatchLines, -1
; ahk Mozilla...
SetTitleMatchMode, Regex
; Capslock related
SetCapsLockState, AlwaysOff
@Mayurifag
Mayurifag / config.yml
Created June 7, 2020 15:54 — forked from hmcfletch/config.yml
An example Circle CI workflow for a Ruby on Rails app
version: 2
jobs:
checkout_and_deps:
docker:
- image: circleci/ruby:2.5.1-node-browsers
steps:
- checkout
- run:
@Mayurifag
Mayurifag / dante_setup.sh
Created October 9, 2018 10:34 — forked from gpchelkin/dante_setup.sh
How To Setup SOCKS5 Proxy Server using Dante on Ubuntu 16.04
### NOT A SCRIPT, JUST A REFERENCE!
# install dante-server
sudo apt update
sudo apt install dante-server
# or download latest dante-server deb for Ubuntu, works for 16.04. and 18.04:
wget http://archive.ubuntu.com/ubuntu/pool/universe/d/dante/dante-server_1.4.2+dfsg-2build1_amd64.deb
# or older version:
wget http://ppa.launchpad.net/dajhorn/dante/ubuntu/pool/main/d/dante/dante-server_1.4.1-1_amd64.deb
@Mayurifag
Mayurifag / motioninterpolation.vpy
Created August 20, 2018 04:38 — forked from phiresky/motioninterpolation.vpy
Realtime motion interpolating 60fps playback in mpv
# vim: set ft=python:
# see the README at https://gist.github.com/phiresky/4bfcfbbd05b3c2ed8645
# source: https://github.com/mpv-player/mpv/issues/2149
# source: https://github.com/mpv-player/mpv/issues/566
# source: https://github.com/haasn/gentoo-conf/blob/nanodesu/home/nand/.mpv/filters/mvtools.vpy
import vapoursynth
core = vapoursynth.get_core()
@Mayurifag
Mayurifag / 0_Paginate_without_reload_all_page_with_kaminari.md
Created April 7, 2018 11:25 — forked from yannvery/0_Paginate_without_reload_all_page_with_kaminari.md
How to paginate on an ajax way ( with jquery and kaminari )

Paginate with Kaminari without reload all data

Use :remote => true option on link_to and paginate Region index page

@Mayurifag
Mayurifag / .dockerignore
Created March 13, 2018 00:11 — forked from davidderus/.dockerignore
Docker + Rails + Puma + Postgres + Nginx
.git
.gitignore
/doc
.yardoc
coverage
jsdoc
/tmp
/log
Dockerfile
Dockerfile.prod
@Mayurifag
Mayurifag / DocsMiner.MD
Created February 2, 2018 03:25 — forked from anonymous/DocsMiner.MD
ДоксМайнер мануал

Эта инструкция собрана по крупицам анонов и призвана помочь всем тем, кто не знает как скачивать личные документы из вк. Часто возникает один вопрос:

Можно ли скачивать личные документы конкретного пользователя вк?

Да, можно и нужно. Читай подробнее инструкцию и поймешь как это сделать.

Поиск документов

  1. Заходим на vk.com/docs
@Mayurifag
Mayurifag / userChrome.css
Created November 27, 2017 05:16
dark firefox?
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
:root:-moz-lwtheme-brighttext {
--chrome-background-color: #424242 !important;
--chrome-color: #8f8f8f !important;
--chrome-secondary-background-color: #363636 !important;
--toolbox-border-bottom-color: #333333 !important;
--url-and-searchbar-border-color: #333333 !important;
--focus-ring-box-shadow: #191917 !important;
--url-and-searchbar-background-color: #363636 !important;