Skip to content

Instantly share code, notes, and snippets.

View itsmikita's full-sized avatar
💭
Jemanden passiert etwas

It's Mikita itsmikita

💭
Jemanden passiert etwas
View GitHub Profile
@itsmikita
itsmikita / HOWTO.md
Created January 15, 2023 21:54
Sublime-Text CLI on macOS 13.1 Ventura

Open Terminal and run:

sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
@itsmikita
itsmikita / README.md
Last active May 5, 2026 17:18
Create bootable USB drive from InstallMacOSX.pkg

Create bootable USB drive from InstallMacOSX.pkg

  1. Erase USB drive with Disk Utility using format Mac OS Extended (Journaled) and Master Boot Record and call it MyVolume
  2. Use Finder to mount/open InstallMacOSX.dmg.
  3. Run following commands:
pkgutil --expand /Volumes/Install\ OS\ X/InstallMacOSX.pkg /tmp/El\ Capitan
diskutil eject Install\ OS\ X
cd /tmp/El\ Capitan
@itsmikita
itsmikita / Fritzing SVG Fix.txt
Created November 29, 2021 20:16
Fritzing Custom Part SVG
If you get an error importing your custom part SVG, here is the quick fix:
Basically Fritzing is looking for width and height attributes in the <svg />
tag, open the SVG in a texteditor and just add it manually. You can use 3rd
and 4th parameter from the viewBox attribute you find in <svg>.
However the correct SVG Options in Illustrator (NOTE: that SVG Options prompt
appears only when you Save As...) would be as follows:
SVG Profiles: SVG Tiny 1.2
@itsmikita
itsmikita / shorten.php
Created May 10, 2021 18:02
URL Shortener
<?php
/**
* Shorten URL
* @param $url
* @returns Shortened URL or false on failure
*/
function shorten( $url )
{
try {
return file_get_contents( "https://clck.ru/--?url={$url}" );
@itsmikita
itsmikita / .ssh_config
Created March 12, 2021 12:45
SSH keys and stuff
Host *
IgnoreUnknown AddKeysToAgent,UseKeychain
IdentityFile ~/.ssh/id_rsa
AddKeysToAgent yes
UseKeychain yes
ServerAliveInterval 420
ServerAliveCountMax 3
@itsmikita
itsmikita / nginx.conf
Created March 11, 2021 08:26
Run NGINX as local deamon on macOS Catalina
daemon off;
worker_processes 1;
error_log /dev/stdout;
events {
worker_connections 1024;
}
http {
include /usr/local/etc/nginx/mime.types;
sendfile on;
server {
@itsmikita
itsmikita / ftdi-usb-serial-driver-macos-catalina.md
Last active December 22, 2024 18:57
FTDI USB-DMX on macOS 10.15 Catalina

Disclaimer

This is a public reminder to myself and those who do use macOS Catalina with USB-DMX FTDI dongles... I notice the driver I'm installing below disappears after time and I have to repeat the steps. (Typically this happens before/on the day when I run a lightshow... bläh!)

Symptoms

USB-DMX Interfaces not recognized, or you are seeing two of them in QLC+ and/or it is not simply working. You can also check if you have the FTDIUSBSerialDriver.kext installed on you machine or any descriptive errors with the driver by running following command in Terminal:

@itsmikita
itsmikita / centos-on-google-cloud.txt
Last active February 13, 2021 03:26
Setup CentOS on Google Cloud
-- Google Cloud VM Instance, clean copy of CentOS 8 --
# 1 Enable SSH
On Client:
ssh-keygen -t rsa -f ~/.ssh/ravefox -C itsmikita
cat ~/.ssh/ravefox
@itsmikita
itsmikita / epizod.js
Last active October 25, 2020 02:34
BRAK ROZUMU
const epizod = ( d ) => {
const s = ( ( new Date() ).getTime() - ( new Date( d ) ).getTime() ).toString()
return "BRAK ROZUMU EPIZOD #" + s.substr( -4 ) + "\n"
+ "MASK RED " + s.substr( 1, 2 ) + " GREEN " + s.substr( 4, 2 ) + " BLUE " + s.substr( 7, 2 );
};
@itsmikita
itsmikita / install.sh
Created August 18, 2020 22:54
Install HHVM 3.21 on Ubuntu 18.04 LTS
sudo apt-get install hhvm=3.21.0+dfsg-2ubuntu2