Skip to content

Instantly share code, notes, and snippets.

View ShockwaveNN's full-sized avatar

Pavel Lobashov ShockwaveNN

View GitHub Profile
@ShockwaveNN
ShockwaveNN / aliases
Last active June 19, 2020 06:52
aliases
git config --global alias.ammend 'commit -av --amend --no-edit'
git config --global alias.call 'commit -av'
git config --global alias.pprune 'pull --prune'
echo 'alias rubocop_update="git pull --prune && bundle install && rubocop --auto-gen-config && git diff && git checkout -f"' >> ~/.bashrc
echo 'alias master_update="git checkout master && git pull --prune"' >> ~/.bashrc
echo 'alias system_update="sudo apt -y update && sudo apt dist-upgrade && sudo snap refresh && flatpak update"' >> ~/.bashrc
@ShockwaveNN
ShockwaveNN / feedly_export_saved_for_later
Last active June 21, 2020 21:25 — forked from bradcrawford/feedly_export_saved_for_later
Working script for latest feedly redising. Drop support of `time` field, no longer avaible (or I din't found it)
// Simple script that exports a users "Saved For Later" list out of Feedly
// as a JSON string.
//
// This was intended for use in the Google Chrome's "Inspector" tool so your
// mileage may vary if used in other contexts.
//
// Format of JSON is as follows:
// [
// {
// title: "Title",
@ShockwaveNN
ShockwaveNN / BatchResizeWatermark.bat
Created November 24, 2013 11:17
Для работы требуется Imagick 1. Конвертирует в png 2. Меняет размер на 1200*800 учитывая соотношения сторон 3. Добавляет ватермарку "vk.com/club48760252"
MKDIR %1\converted
for %%f in (%1\*.jpg) do ( convert "%%f" -gravity southeast -stroke "#000C" -pointsize 24 -resize 1200x800 -strokewidth 2 -annotate 0 "vk.com/club48760252" -stroke none -fill white -annotate 0 "vk.com/club48760252" "%1\converted\%%~nf.png" )