Skip to content

Instantly share code, notes, and snippets.

View udovichenko's full-sized avatar
👾

Dmitry Udovichenko udovichenko

👾
View GitHub Profile
@udovichenko
udovichenko / minishop2.js
Last active October 25, 2018 10:03
minishop2 script
(function (window, document, $, miniShop2Config) {
var miniShop2 = miniShop2 || {};
miniShop2Config.callbacksObjectTemplate = function () {
return {
// return false to prevent send data
before: [],
response: {
success: [],
error: []
},
@udovichenko
udovichenko / gulp-resize-and-minify-images.js
Created May 21, 2019 20:34 — forked from ryantbrown/gulp-resize-and-minify-images.js
Gulp - Resize and Optimize / Minify Images
/**
* Make sure Graphicsmagick is installed on your system
* osx: brew install graphicsmagick
* ubuntu: apt-get install graphicsmagick
*
* Install these gulp plugins
* glup, gulp-image-resize, gulp-imagemin and imagemin-pngquant
*
* Group images according to their output dimensions.
* (ex: place all portfolio images into "images/portfolio"
#!/bin/bash
git clone https://github.com/udovichenko/git-test
cd git-test
echo ".idea" > .gitignore
mkdir "inc"
echo "1" > inc/f1.html
@udovichenko
udovichenko / encoding-video.md
Created October 28, 2020 00:16 — forked from glen-cheney/encoding-video.md
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@udovichenko
udovichenko / WebGL-WebGPU-frameworks-libraries.md
Created March 30, 2021 03:15 — forked from dmnsgn/WebGL-WebGPU-frameworks-libraries.md
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries

  • three.js: JavaScript 3D library
  • stack.gl: an open software ecosystem for WebGL, built on top of browserify and npm.
  • PixiJS: Super fast HTML 5 2D rendering engine that uses webGL with canvas fallback
  • Pex: Pex is a javascript 3d library / engine allowing for seamless development between Plask and WebGL in the browser.
  • Babylon.js: a complete JavaScript framework for building 3D games with HTML 5 and WebGL
  • Filament: Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS and WASM/WebGL
  • ClayGL: A WebGL graphic library
@udovichenko
udovichenko / setup-mysql.sh
Created September 9, 2021 22:03 — forked from sheikhwaqas/setup-mysql.sh
Install MySQL Server on Ubuntu (Non-Interactive Installation)
# Download and Install the Latest Updates for the OS
apt-get update && apt-get upgrade -y
# Set the Server Timezone to CST
echo "America/Chicago" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
# Enable Ubuntu Firewall and allow SSH & MySQL Ports
ufw enable
ufw allow 22
@udovichenko
udovichenko / .bash_aliases
Last active December 28, 2022 17:58
add static link
alias aliasup="wget 'https://gist.githubusercontent.com/udovichenko/cf82c93e193d18d51166e3299aba1c24/raw/.bash_aliases?$(date +%s)' -O ~/.bash_aliases && source ~/.bash_aliases"
alias cmx='chmod +x'
alias cdlog='cd /var/log/nginx'
alias cdw='cd /var/www/html'
alias cden='cd /etc/nginx/sites-available'
alias ll='ls -laFh'
cd() {
builtin cd "$@" && ls -laF
}
@udovichenko
udovichenko / readme.md
Created May 9, 2022 17:37 — forked from nickcernis/readme.md
Exclude node_modules and .git from Backblaze backups on Mac

Exclude node_modules and .git from Backblaze backups on Mac

  1. Edit the file at /Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml.
  2. Add these rules inside the bzexclusions tag:
<!-- Exclude node_modules. -->
<excludefname_rule plat="mac" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule plat="mac" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.git/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
@udovichenko
udovichenko / sakura_init.sh
Created May 15, 2022 22:48 — forked from marcy-terui/sakura_init.sh
Disable PasswordAuthentication and Enable PubkeyAuthentication on Sakura VPS.
USER_NAME=marcy
sed -i "s/.*RSAAuthentication.*/RSAAuthentication yes/g" /etc/ssh/sshd_config
sed -i "s/.*PubkeyAuthentication.*/PubkeyAuthentication yes/g" /etc/ssh/sshd_config
sed -i "s/.*PasswordAuthentication.*/PasswordAuthentication no/g" /etc/ssh/sshd_config
sed -i "s/.*AuthorizedKeysFile.*/AuthorizedKeysFile\t\.ssh\/authorized_keys/g" /etc/ssh/sshd_config
sed -i "s/.*PermitRootLogin.*/PermitRootLogin no/g" /etc/ssh/sshd_config
echo "${USER_NAME} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
service sshd restart
{
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-proposal-private-methods": "^7.14.5",
"@babel/preset-env": "^7.14.5",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"autoprefixer": "^10.2.6",
"babel-plugin-remove-template-literals-whitespace": "^1.0.4",