Skip to content

Instantly share code, notes, and snippets.

View tenequm's full-sized avatar

Misha Kolesnik tenequm

View GitHub Profile
@tenequm
tenequm / ansible-role-test-ssh.sh
Last active April 22, 2017 02:52 — forked from geerlingguy/ansible-role-test.sh
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)
@tenequm
tenequm / vim.sh
Created May 23, 2017 18:21
Script for applying comfort Vim environment.
#!/bin/bash
# Applying comfort Vim environment
mkdir -p ~/.vim/autoload
wget https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim -O ~/.vim/autoload/plug.vim
wget https://raw.githubusercontent.com/1nfinitum/dotfiles/master/server/.vimrc -O ~/.vimrc
wget tiny.cc/vimscript -O /home/vagrant/vimscript && chmod +x /home/vagrant/vimscript && /home/vagrant/vimscript && vim -E +PlugInstall +qall 2&>/dev/null; sudo su -l vagrant -c '/home/vagrant/vimscript && vim -E +PlugInstall +qall 2&>/dev/null'
#!/bin/bash
# iptables firewall for common LAMP servers.
#
# This file should be located at /etc/firewall.bash, and is meant to work with
# Jeff Geerling's firewall init script.
#
# Common port reference:
# 22: SSH
# 25: SMTP
# 80: HTTP
@tenequm
tenequm / vim_config
Last active May 22, 2018 08:43
Tiny text to use with curl for fast vim configuration.
wget tiny.cc/vimscript -O ~/vimscript && chmod +x ~/vimscript && ~/vimscript && rm -rf ~/vimscript
@tenequm
tenequm / sVim.rc
Last active March 23, 2018 13:01
sVim configuration file
unmapAll
set nosmoothscroll
set preventdefaultesc
let mapleader = ","
let scrollstep = 100
let newtaburl = "favorites://"
let hintcharacters = "1234567890";
map "j" scrollDown
map "k" scrollUp
{
"jobs": [
{
"type": "http",
"args": {
"method": "GET",
"path": "https://autolight.byt",
"interval_ms": 1
}
}
https://gist.github.com/ test
@tenequm
tenequm / near-ping-cron-install.sh
Last active July 29, 2022 15:42
Near ping automation
#!/bin/bash
# Set variables
read -p "Your wallet account ID (e.g. for 'demo.shardnet.near' wallet enter 'demo'): " ACCOUNTID
read -p "Your staking pool ID (e.g. for 'demo.factory.shardnet.near' enter'demo'): " POOLID
# Creating script file
cat << EOF > $HOME/near-ping.sh
#!/bin/bash

Keybase proof

I hereby claim:

  • I am tenequm on github.
  • I am tenequm (https://keybase.io/tenequm) on keybase.
  • I have a public key ASCK3a1Q5-F9xcCrtB0p7ebUea9tIgzT2zkfwlxBrxVslAo

To claim this, I am signing this object: