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
#clear linux cache | |
sync ; echo 3 | sudo tee /proc/sys/vm/drop_caches | |
# download all bangla font in linux | |
wget --no-check-certificate https://raw.githubusercontent.com/fahadahammed/linux-bangla-fonts/master/font.sh -O font.sh;chmod +x font.sh;bash font.sh;rm font.sh | |
# remove nginx cache | |
sudo rm -rf /var/cache/nginx/* | |
# without pass sudoer user |
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
# login with cli | |
psql -U username | |
example: psql -U postgres | |
# see available databases list | |
\l | |
# see available tables | |
\dt |
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
# First, install all of the things | |
sudo su | |
apt-get update | |
apt-get install nginx | |
/etc/init.d/nginx start | |
sudo apt-get install python-dev | |
sudo apt-get install python-pip | |
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main" | |
sudo apt update |
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 |
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
# 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
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
# 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
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
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 |
OlderNewer