=%%-
%@@#:. ..::::::.
%@@@@@@@%#+-: :=*#@@@@@@@@@@@@@%#+-.
%@@@##%%@@@@@@#+-. .:=+%@@@@@@%%########%%@@@@@@#+-.
%@@%++++++*#%@@@@@@@@%%%%%@@@@@@@@%#*++++++++++++++++*#@@@@@@@@@%%%+
%@@%++++++++++**#%%%@@@@@@@%%##*+++++++++++++++++++++++++**#%%%@@@@@
%@@%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#@@@
%@@%+++++++++++++++++++++++++%@@@@@@@@@+++++++++++++++++++++++++#@@@
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 | |
# ----------------------------------------------------------------------------- | |
# | |
# Info: | |
# author: Santhosh Veer | |
# file: may.sh | |
# created: 30.04.2024 | |
# revision: 30.04.2024 | |
# version: 0.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
import re | |
import sys | |
import time | |
def validate_name(name): | |
name = ' '.join(name.split()) | |
if not re.match("^[a-zA-Z ]+$", name): | |
print("\nInvalid input! Name should contain only alphabets and spaces.\n") | |
return False | |
return True |
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
@@ | |
@@@@@@@@@@ | |
@@@@@@@@@@@@@@@@@@ | |
@@@@@@@@@@@@@@@@@@@@ | |
/////////@@@@@@********* | |
*******@@@@@@,,,,,,, | |
******@@@@@@,,,,,, | |
/////////@@@@********* | |
,//////////////************** |
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 | |
header('X-Frame-Options: DENY'); | |
header('X-XSS-Protection: 1; mode=block'); | |
header('X-Content-Type-Options: nosniff'); | |
header('Strict-Transport-Security: max-age=63072000'); | |
header('Content-type:application/json; charset=utf-8'); | |
header('Access-Control-Allow-Origin: *'); | |
header('Access-Control-Allow-Methods: GET,POST'); | |
header('Access-Control-Allow-Headers: Access-Control-Allow-Headers,Content-Type,Access-Control-Allow-Methods, Authorization, X-Requested-With'); |
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 | |
header('X-Frame-Options: DENY'); | |
header('X-XSS-Protection: 1; mode=block'); | |
header('X-Content-Type-Options: nosniff'); | |
header('Strict-Transport-Security: max-age=63072000'); | |
header('Content-type:application/json; charset=utf-8'); | |
header('Access-Control-Allow-Origin: *'); | |
header('Access-Control-Allow-Methods: GET'); | |
header('Access-Control-Allow-Headers: X-Requested-With'); |
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
VPSIP=XXX.XX.XX.X | |
PASSWORD='SERVERPASSWORD' |
sudo docker run -d --name=homeassistant --restart=always --network=host \
-v /home/$USER/homeassistant:/config \
ghcr.io/home-assistant/home-assistant:stable
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
name: Deploy Next.js Site via SSH | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest |
Matrix is:
an open standard for decentralised communication, providing simple HTTP APIs and open source reference implementations for securely distributing and persisting JSON over an open federation of servers.
It's pretty fantastic, if you think on the massive problem of fragmentation all across the web. They've created an easy to use API, and you can do a kludgy test using curl from the terminal (*nix
, mac, win). See: http://matrix.org/docs/howtos/client-server.html
It's pretty straightforward to do a quick test. I have an account at https://matrix.org / https://vector.im, so I used that to get a token.
NewerOlder