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
@echo | |
set source=C:\ | |
set destination=\\servername\d$ | |
set command=xcopy /c /d /e /f /g /h /i /r /s /y | |
set log=D:\backup_log_file.txt | |
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b) | |
For /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b) | |
echo # # # Starting files %mydate% at %mytime% >> %log% |
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 | |
function parse_yaml { | |
local prefix=$2 | |
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034') | |
sed -ne "s|^\($s\):|\1|" \ | |
-e "s|^\($s\)\($w\)$s:$s[\"']\(.*\)[\"']$s\$|\1$fs\2$fs\3|p" \ | |
-e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 | | |
awk -F$fs '{ | |
indent = length($1)/2; |
I hereby claim:
- I am esl1h on github.
- I am esl1h (https://keybase.io/esl1h) on keybase.
- I have a public key ASACW80CQpL8rhWJiN7fY1Rjy90BWGoH6F7nRnkY0vZ9rQo
To claim this, I am signing this object:
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
############################################################################################################ | |
## This script run with python3 and is able to generate pre-signed URLs from files (objects) on a s3. ## | |
## It is possible with it to generate URLs of several days within the same month and year for several ## | |
## instances without the need to provide access to the bucket for the user ## | |
############################################################################################################ | |
import boto3 | |
from colorama import Fore, Style | |
APP = '' |
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 | |
AWS_REGION="xx-xxxx-1" | |
AWS_OUTPUT="json" | |
AWS_PROFILE="xxx" | |
# 01- ELBs without Target Groups | |
load_balancers=$(aws elbv2 describe-load-balancers --query "LoadBalancers[*].LoadBalancerArn" --output text --profile $AWS_PROFILE) | |
for lb in $load_balancers; do | |
#printf "$lb"'%b\n' |
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 | |
function runcheck { | |
printf "\n" && echo -ne 'Systemctl: ' && systemctl status $SERVICE | grep 'active' | cut -d ' ' -f 7-8 | |
printf "\n" && echo -ne 'Process: ' && ps -ef | grep $SERVICE | grep -v grep | tr -s ' ' | cut -d ' ' -f 2-10 | head -n 1 | |
} | |
PS3="Select the service: " | |
select SERVICE in nginx httpd apache2 | |
do |
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
V is a tool for managing V source code. | |
Usage: | |
v [options] [command] [arguments] | |
Examples: | |
v hello.v Compile the file `hello.v` and output it as | |
`hello` or `hello.exe`. | |
v run hello.v Same as above but also run the produced | |
executable immediately after compilation. |
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
npub150vn9rja0yp8thvzx4mq75g6he58curtpqygxj93xwchu4tqv2xqka39dx |
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
// On Brave Browser Go to brave://settings/shields/filters | |
// | |
// Filters | |
app.1min.ai##.css-nqmzah.ant-float-btn.sc-fWSCoS.jUFNLE.ant-float-btn-default.ant-float-btn-square > .ant-float-btn-body | |
emojipedia.org###FreeStarVideoAdContainer | |
emojipedia.org##.flex.flex-row.justify-center.items-center.flex-wrap | |
theoldreader.com###tor-ad-wrapper | |
theoldreader.com##.banner-inner | |
theoldreader.com###in-feed-ad | |
theoldreader.com##div#in-feed-ad-container:nth-of-type(3) |