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 / 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
@itsmikita
itsmikita / KILL-LARAVEL-VALET-MAC.md
Last active March 5, 2025 03:43
Uninstall Laravel/Valet from MacOS completely

Do the below and never try this again!

valet uninstall
composer global remove laravel/valet
sudo rm -rfv /usr/local/bin/valet
sudo rm -rfv ~/.valet
brew rm -rfv nginx [email protected] [email protected] dnsmasq
sudo rm -rfv /usr/local/Cellar/dnsmasq
sudo rm -rfv /usr/local/Cellar/nginx
@itsmikita
itsmikita / keybindings.json
Last active September 18, 2019 21:26
Visual Studio Code Custom Keybindings
[
{
"key": "alt+a",
"command": "explorer.newFile"
},
{
"key": "ctrl+alt+a",
"command": "explorer.newFolder"
},
{