This file contains hidden or 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
Check module rewrite is active: | |
$ ls /etc/apache2/mods-enabled | grep rewrite | |
If line above, returns empty, do the following: | |
$ sudo a2enmod rewrite && sudo service apache2 restart |
This file contains hidden or 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
Tools to optimize: | |
Anemometer - https://github.com/box/Anemometer/wiki |
This file contains hidden or 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
Permissions in apache: | |
- folder: 0750/ 0755 | |
- files: 0640 / 0644 |
This file contains hidden or 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
Collaborative Mind Maps: | |
https://coggle.it/#pricing | |
Work with agile: | |
https://www.sococo.com/ |
This file contains hidden or 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
add in /etc/my.cnf: | |
---------------------------------------- | |
key-buffer_size = 64M | |
sort_buffer_size = 32M | |
# | |
## thread buffers ## | |
# | |
sort_buffer_size = 5M |
This file contains hidden or 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
Install lamp server in arch linux: | |
- https://www.linode.com/docs/websites/lamp/lamp-server-on-arch-linux | |
- https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-arch-linux |
This file contains hidden or 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
Validate forms: | |
. FormRequests (https://mattstauffer.co/blog/laravel-5.0-form-requests) | |
Use modules in laravel: | |
. pingpong-labs (https://github.com/pingpong-labs/modules) | |
Create repositories in laravel: | |
. http://heera.it/laravel-repository-pattern#.WCBSDnWLTQ3 |
This file contains hidden or 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
go to : | |
https://packages.debian.org/jessie/all/firmware-realtek/download | |
install: | |
sudo dpkg -i firmware-realtek_0.43_all.deb |
This file contains hidden or 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
Making git “forget” about a file that was tracked but is now in .gitignore: | |
.gitignore will prevent untracked files from being added (without an add -f) to the set of files tracked by git, however git will continue to track any files that are already being tracked. | |
To stop tracking a file you need to remove it from the index. This can be achieved with this command. | |
Files: | |
git rm --cached <file> | |
The removal of the file from the head revision will happen on the next commit. | |
Directory: | |
git rm -r --cached <folder> |
This file contains hidden or 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
Assuming you mean you haven't yet committed, and want to package up all of the files that currently have local modifications, you can get the list of modified files with git ls-files --modified. If you want the files which were changed by the last commit, you could use git diff --name-only HEAD^. Where you go from there is up to you. | |
Examples: | |
zip modified-files.zip $(git ls-files --modified) | |
cp $(git ls-files --modified) ../modified-files | |
Note that this is using the versions of files in the working tree currently. | |
If you have spaces in filenames, you'll have to go to a little more trouble. | |
(Of course, depending on what you're really trying to do, you might be looking for git stash, which stashes away all modified files and leaves you with a clean working tree, or you could simply want to make a temporary branch to commit to.) |