First install Composer, then:
$ composer create-project laravel/laravel <project-name>After that we can start a webserver, and test the default index page:
First install Composer, then:
$ composer create-project laravel/laravel <project-name>After that we can start a webserver, and test the default index page:
| #!/bin/bash | |
| export GOLANG_VERSION=1.9 | |
| export GOLANG_DOWNLOAD_URL=https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz | |
| export GOLANG_DOWNLOAD_SHA256=d70eadefce8e160638a9a6db97f7192d8463069ab33138893ad3bf31b0650a79 | |
| apt-get update -qq | |
| apt-get install -y --no-install-recommends \ | |
| g++ \ |
| # Assumming we have 3 nodes | |
| NODE1=10.0.1.1 | |
| NODE2=10.0.1.2 | |
| NODE3=10.0.1.3 | |
| # Configure the server | |
| ssh root@NODE1 apt-get install -y glusterfs-server | |
| ssh root@NODE2 apt-get install -y glusterfs-server | |
| ssh root@NODE3 apt-get install -y glusterfs-server | |
| ssh root@NODE1 gluster peer probe NODE2 |
Grab ffmpeg from https://www.ffmpeg.org/download.html
It's a command line tool which means you will have to type things with your keyboard instead of clicking on buttons.
The most trivial operation would be converting gifs:
ffmpeg -i your_gif.gif -c:v libvpx -crf 12 -b:v 500K output.webm
-crf values can go from 4 to 63. Lower values mean better quality.-b:v is the maximum allowed bitrate. Higher means better quality.| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| /* usbreset -- send a USB port reset to a USB device | |
| * | |
| * Compile using: gcc -o usbreset usbreset.c | |
| * | |
| * | |
| * */ | |
| #!/bin/bash | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro | |
| # | |
| WP_OWNER=changeme # <-- wordpress owner | |
| WP_GROUP=changeme # <-- wordpress group | |
| WP_ROOT=/home/changeme # <-- wordpress root directory |
Debian Jessie does not come with the correct Python version out of the box, and instead comes with Python 2. To be able to install Python 3(.5), we have a few options. We could build and install from source, but as per Debian's website, we shouldn't do this. Instead, we will use pyenv, a tool that allows users to switch Python versions easily without breaking their system.
To install pyenv, we will use the official installer.
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
| <meta charset="utf-8"> | |
| <?php | |
| function tcno_dogrula($bilgiler){ | |
| $gonder = '<?xml version="1.0" encoding="utf-8"?> | |
| <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> | |
| <soap:Body> | |
| <TCKimlikNoDogrula xmlns="http://tckimlik.nvi.gov.tr/WS"> | |
| <TCKimlikNo>'.$bilgiler["tcno"].'</TCKimlikNo> | |
| <Ad>'.$bilgiler["isim"].'</Ad> |
| @servers(['staging' => 'user@server -p 22']) | |
| @setup | |
| $base_dir = '/your/path'; | |
| $branch = isset($branch) ? $branch : 'develop'; | |
| @endsetup | |
| @task('init') | |
| echo "entering deploy directory" {{ $base_dir }}; | |
| cd {{ $base_dir }}; |