Skip to content

Instantly share code, notes, and snippets.

View ewwmy's full-sized avatar
🤌

Andrew A. ewwmy

🤌
  • Moscow, Russia
  • 10:21 (UTC +03:00)
View GitHub Profile
@ewwmy
ewwmy / automator_new_file.scpt
Created August 22, 2021 15:59 — forked from rarylson/automator_new_file.scpt
AppleScript to create a new file in Finder (to be used in Automator)
-- AppleScript to create a new file in Finder
--
-- Use it in Automator, with the following configuration:
-- - Service receives: no input
-- - In: Finder.app
--
-- References:
-- - http://apple.stackexchange.com/a/129702
-- - http://stackoverflow.com/a/6125252/2530295
-- - http://www.russellbeattie.com/blog/fun-with-the-os-x-finder-and-applescript
@ewwmy
ewwmy / ffmpeg_frames.sh
Created May 22, 2021 19:53 — forked from loretoparisi/ffmpeg_frames.sh
Extract all frames from a movie using ffmpeg
# Output a single frame from the video into an image file:
ffmpeg -i input.mov -ss 00:00:14.435 -vframes 1 out.png
# Output one image every second, named out1.png, out2.png, out3.png, etc.
# The %01d dictates that the ordinal number of each output image will be formatted using 1 digits.
ffmpeg -i input.mov -vf fps=1 out%d.png
# Output one image every minute, named out001.jpg, out002.jpg, out003.jpg, etc.
# The %02d dictates that the ordinal number of each output image will be formatted using 2 digits.
ffmpeg -i input.mov -vf fps=1/60 out%02d.jpg
@ewwmy
ewwmy / git_status_issue_mode_100644_to_100755.txt
Created March 24, 2021 12:25 — forked from georgiybykov/git_status_issue_mode_100644_to_100755.txt
old mode 100644 => new mode 100755 issue / После смены ОС и git clone репозитория
После переустановки ОС или клонировании вашего репозитория на другую локальную машину, съемный жесткий диск и прочее
может возникнуть проблема, которая при команде `git status` показывает, что все (или не все) фалы были изменены
хотя вы ничего не изменяли, а только копировали репозиторий:
$ git diff
#=> old mode 100644
new mode 100755
Есть два способа решить эту проблему:
@ewwmy
ewwmy / default
Created February 17, 2021 15:30 — forked from dtomasi/default
Brew Nginx PHP7
server {
listen 80;
server_name localhost;
root /Users/YOUR_USERNAME/Sites;
access_log /Library/Logs/default.access.log main;
location / {
include /usr/local/etc/nginx/conf.d/php-fpm;
}
@ewwmy
ewwmy / tokens.md
Created February 16, 2021 22:06 — forked from zmts/tokens.md
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@ewwmy
ewwmy / gist:e0689d5d225100af2326be1afc9aaf17
Created February 9, 2021 15:10 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: