Skip to content

Instantly share code, notes, and snippets.

View y-fedorov's full-sized avatar
🧑‍💻

Yaroslav Fedorov y-fedorov

🧑‍💻
View GitHub Profile
@y-fedorov
y-fedorov / script.sh
Created February 14, 2018 11:44
Install Docker Oracle Linux 7
#
# Install Docker Oracle Linux 7
# based on https://blogs.oracle.com/hlsu/install-docker-on-oracle-linux-7
#
# Preparation
sudo yum install -y vim
# cd /etc/yum.repos.d/
# curl -O http://yum.oracle.com/public-yum-ol7.repo
@y-fedorov
y-fedorov / install-docker.sh
Last active August 30, 2024 18:40 — forked from frgomes/install-docker.sh
Debian - install docker in Debian Jessie
#!/bin/bash
# prepare envirionment
sudo apt-get install tmux vim sudo
add `username` to `sudo` group
usermod -aG sudo `username`
# compiled from https://docs.docker.com/engine/installation/linux/debian/#/debian-jessie-80-64-bit
@y-fedorov
y-fedorov / gdb.sh
Created December 4, 2017 15:24
GDB usage example
-bash-4.1$ gdb
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
set CLASSPATH=%CLASSPATH;fop\fop-2.2.jar;fop\avalon-framework-api-4.3.1.jar;fop\avalon-framework-impl-4.3.1.jar;fop\commons-logging-1.0.4.jar;fop\commons-io-1.3.1.jar;fop\fontbox-2.0.4.jar;fop\xmlgraphics-commons-2.2.jar
java org.apache.fop.fonts.apps.TTFReader arial.ttf arial.xml
java org.apache.fop.fonts.apps.TTFReader DejaVuSans.ttf DejaVuSans.xml
java org.apache.fop.fonts.apps.TTFReader DejaVuSans-Bold.ttf DejaVuSans-Bold.xml
java org.apache.fop.fonts.apps.TTFReader DejaVuSans-BoldOblique.ttf DejaVuSans-BoldOblique.xml
java org.apache.fop.fonts.apps.TTFReader DejaVuSans-Oblique.ttf DejaVuSans-Oblique.xml
@y-fedorov
y-fedorov / .screenrc
Created April 17, 2017 12:47
screen config for tmux like bindings config
# Oracle Linux 6.* there is no support for the tmux, but I really like tmux.
#
# based on https://gist.github.com/jelsas/864090
#remap Ctrl+A to Ctrl+B
escape ^Bb
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
//
// main.cpp
// luxoft quiz application
//
// Created by Yaroslav Fedorov on 24/02/2017.
// Copyright © 2017 Yaroslav Fedorov. All rights reserved.
//
//
// LUXOFT task for C++ Russia 2017 contest
Ctrl + a : move to start
Ctrl + e : move to end
Ctrl + xx : switch to start and back
Ctrl + w : cut left word to clipboard
Ctrl + k : cut from cursor to right to clipboard
Ctrl + u : cut from cursor to left to clipboard
Ctrl + y : paste
Ctrl + _ : undo
@y-fedorov
y-fedorov / vpn_run.scpt
Last active April 16, 2025 12:42
Cisco AnyConnect Secure Mobility Client on MacOS autofill password and connect (apple script) (version 2.0)
--
-- Yaroslav Fedorov <[email protected]>
-- 11/14/2016
-- URL (http://indy-world.net/2016/11/cisco-anyconnect-secure-mobility-client-on-macos-autofill-password-and-connect-apple-script-version-2-0/)
set userLoginName to "<<user_login>>"
set keychainRecordName to "cisco_any_connect_auth"
set serverUri to "vpn.company.com"
on getPassword(keychainItemName)
--
-- for command line osascript ./vpn_run.scpt and add permission to "security & privacy"
--
activate application "Cisco AnyConnect Secure Mobility Client"
tell application "System Events"
repeat until window 1 of process "Cisco AnyConnect Secure Mobility Client" exists
end repeat
tell process "Cisco AnyConnect Secure Mobility Client"
@y-fedorov
y-fedorov / # tesseract - 2016-09-13_10-13-25.txt
Created September 13, 2016 07:19
tesseract on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for tesseract on Mac OS X 10.11.6
Build date: 2016-09-13 10:13:25