composer create-project croogo/app croogoapp 3.0.x-dev
cd croogoapp
bin/cake Croogo/Install.install admin admin
bin/cake server
sudo chmod -R 0777 ./tmp/cache/queries/
sudo chmod -R 0777 ./tmp/cache/persistent/
sudo apt-get install -y build-essential
sudo apt-get install curl -y
sudo apt-get install libpng-dev libjpeg-dev -y
sudo apt-get install pngquant -y
sudo apt-get install git -y
sudo apt-get install openssh-server -y
sudo apt-get install unrar -y
# Fix local issue: https://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo n 0.8.21
node -v
sudo bin/cake bake plugin Apps
You will be asked to choose a location of the plugin. Select outermost Plugin/ folder.
Creates proper directory structure for new plugin
Adds entry in config/bootstrap.php file to load newly created plugin
It is recommended that you delete entry of newly baked plugin from config/bootstrap.php file as you will be able to enable-disable plugin from UI. The line will look something like:
/etc/apache2/sites-enabled/
sudo cp 000-default.conf croogo-app.conf
sudo vim croogo-app.conf
<VirtualHost *:80>
ServerName local.croogo-app.com
ServerAlias local.croogo-app.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/croogo/base-app/
This file contains 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
# Disable directory browsing | |
Options All -Indexes | |
# Disable access to all file types except the following | |
Order deny,allow | |
Deny from all | |
<Files ~ ".(xml|css|js|jpe?g|png|gif|pdf|docx|rtf|odf|zip|rar)$"> | |
Allow from all | |
</Files> |
- Clean up the line: You can use Ctrl+U to clear up to the beginning.
- Clean up the line: Ctrl+A Ctrl+K to wipe the current line in the terminal
- Cancel the current command/line: Ctrl+C.
- Recall the deleted command: Ctrl+Y (then Alt+Y)
- Go at the beginning of the line: Ctrl+A
- Go at the end of the line: Ctrl+E
- Remove the forward words for example, if you are middle of the command: Ctrl+K
- Remove characters on the left, until the beginning of the word: Ctrl+W
- To clear your entire command prompt: Ctrl + L
- Toggle between the start of line and current cursor position: Ctrl + XX
This file contains 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
$ php -i | grep "Loaded Configuration File" #Loaded Configuration File => /etc/php/7.0/cli/php.ini | |
$ sudo vi /etc/php/7.0/cli/php.ini | |
expose_php = off | |
$ sudo service httpd restart | |
$ sudo service apache2 restart |
- Download https://spring.io/tools latests
- Rename the extracted bundle as "springsource"
- sudo mv springsource /opt
- sudo chown -R root:root /opt/springsource
- sudo chmod -R +r /opt/springsource
- sudo cp /opt/springsource/sts-3.8.2.RELEASE/icon.xpm /usr/share/pixmaps/sts.xpm [Your version can be different]
- sudo touch /usr/share/applications/sts.desktop<<EOF [Desktop Entry] Encoding=UTF-8 Name=Spring IDE
Here’s a quick guide on how to transcribe audio or video files to text with the help of YouTube.
- Go to youtube.com/upload and upload your video file. If you have an MP3 audio file, you may use a tool like Windows Movie Maker, iMovie on Mac or FFMpeg to convert the audio into a video file before uploading to YouTube.
- Wait for YouTube to completely process the video. The machine transcriptions may not immediately become available after uploading the video.
- Open the YouTube video page in Chrome and look for the CC button in the player. If it exists, the transcribed audio can be downloaded as text.
- Press F12 on Windows, or Option+Cmd+J on Mac, to open the JavaScript console inside Chrome Developer tools and paste this code:
if(yt.config_.TTS_URL.length) window.location.href=yt.config_.TTS_URL+"&kind=asr&fmt=srv1&lang=en"