Skip to content

Instantly share code, notes, and snippets.

View msurguy's full-sized avatar

Maksim Surguy msurguy

View GitHub Profile
@msurguy
msurguy / install.sh
Last active August 30, 2021 21:18
Installing VIPS on Digital Ocean (Ubuntu 14). VIPS (http://www.vips.ecs.soton.ac.uk/) is super fast image processor that performs faster than anything else. Please read the comments for even quicker install
cat ~/.ssh/id_rsa.pub | ssh forge@yourserverIP "cat >> ~/.ssh/authorized_keys"
ssh 'forge@yourserverIP'
mkdir vips
cd vips
wget -c http://www.vips.ecs.soton.ac.uk/supported/current/vips-7.38.5.tar.gz
tar xzvf vips-7.38.5.tar.gz
cd vips-7.38.5/
@msurguy
msurguy / NodeTree
Created May 24, 2021 16:40
Sverchok.0.6.0.0 (0ab145c) | Blender.2.92.0 | NodeTree | 2021.05.24 | 09:40 | license: CC BY-SA
{
"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 April 4, 2021 22:43
Sverchok SVG Document Export Preset
{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"nodes": {
"File Path": {
"bl_idname": "SvFilePathNode",
"custom_socket_props": {},
"height": 100.0,
"hide": false,
{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"nodes": {
"Box": {
"bl_idname": "SvBoxNodeMk2",
"color": [
0.0,
0.5,
<!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 / soundwave.pde
Created July 3, 2018 22:53
soundwave plotter
// Original : http://arch-2226-01.softlabnyc.com/class-1c-radial-sound-wave/
// Modified by Maksim Surguy to have constantly increasing diameter, different colors, more samples per second
import ddf.minim.*;
Minim minim;
AudioInput sound;
//set the buffer for the sound input:
//this is how many samples are taken per frame
@msurguy
msurguy / README.md
Last active January 8, 2020 19:25
Make QR Code for Chrome URL

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 &gt; Export &gt; File Format : Application and save it to your Applications.
@msurguy
msurguy / ffmpeg.md
Created November 4, 2019 06:32 — forked from dvlden/ffmpeg.md
Convert video files to MP4 through FFMPEG

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
@msurguy
msurguy / Ajax-Instructions.md
Created April 4, 2014 22:52
Morris bar charts with AJAX (Laravel)

Did I hear you wanted AJAX charts instead of hard coded? You got it.

Follow this guide to integrate bar chart reports into your Laravel application with AJAX. Reports like the following come with this guide:

  • Total number of Orders by day
  • Total number of Users subscribed by day
  • etc

The library used for the charts is: http://www.oesmith.co.uk/morris.js/

@msurguy
msurguy / gist:bd036dda5ff44d8d6a4c94070b6e386c
Created August 28, 2019 04:28
zeit/now deploy actions
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: