Usually, I update brew/cask tools using bash function with a commands listed below:
brew update
brew upgrade
brew cleanup --force
brew cask cleanup --force
brew prune| #!/usr/bin/env bash | |
| # | |
| # This script hardens new Debian instance securing ssh. | |
| # | |
| # WARNING: You have to create users and store their ssh | |
| # keys in ~/.ssh/authorized_keys on the server BEFORE run it. | |
| # | |
| # created date: 02.2016 | |
| # last update date: 06.02.2017 | |
| # author: @yugoslavskiy |
| #!/usr/bin/env bash | |
| # | |
| # Arguments: | |
| # - username | |
| # - user pass | |
| # - user rsa pub key | |
| # | |
| # This script: | |
| # - creates user with password | |
| # - adds user into sudoers and sshusers group |
В данный момент появилось большое количество языков, которые позиционируют себя как иструменты для достижения различных целей, начиная от достижения memory safety вплоть до абстракции от всего и управление этими примитивами. Тем не менее, язык С остается до сих пор востребованным. Этому есть несколько причин.
На этом языке написаны основные модули операционных систем
До сих пор множество программного обеспечения пишется на си, в частности для embedded-устройств
Этот язык позволяет понять принципы работы с памятью, для того, чтобы избежать распространенные уязвимости, которые могут привести к серьезным утечкам данных или system compromise.
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # | |
| # created date: 26.09.2016 | |
| # last update date: 26.09.2016 | |
| # author: @yugoslavskiy | |
| # | |
| # post-commit hook script to make actual master branch archive in every commit | |
| # 1) save it as a .git/hooks/post-commit | |
| # 2) create .git/hooks/last_hooked_commit — first time it has to be previous commit hash: | |
| # $ git log -1 --format="%H" > .git/hooks/last_hooked_commit |
created_date: 02.07.2016
last_update_date: 02.07.2016
author: @yugoslavskiy
| #!/usr/bin/env bash | |
| # original file: | |
| # https://raw.githubusercontent.com/gnachman/iTerm2/master/tests/imgcat | |
| # tmux requires unrecognized OSC sequences to be wrapped with DCS tmux; | |
| # <sequence> ST, and for all ESCs in <sequence> to be replaced with ESC ESC. It | |
| # only accepts ESC backslash for ST. | |
| function print_osc() { | |
| if [[ $TERM == screen* ]] ; then |
| #!/usr/bin/env bash | |
| # | |
| # Script to create rsa keys and server profile (alias) in your ssh_config. | |
| # | |
| # created date: 20.03.2016 | |
| # last update date: 11.05.2017 | |
| # author: @yugoslavskiy | |
| # | |
| usage () { |