Skip to content

Instantly share code, notes, and snippets.

View ayrilmaz's full-sized avatar
🏠
Working from home

Emre AYRILMAZ ayrilmaz

🏠
Working from home
View GitHub Profile
services:
minio:
image: minio/minio
restart: on-failure
env_file: .env
environment:
MINIO_ROOT_USER: $USER_NAME
MINIO_ROOT_PASSWORD: $PASSWORD
MINIO_ACCESS_KEY: $USER_NAME
MINIO_SECRET_KEY: $PASSWORD
@ayrilmaz
ayrilmaz / docker-compose.app
Created November 11, 2021 05:20
Run docker compose apple script
set actions to {"up", "down"}
set action to choose from list actions with prompt "Select your action:"
if action = false then
else
if action = {"up"} then
tell application "Terminal"
activate
do script ("cd /Users/emreayrilmaz/Projects/github/docker-builds/pgadmin4/ && docker-compose up -d")
@ayrilmaz
ayrilmaz / LibUser.csproj
Created October 15, 2021 07:43
Net Core Add External Dll Reference
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Reference Include="Libext">
<HintPath>Libext.dll</HintPath>
@ayrilmaz
ayrilmaz / certbot.sh
Last active August 8, 2021 14:06
Ubuntu Nginx free ssl
sudo apt install python-certbot-nginx -y
sudo certbot --nginx -d proje.com
sudo certbot renew --dry-run
@ayrilmaz
ayrilmaz / net-core-nginx.sh
Last active August 8, 2021 13:43
Ubuntu Nginx publish and run .net core web project
cd var/www
mkdir -p proje
sudo chown -R www-data: /var/www/proje
sudo nano /etc/nginx/sites-available/proje.conf
server {
listen 80;
server_name proje.domain.com;
location / {
proxy_pass http://localhost:5000;
@ayrilmaz
ayrilmaz / minio.sh
Last active July 16, 2021 11:20
Ubuntu Minio
sudo apt update
wget https://dl.min.io/server/minio/release/linux-amd64/minio
sudo chmod +x minio
sudo mv minio /usr/local/bin
sudo useradd -r minio-user -s /sbin/nologin
sudo chown minio-user:minio-user /usr/local/bin/minio
sudo mkdir /usr/local/share/minio
sudo chown minio-user:minio-user /usr/local/share/minio
sudo mkdir /etc/minio
sudo chown minio-user:minio-user /etc/minio
@ayrilmaz
ayrilmaz / mongodb.sh
Last active July 16, 2021 09:47
Ubuntu Mongodb
sudo apt update
sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
@ayrilmaz
ayrilmaz / ssh-keygen.sh
Created July 12, 2021 12:54
macOS create and use ssh key
#create
ssh-keygen -t rsa
#copy
pbcopy < ~/.ssh/id_rsa.pub
#paste to remote machine
nano ~/.ssh/authorized_keys
@ayrilmaz
ayrilmaz / oh-my-zsh.sh
Created July 12, 2021 12:53
macOS Install Oh-My-Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Git clone https://github.com/abertsch/Menlo-for-Powerline.git
Theme -> agnoster
open ~/.zshrc
Source ~/.zshrc
@ayrilmaz
ayrilmaz / core-pdf-creator.sh
Created July 12, 2021 12:48
Ubuntu html to Pdf for net core
sudo apt-get install xvfb libfontconfig wkhtmltopdf
#test
xvfb-run wkhtmltopdf http://google.com google.pdf