View install.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Please, enter your username, it will be added to 'sudo' and 'docker' groups during the process." | |
read USERNAME | |
if [ -z "$USERNAME" ] ; then | |
echo "Exiting... Done." | |
exit | |
else | |
echo "Adding user to 'sudo' group..." |
View makedomain.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Makedomain command | |
# --- | |
# script can run with the domain as a command line input | |
# `sudo ./nginx_domain.sh my_domain.com` or without and | |
# the script will prompt the user for input | |
# | |
# BTW: You can make it global e.g. by: | |
# sudo ln -s /opt/delagics/makedomain.sh /usr/bin/makedomain |
View removedomain.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Removedomain command | |
# --- | |
# script can run with the domain as a command line input | |
# `sudo ./nginx_domain.sh my_domain.com` or without and | |
# the script will prompt the user for input | |
# | |
# BTW: You can make it global e.g. by: | |
# sudo ln -s /opt/delagics/removedomain.sh /usr/bin/removedomain |
View Gruntfile.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// If you want to recursively match all sub-folders, use: | |
// 'test/spec/**/*.js' | |
'use strict'; | |
module.exports = function (grunt) { | |
var autoprefixer = require('autoprefixer')({ |
View mysql-timezone-set.cnf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Populate the Time Zone Tables from your system into the MySQL: | |
# @see https://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html#time-zone-installation | |
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql | |
# In `/etc/mysql/my.cnf` add following line under [mysqld] config group: | |
[mysqld] |
View .bash_aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Colors | |
RED='\033[0;31m' | |
BLACK='\033[0;30m' | |
DARK_GRAY='\033[1;30m' | |
LIGHT_RED='\033[1;31m' | |
GREEN='\033[0;32m' | |
LIGHT_GREEN='\033[1;32m' | |
BROWN_ORANGE='\033[0;33m' |
View command.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you want to use different keys depending on the repository you are working | |
# on, you can issue the following command while inside your repository: | |
git config core.sshCommand "ssh -o IdentitiesOnly=yes -i ~/.ssh/private-key-filename-for-this-repository -F /dev/null" |
View compile-imagick.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If you have installed PHP 8.0 on your MBP from brew you can simply build the Imagick from source: | |
git clone https://github.com/Imagick/imagick | |
cd imagick | |
phpize && ./configure | |
make | |
make install | |
// Builded extension should land in similarly directory: |
View com.apple.launchservices.secure.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.4;}' | |
defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add '{LSHandlerContentType=public.data;LSHandlerRoleAll=com.sublimetext.4;}' |