Skip to content

Instantly share code, notes, and snippets.

View JuPlutonic's full-sized avatar
💭
🍺

AMZ JuPlutonic

💭
🍺
  • Msk, Russian Fed.
View GitHub Profile
<%=
simple_form_for model, {
html: { id: "doc-form", multipart: true },
remote: remote,
portal: portal ||= false,
operator: operator ||= false,
npa_show: npa_show ||= false,
authenticity_token: true }.merge(path_options) do |doc|
%>
<% present(model, DocumentPresenter) do |p| %>
#!/bin/bash
# AstraLinux SE 1.6, AstraLinux CE 2.12, Debian stretch, foreman installer
# ========================================================================
# Author: Alexey Kovin <4l3xk3@gmail.com>
# All rights reserved
# Russia, Electrostal, 2018
# Localization
# ------------
@JuPlutonic
JuPlutonic / gist:f4a82cfcb003747039916bca7e941ad7
Created December 8, 2019 10:21
testdisk WIP 7.2 and 7.1 (Qt glitches, s/ it on https://bugreports.qt.io/browse/) compilation error
<details open="">
<summary>Todo: add new bug on testdisk compilation</summary>
<pre> Compilation error is QT5 related, but:
my OS is LUBUNTU 19.04 - LXQt DE worked on system's Qt
and complicated Qt suites were compiled from source in this setup without errors...
So, I think TESTDISK need to be bottled...
@JuPlutonic
JuPlutonic / install_perl_software.sh
Last active November 25, 2019 11:45 — forked from ashwinvis/install_stow.sh
GNU stow and youtube-viewer (absent in CPAN) installation.
#!/bin/bash
# Set up CPAN, cpanm, youtube-viewer, po4a[x], stow
# Append the following lines to .bashrc / .profile
# PERL_DIR=$HOME/.perl
# export PERL_LOCAL_LIB_ROOT=$PERL_DIR:${PERL_LOCAL_LIB_ROOT}
# export PATH=$PERL_DIR/bin:$PATH
# export PERL5LIB=$PERL_DIR/lib/perl5
# PERL_MB_OPT="--install_base \"${PERL_DIR}\""; export PERL_MB_OPT;
# PERL_MM_OPT="INSTALL_BASE=${PERL_DIR}"; export PERL_MM_OPT;
@JuPlutonic
JuPlutonic / docker-compose.sh
Last active September 25, 2019 22:22 — forked from Enteee/docker-compose.sh
A `docker-compose` wrapper for multiple configuration files with relative paths
#!/usr/bin/env bash
# Docker compose wrapper with submodule support
# Reads all docker-compose.yaml files given with -f / --files and compiles one
# big docker-compose.yaml file before running docker-compose.
#
# This is useful when you have nested docker-compose subprojects in different
# folders which contain relative paths.
# see: https://github.com/docker/compose/issues/3874
#
# Environment:
@JuPlutonic
JuPlutonic / rails_app_workflow.md
Created September 5, 2019 14:03 — forked from lorenadl/rails_app_workflow.md
Rails app workflow
@JuPlutonic
JuPlutonic / gist:0688440c7617f6b5acc2510c49be8916
Created July 3, 2019 17:50
also PR#12529 closed, not merged on openvpn. Also test CVS if it installs
HOMEBREW_NO_AUTO_UPDATE=1 brew install google-authenticator-libpam
==> Installing dependencies for google-authenticator-libpam: libbsd, expat and qrencode
==> Installing google-authenticator-libpam dependency: libbsd
==> Downloading https://linuxbrew.bintray.com/bottles/libbsd-0.9.1.x86_64_linux.
==> Downloading from https://akamai.bintray.com/f1/f10cb5aa72f4b880447ae2eb88ac5
######################################################################## 100.0%
==> Pouring libbsd-0.9.1.x86_64_linux.bottle.tar.gz
🍺 /home/linuxbrew/.linuxbrew/Cellar/libbsd/0.9.1: 260 files, 925.5KB
==> Installing google-authenticator-libpam dependency: expat
==> Downloading https://linuxbrew.bintray.com/bottles/expat-2.2.7.x86_64_linux.b
Binstubs are wrapper scripts around executables (sometimes referred to as
"binaries", although they don't have to be compiled) whose purpose is to prepare
the environment before dispatching the call to the original executable.
In the Ruby world, the most common binstubs are the ones that RubyGems generates
after installing a gem that contains executables. But binstubs can be written in
any language, and it often makes sense to create them manually.
## RubyGems
@JuPlutonic
JuPlutonic / # subversion - 2019-05-01_05-20-41.txt
Created May 1, 2019 16:38
subversion on Ubuntu 19.04 - Homebrew build logs
Homebrew build logs for subversion on Ubuntu 19.04
Build date: 2019-05-01 05:20:41
@JuPlutonic
JuPlutonic / # subversion - 2019-05-01_05-20-41.txt
Created May 1, 2019 16:22
subversion on Ubuntu 19.04 - Homebrew build logs
Homebrew build logs for subversion on Ubuntu 19.04
Build date: 2019-05-01 05:20:41