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
<?php | |
use Illuminate\Support\Facades\Crypt; | |
trait Encryptable | |
{ | |
/** | |
* Decrypt the column value if it is in the encrypted array. | |
* | |
* @param $key |
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
# Terminator | |
## https://github.com/gnome-terminator/terminator | |
# unbind default terminal command | |
# gsettings set org.gnome.settings-daemon.plugins.media-keys terminal '[]' | |
# Go to Settings -> Devices -> Keyboard and scroll to the end. Press + and you will create custom shortcut. | |
# Enter name: "terminator", command: /usr/bin/terminator -l "layout-custom" | |
sudo add-apt-repository ppa:mattrose/terminator |
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
## Docker | |
Find the container: docker ps -a | |
Delete container: docker rm -v <container_name> | |
List all images: docker image ls | |
Delete image by tag: docker image rmi _tag_ --force | |
Remove unused images: docker image prune --all --force | |
See space used by docker: docker system df | |
Remove dangling images: docker rmi $(docker images -f "dangling=true" -q) --force |
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
$(window).scroll(function(){ | |
if ($(window).scrollTop() == $(document).height() - $(window).height()){ | |
// calling the function to get the ajax data | |
loadMore(); | |
} | |
}); | |
function loadMore() { | |
$.ajax({ | |
url: base_url + "/infscroll/get_inf_scroll_ajax", |
NewerOlder