Skip to content

Instantly share code, notes, and snippets.

View yermulnik's full-sized avatar
🇺🇦
Yz

George L. Yermulnik yermulnik

🇺🇦
Yz
  • Earth, Europe, Ukraine, Kyiv
  • 23:01 (UTC +03:00)
  • LinkedIn in/yermulnik
View GitHub Profile
@nickrw
nickrw / volsay.sh
Created April 19, 2013 12:43
volsay: Wrapper around OSX's `say' command, which sets the system volume to the requested level, then restores volume / mute state once speech is complete.
#!/bin/bash
function usage() {
echo "usage: $0 <volume (0-100)> <say args...>"
echo
echo "Unmutes and sets the system volume to volume%, passing the remaining"
echo "arguments to the OSX \`say' command, restoring volume / mute setting"
echo "to previous values after the speech has completed."
exit 1
}
@hofmannsven
hofmannsven / README.md
Last active August 19, 2024 12:17
Git CLI Cheatsheet
@jtriley
jtriley / ec2-fingerprint-key
Created November 1, 2013 19:28
Simple Python script that computes both public and private RSA key fingerprints as used by Amazon EC2
#!/usr/bin/env python
import hashlib
import optparse
import paramiko
from Crypto.PublicKey import RSA
def insert_char_every_n_chars(string, char='\n', every=64):
return char.join(
@nolanlawson
nolanlawson / completion-for-gradle.md
Last active April 5, 2024 07:43
Gradle tab completion for Bash. Works on both Mac and Linux.

Gradle tab completion script for Bash

A tab completion script that works for Bash. Relies on the BSD md5 command on Mac and md5sum on Linux, so as long as you have one of those two commands, this should work.

Usage

$ gradle [TAB]
@kra3
kra3 / eq.preset
Created March 26, 2014 12:11
Audacious presets: ~/.config/audacious/eq.preset
[Presets]
Preset0=Classical
Preset1=Club
Preset2=Dance
Preset3=Flat
Preset4=Live
Preset5=Laptop Speakers/Headphone
Preset6=Rock
Preset7=Pop
@RichardBronosky
RichardBronosky / multiple_ssh_setting.md
Last active June 5, 2024 19:16 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@jordiclariana
jordiclariana / terraform.sh
Last active April 11, 2022 12:02
Terraform bash completion
_terraform() {
local cmds cur colonprefixes;
COMPREPLY=();
if [[ "${COMP_WORDS[$COMP_CWORD]}" =~ ^-target= ]]; then
cmds=$(grep -hE "^ *(module|resource)" *.tf | tr -d '"'| awk '
$1 ~ /module/ {print "-target="$1"."$2};
$1 ~ /resource/ { print "-target="$2"."$3}
')
else
cmds=$(terraform --help ${COMP_WORDS[1]} | awk '
@Ea87
Ea87 / completion-for-gradle.md
Last active June 23, 2017 09:26 — forked from nolanlawson/completion-for-gradle.md
Gradle tab completion for Bash. Works on both Mac and Linux.

Gradle tab completion script for Bash

A tab completion script that works for Bash. Relies on the BSD md5 command on Mac and md5sum on Linux, so as long as you have one of those two commands, this should work.

Usage

$ gradle [TAB]
@sahilsk
sahilsk / opswork cheatsheet.md
Last active August 16, 2022 16:31
aws opswork cheatsheet
import datetime
import json
import logging
import os
import socket
import ssl
from urllib2 import Request, urlopen, URLError, HTTPError
import boto3