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 | |
function file_extension { | |
local filename=$(basename "$1") | |
echo "${filename##*.}" | |
} | |
function basename_test { | |
echo $(basename "$1" .qt) | |
} |
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
# Create first | |
find -type f -name "*.php" -exec md5sum "{}" + > checklist.chk | |
# Save on remote server or your computer, it best if your create a hook on git or mercurial to create this on the fly. | |
# Later on or in cron you must check if all is good. | |
# Can you even do remove write permission, | |
# chmod a-w checklist.chk | |
# This will give you the following pattern: | |
# file: OK |
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 | |
LINES=$(tput lines) | |
COLUMNS=$(tput cols) | |
declare -A snowflakes | |
declare -A lastflakes | |
clear |
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
# originally from https://groups.google.com/a/webmproject.org/group/webp-discuss/browse_thread/thread/196ac4ea705688d8 | |
<IfModule mod_rewrite.c> | |
# TODO: don't forget to put | |
# AddType image/webp .webp | |
# in your mods-available/mime.conf | |
# (though this is optional because we're setting | |
# the mime type manually in the RewriteRule) | |
# Enable rewrite |
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
<div class="bg-white w-full py-4 shadow"> | |
<div class="flex justify-between content-center container mx-auto px-4"> | |
<div class="w-1/2"> | |
<div class="flex"> | |
<div class="mr-4"> | |
<a href="{{ route('home') }}"> | |
<img src="{{ asset('images/owler-01.png') }}" alt="Owler" class="w-8"> | |
</a> | |
</div> | |
<div class="mt-2 font-sans"> |
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
Caso der este erro: | |
fs.js:808 | |
return binding.readdir(pathModule._makeLong(path)); | |
^ | |
Error: ENOENT: no such file or directory, scandir '/node_modules/node-sass/vendor' | |
Correr: |
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
ffmpeg -i input.mxf -acodec copy -vcodec copy -y output.mov | |
ffmpeg -i output.mov -vcodec h264 -acodec aac -strict -2 output.mp4 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
/** | |
Aes encryption | |
*/ | |
class AES { | |
const M_CBC = 'cbc'; | |
const M_CFB = 'cfb'; | |
const M_ECB = 'ecb'; | |
const M_NOFB = 'nofb'; |
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 | |
interface Factory | |
{ | |
/** | |
* Get a cache store instance by name. | |
* | |
* @param string|null $name | |
* @return mixed | |
*/ |