Skip to content

Instantly share code, notes, and snippets.

Avatar
🔔
Be great.

Tadeu Bento TCB13

🔔
Be great.
View GitHub Profile
@mzpqnxow
mzpqnxow / build-ecryptfs-debian-buster.sh
Last active Dec 10, 2021
Build ecryptfs-utils from source on Debian 10
View build-ecryptfs-debian-buster.sh
#!/bin/bash
set -e
#
# As of 11/24/2019, Debian still can't get it together with ecryptfs-utils so there
# is no longer an ecryptfs-utils in the apt repositories, removing the ability for
# a user to use ecryptfs at all, unless they build from source and manually configure
# the system
#
# Before using this, please see the status of the bugreport:
#
@patrocle
patrocle / Chroot SFTP user with www-data rights.md
Last active Dec 11, 2018
SFTP MYUSER will have all rights to create files/folders with www-data as owner and group in /var/www
View Chroot SFTP user with www-data rights.md

Debian tips to chroot a user in it's home and add rights for www-data

STEP 1

sudo apt-get -y install bindfs

STEP 2

sudo mkdir -p /home/MYUSER/www
sudo chown -Rf MYUSER:MYUSER /home/MYUSER/www 
@meganlkm
meganlkm / laravel5_shared_hosting_project.sh
Last active Jan 3, 2019
setup a laravel5 project to deploy to a shared hosting provider
View laravel5_shared_hosting_project.sh
#!/bin/bash
myproject='myproject'
mywww='public_html'
# initialize project
composer create-project laravel/laravel $myproject --prefer-dist
cd $myproject
# fix paths to public