This file contains hidden or 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 'Nginx install script ubuntu' | |
if hash nginx 2>/dev/null; then | |
echo 'has nginx' | |
else | |
sudo apt update -y && | |
sudo apt install curl gnupg2 ca-certificates lsb-release -y && | |
echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \ | |
| sudo tee /etc/apt/sources.list.d/nginx.list && | |
curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add - && |
This file contains hidden or 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 'Nginx install script ubuntu' | |
if hash nginx 2>/dev/null; then | |
echo 'has nginx' | |
else | |
sudo apt update -y && | |
sudo apt install curl gnupg2 ca-certificates lsb-release -y && | |
echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \ | |
| sudo tee /etc/apt/sources.list.d/nginx.list && | |
curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add - && |
This file contains hidden or 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
LDFLAGS=-L/usr/local/opt/openssl/lib pip install mysqlclient |
This file contains hidden or 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
https://askubuntu.com/questions/858178/how-to-install-bangla-font-in-ubuntu-16-04 | |
sudo apt install fonts-beng | |
git clone https://github.com/hmoazzem/bangla-fonts.git; mkdir $HOME/.fonts/; cp -r bangla-fonts $HOME/.fonts/; fc-cache -f -v |
This file contains hidden or 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
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': False, | |
'formatters': { | |
'verbose': { | |
'format': '%(levelname)s %(asctime)s %(filename)s %(funcName)s %(module)s %(message)s' | |
}, | |
'basic': { | |
'format': '%(levelname)s %(message)s' | |
}, |
This file contains hidden or 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
# include .bashrc if it exists | |
if [ -f $HOME/.bashrc_aliases ]; then | |
. $HOME/.bashrc_aliases | |
fi | |
-- | |
.bash_aliases | |
alias gita='git add -A' | |
alias gits='git status' |
This file contains hidden or 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
Please feel free to file issues at https://github.com/flutter/udacity-course/issues. Flutter issues can be filed at https://github.com/flutter/flutter/issues. | |
You can also contribute changes. Setting up: | |
Fork https://github.com/flutter/udacity-course into your own GitHub account | |
git clone git@github.com:<your_name_here>/udacity-course.git | |
cd udacity-course | |
git remote add upstream git@github.com:flutter/udacity-course.git | |
Submitting changes: |
This file contains hidden or 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
# open powershell and run this command | |
New-item –type file –force $profile | |
# A file Microsoft.PowerShell_profile.ps1 will be created in | |
# C:\Users\<username>\Documents\WindowsPowerShell\ for PowerShell 5 and older or | |
# C:\Users\<username>\Documents\PowerShell\ for PowerShell 6 Core (this folder will be automatically created). | |
# If not found go to C:\Users\<username>\OneDrive\Documents\WindowsPowerShell\ | |
# open Microsoft.PowerShell_profile.ps1; paste following function and save | |
function touch { if((Test-Path -Path ($args[0])) -eq $false) { set-content -Path ($args[0]) -Value ($null) } } |
This file contains hidden or 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
upstream test_server { | |
server unix:/home/shoriot/admin-django/server.sock fail_timeout=0; | |
} | |
server{ | |
listen 80; | |
server_name localhost; | |
client_max_body_size 20M; | |
location = /favicon.ico { access_log off; log_not_found off; } |
This file contains hidden or 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
[Unit] | |
Description=Test | |
After = network.target | |
[Service] | |
PermissionsStartOnly = true | |
PIDFile = /run/admin-django/admin-django.pid | |
User = shoriot | |
Group = www-data | |
WorkingDirectory = /home/shoriot/admin-django |
NewerOlder