Skip to content

Instantly share code, notes, and snippets.

Avatar

Maksim Surguy msurguy

View GitHub Profile
@msurguy
msurguy / NodeTree
Created May 24, 2021
Sverchok.0.6.0.0 (0ab145c) | Blender.2.92.0 | NodeTree | 2021.05.24 | 09:40 | license: CC BY-SA
View NodeTree
{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"nodes": {
"Frame info": {
"bl_idname": "SvFrameInfoNodeMK2",
"color": [
0.0,
0.5,
@msurguy
msurguy / SVG Save.json
Last active Apr 4, 2021
Sverchok SVG Document Export Preset
View SVG Save.json
{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"nodes": {
"File Path": {
"bl_idname": "SvFilePathNode",
"custom_socket_props": {},
"height": 100.0,
"hide": false,
View torusnodes.json
{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"nodes": {
"Box": {
"bl_idname": "SvBoxNodeMk2",
"color": [
0.0,
0.5,
View mandalas.html
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="ie=edge"/><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/><style data-href="/styles.494db61b6ee6b0adfe5f.css">.comments-module--comments--23mG5{padding:91.125px}.comments-module--comments--23mG5 h1{text-transform:uppercase;font-family:sans-serif;font-size:12px}.comments-module--comment--29KbI{font-size:18px;line-height:1.5em;margin-bottom:136.6875px;display:block}.comments-module--comment--29KbI p{max-width:540px}.comments-module--comment--29KbI h1,.comments-module--comment--29KbI h2,.comments-module--comment--29KbI h3,.comments-module--comment--29KbI pre{font-size:18px}.comments-module--header--3yRmu{display:block;text-transform:uppercase;font-family:sans-serif;font-size:12px}.comments-module--user--1iX8T{font-weight:700;color:#000}body,html{margin:0;padding:0;width:100%;height:100%}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:1em}.index-module--page--3hrmN{padding-bottom:91.12
@msurguy
msurguy / README.md
Last active Jan 8, 2020
Make QR Code for Chrome URL
View README.md

An Apple Script for quickly generating qr code for the URL of the front-most Chrome window.

Instructions:

  1. Install qrcode Node package globally by
npm install -g qrcode
  1. Download qrcode.scpt provided here
  2. Make the script into an app by opening qrcode.scpt in Script Editor, then File > Export > File Format : Application and save it to your Applications.
@msurguy
msurguy / ffmpeg.md
Created Nov 4, 2019 — forked from dvlden/ffmpeg.md
Convert video files to MP4 through FFMPEG
View ffmpeg.md

This is my personal list of functions that I wrote for converting mov files to mp4!

Command Flags

Flag Options Description
-codec:a libfaac, libfdk_aac, libvorbis Audio Codec
-quality best, good, realtime Video Quality
-b:a 128k, 192k, 256k, 320k Audio Bitrate
-codec:v mpeg4, libx264, libvpx-vp9 Video Codec
View actions.yml
// Slack action:
https://github.com/Ilshidur/action-slack
args = "tag v*"
tags:
- v1 # Push events to v1 tag
- v1.0 # Push events to v1.0 tag
View gist:bd036dda5ff44d8d6a4c94070b6e386c
on: [push]
name: Deploy on Now
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: deploy
uses: actions/zeit-now@master
env:
View basic-auth-module.js
const { createMiddleware } = require('./basic-auth')
export default function (moduleOptions) {
const options = Object.assign({}, this.options.basic, moduleOptions || {})
const { name, pass, enabled } = options
if (!(name && pass)) {
console.log('name or pass not found. Skip registration of authentication server.')
return false
}
if (enabled === false) {
@msurguy
msurguy / timelapse.md
Created Jul 21, 2019 — forked from alexellis/timelapse.md
ffmpeg time-lapse
View timelapse.md

Convert sequence of JPEG images to MP4 video

ffmpeg -r 24 -pattern_type glob -i '*.JPG' -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4

  • -r 24 - output frame rate
  • -pattern_type glob -i '*.JPG' - all JPG files in the current directory
  • -i DSC_%04d.JPG - e.g. DSC_0397.JPG
  • -s hd1080 - 1920x1080 resolution

Slower, better quality