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
param ( | |
[int]$port = 8055 | |
) | |
# Start the PHP built-in server on the specified port | |
# php -S "localhost:$port" -t public/ | |
php artisan serve --host=localhost --port=${port} |
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
# Start a PHP server | |
# Usage: server.ps1 [port] | |
# Example: server.ps1 8000 | |
$port = 8000 | |
if ($args.Length -gt 0) { | |
$port = $args[0] | |
} | |
$cmd = "php -S localhost:$port" |
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
<script> | |
document.addEventListener('DOMContentLoaded', function() { | |
var toggleSoundButtonMuted = document.querySelector('.e-fas-volume-mute'); | |
var toggleSoundButtonSound = document.querySelector('.e-fas-volume-up'); | |
toggleSoundButtonSound.style.display = "none"; | |
var iconWrapper = toggleSoundButtonMuted.closest('.elementor-icon'); | |
var secondIconWrapper = toggleSoundButtonSound.closest('.elementor-icon'); | |
secondIconWrapper.removeChild(toggleSoundButtonSound); | |
var heroBackgroundVideo = document.querySelector('.herosection video'); | |
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
# | |
# Description: Organize photos by date taken | |
# | |
# Example: | |
# | |
# From path where photos are, type: | |
# | |
# OrgPhotos | |
# | |
# > It will create subfolders grouped by Year and then by date, moving all |
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
# | |
# Uses 7Z to compress all $targetPath's subfolders. | |
# | |
# Example: | |
# root | |
# - HTML | |
# - Folder1 | |
# - Folder2 | |
# - Folder3 | |
# |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
#!/bin/bash | |
# Install Composer on Centos, Ubuntu, Debian | |
# Inspired by: https://gist.github.com/virbo/c3169ed490564f36f0c239d6fd16f749 | |
user_allow="root" | |
if [ "$(whoami)" != $user_allow ]; then | |
echo "===================================================================" | |
echo " Falha na instalação. O composer deve ser instalado com o user: "$user_allow" =" | |
echo "===================================================================" |
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
Write-Output "Finding $($args[0])..." | |
Get-ChildItem –Path C:\ -Include $args[0] -Recurse -ErrorAction SilentlyContinue |
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
Option Explicit | |
Dim objFSO | |
Set objFSO=CreateObject("Scripting.FileSystemObject") | |
If (WScript.Arguments.Count <> 2) Then | |
WScript.Echo("Usage: cscript ListEmptyFolders.vbs {path} {list file}") | |
' If at least 1 argument is passed, list them | |
If (WScript.Arguments.Count > 0) Then |
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
Option Explicit | |
If (WScript.Arguments.Count <> 2) Then | |
WScript.Echo("Usage: cscript BackupFolders.vbs {source} {dest}") | |
' If at least 1 argument is passed, list them | |
If (WScript.Arguments.Count > 0) Then | |
Dim strArg | |
Dim i |
NewerOlder