Skip to content

Instantly share code, notes, and snippets.

View SUXUMI's full-sized avatar
🏠
Working from home

Grigol Tchaava SUXUMI

🏠
Working from home
View GitHub Profile
@SUXUMI
SUXUMI / mysql_ramdisk.rb
Created July 7, 2022 09:02 — forked from alex88/mysql_ramdisk.rb
Creates a ramdisk on osx and runs a mysql instance using pre-installed homebrew percona or mysql server Use directly to create, with 'shutdown' argument to tear off the mysql and the disk To connect use -h 127.0.0.1 -P3307
#!/usr/bin/env ruby
shutdown = false
cnf_path = '/usr/local/etc/my_ramdisk.cnf'
ramdisk_path = '/Volumes/RAMDisk'
loop { case ARGV[0]
when 'shutdown' then ARGV.shift; shutdown = true
else break
end; }
@SUXUMI
SUXUMI / create_ramdisk_mysql.sh
Created July 7, 2022 08:49 — forked from felixcarpena/create_ramdisk_mysql.sh
run mysql on ramdisk for mac os and mysql 5.7
#!/bin/bash
#original script from: http://kotega.com/blog/2010/apr/12/mysql-ramdisk-osx/
diskutil erasevolume HFS+ 'Ramdisk' `hdiutil attach -nomount ram://2097152`
/usr/local/Library/LinkedKegs/mysql/bin/mysqld --initialize-insecure \
--user=visca \
--datadir=/Volumes/Ramdisk \
--basedir=/usr/local/Library/LinkedKegs/mysql \
@SUXUMI
SUXUMI / README.md
Created November 14, 2021 11:20 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@SUXUMI
SUXUMI / ffmpeg-cheatsheet.md
Last active March 1, 2019 07:27 — forked from nickkraakman/ffmpeg-cheatsheet.md
FFmpeg cheat sheet for 360 video

FFmpeg Cheat Sheet for 360º video

Brought to you by Headjack

 
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.

 
Let's start with some basics:

  • ffmpeg calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file
@SUXUMI
SUXUMI / ffmpeg.md
Created March 1, 2019 07:27 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@SUXUMI
SUXUMI / README.md
Created February 26, 2019 19:49 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@SUXUMI
SUXUMI / hosts
Created January 10, 2018 11:37 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@SUXUMI
SUXUMI / ICS.php
Created June 14, 2017 10:54 — forked from jakebellacera/ICS.php
A convenient script to generate iCalendar (.ics) files on the fly in PHP.
<?php
/**
* ICS.php
* =======
* Use this class to create an .ics file.
*
* Usage
* -----
* Basic usage - generate ics file contents (see below for available properties):