Skip to content

Instantly share code, notes, and snippets.

@kfreiman
kfreiman / s
Created February 26, 2020 22:41
s
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC5J1lnCTOdfZYFYshOM/E+tJvWTOZBgHNScWarRfXjiqIYImAOo8x9x3VMYN5FrweWisBCm44Pi2GE6B1UCsDgPRdJ4GBPFeNb3czAU5fwoXANrg5rM992YHqxB0IEEqDYAt3wtGOWHcA4lfE14uQAUNPsl1QmI+q1DmvOoBR5uVWi1rDNAK/TWRX8GcQ87SkmVT0BzHVAgx+8S/s0NcUiazv9K4/mmTMFxWgVJJc3MEanfR4J+G/ioRlxU4/pOyMdWsqjne9SYhteC2plL3lYT/F2FQOj+MHYzwGnYH1aVlUepfqujINUKKTXIl+8ebLjX0n4W5CTR4HCqZHQzRT7KKe3HGxhmOHp62mfQPRd750MC4JybL0bnrpEuDEWnOA8M4e0IZsH/C6vCCHFOloyXS/aoStVhlZtnT3wQJj5KN3QBv9JhnFebcyzo+U+Lr1px18cL36YhMSxPX4xTlsJxHpIN+aYJy8IGszhywzI2fINAsLLpgx0J5ElNo6u7og8tcMtsX1hsbFczN3YCs+KwP8i4LJ7rFGOOlBa9+aCVeE6NCnVaU0Oox8PAt/x7bgvvp81Vl+EFCLPmArxv7OcRZaez+4SLasoF/IdeN6cSlcgaTIi1c9WiJkmCPr/IIyXHNgpySL3NiYSi7wiKAYJHlWQPkscXhGDSwclIXVKPQ== [email protected]
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC85nHHCya5Gi6QFgq6nom/K9qrXqltGoEZ6zN8LInxWGD12Nnf0Sno4aA48VNMQLpxZWzpbRb8FMBhbmr1zNE/zd2dQcgVWbcMq9euptq/ljz0tCKt/5o8BpH82TJIYruRQSdfSGZL/SCrXefUkVC4cE6KiOzr33dl3snKDzsmpALSo4tJPjyi2gUsRD7EwffK8RXZOeKDMe2ZIFZt6eY1Rwi44YuTiOIB/6DmNTd3rk6JLXNnuf3
@kfreiman
kfreiman / alacritty_show_hide.sh
Last active July 17, 2019 09:18
show hide alacritty by hotkey (xdotool)
#!/bin/bash
# activate and rise or hide alacritty terminal window
# xdotool required. For ubuntu/debian: `sudo apt install xdotool`
alacrittyid=$(xdotool search --desktop 0 --class alacritty)
currentid=$(xdotool getactivewindow)
if [ -z $alacrittyid ]
then
@kfreiman
kfreiman / .hyper.js
Last active December 24, 2018 17:25
mac hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: "stable",
@kfreiman
kfreiman / showhide.sh
Created September 18, 2018 09:04
xfce hotkey show or hide window via xdotool
#!/bin/bash
# execute this script by setted hotkey in keyboard preferences
# this example operates with hyper-terminal
hyperid=$(xdotool search --desktop 0 --class hyper)
currentid=$(xdotool getactivewindow)
if [ -z $hyperid ]
then
hyper
@kfreiman
kfreiman / .hyper.js
Last active June 17, 2018 20:49
hyper terminal sync settings
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: "stable",
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@kfreiman
kfreiman / dumper.sh
Created February 25, 2016 09:57
MySQL dump, send to another server and clean old files script
mysqldump -uuser -ppass -hhost basename | gzip > `date +/local/path/%Y%m%d.%H%M%S.sql.gz`
sshpass -p "pass" rsync -r /local/path/ remoteuser@host:/remote/path
find /local/path -name "*.sql.gz" -mtime +7 -exec rm {} \;