remote connection
# check if a hostname/port is open
nc -zv <host> <port>
# connect to host/port with telnet
telnet <host> <port>general commands
remote connection
# check if a hostname/port is open
nc -zv <host> <port>
# connect to host/port with telnet
telnet <host> <port>general commands
| # global installation | |
| npm install -g <packagename> |
| <VirtualHost *:80> | |
| ServerName nzz.lo | |
| DocumentRoot /home/daraff/eos/www/web | |
| ErrorLog ${APACHE_LOG_DIR}/www.error.log | |
| CustomLog ${APACHE_LOG_DIR}/www.access.log common | |
| <Location /> | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^(.*)$ /app_dev.php [QSA,L] | |
| </Location> |
| #localtunnel | |
| server { | |
| listen 80; | |
| server_name 3ay5.localtunnel.com; | |
| access_log /var/log/nginx/digital-version.nzz.lo.log; | |
| location / { | |
| root /home/ralphmeier/eos/digital-version/web; | |
| index app_dev.php; |
#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!
I hope it helps you too!
fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup
| <?php | |
| public function upload($sourceFileName, $amazonS3IsAclPrivate = false) | |
| { | |
| $metadata = array(); | |
| $uploadPath = $this->calculateUploadPath($sourceFileName); | |
| if ($this->sameFileWithSameHashExists($uploadPath, $sourceFileName)) { | |
| $this->logger->info("File " . $uploadPath . " with same hash already exists. File will not be uploaded."); | |
| return $uploadpath; |
| class Animal | |
| constructor: (name) -> | |
| # @name is an instance property | |
| @name = name | |
| # This is an object function | |
| # This function can be accessed with @getSomething() from the class itself | |
| getSomething: -> return "hello" |
vim ~/.config/terminator/config
[global_config]
title_hide_sizetext = True
title_transmit_fg_color = "#000000"
sticky = True
title_inactive_fg_color = "#ffffff"
suppress_multiple_term_dialog = True
title_receive_fg_color = "#000000"