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
# containers | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
# images | |
docker rmi $(docker images -a -q) |
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 | |
namespace App\Library\Services; | |
use Facades\Carbon\Carbon; | |
use Illuminate\Support\Facades\Log; | |
use Monolog\Handler\StreamHandler; | |
use Monolog\Logger; | |
class CustomFileLog |
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
[Desktop Entry] | |
Encoding=UTF-8 | |
Exec=/home/savio/Documents/applications/Typora-linux-x64/Typora | |
Icon=/home/savio/Documents/applications/Typora-linux-x64/favicon-64.png | |
Type=Application | |
Terminal=false | |
Comment=Typora Markdown Editor | |
Name=Typora | |
GenericName=typora | |
StartupNotify=false |
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
#!/bin/bash | |
export LANG=C | |
output=$1; | |
scale=$2; | |
if [ -n "$output" ] && ! (xrandr --listmonitors | grep -qw "$output"); then | |
echo "Invalid output: '$output'"; | |
exit 1; |
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
# Docker ps format | |
export FORMAT="\nID\t{{.ID}}\nIMAGE\t{{.Image}}\nCOMMAND\t{{.Command}}\nCREATED\t{{.RunningFor}}\ nSTATUS\t{{.Status}}\nPORTS\t{{.Ports}}\nNAMES\t{{.Names}}\n" | |
export IMG_FORMAT="\nREPOSITORY\t{{.Repository}}\nTAG\t{{.Tag}}\nID\t{{.ID}}\nCREATEDAT\t{{.Creat edAt}}\nSIZE\t{{.Size}}\n" | |
export DM_FORMAT="\nNAME\t{{.Name}}\nACTIVE\t{{.Active}}\nDRIVER\t{{.Driver}}\nSTATE\t{{.State}}\ nURL\t{{.Url}}\nSWARM\t{{.Swarm}}\nDOCKER\t{{.Docker}}\nERRORS\t{{.Errors}}\n" |
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
function HighlightSelectedText() | |
{ | |
var pageIndex = window.PDFViewerApplication.pdfViewer.currentPageNumber - 1; | |
var page = window.PDFViewerApplication.pdfViewer.pages[pageIndex]; | |
var pageElement = page.canvas.parentElement; | |
var pageRect = page.canvas.getClientRects()[0]; | |
var selectionRects = window.getSelection().getRangeAt(0).getClientRects(); | |
var viewport = page.viewport; | |
var i = 0; |
NewerOlder