echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.3/contracts/token/ERC721/ERC721.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.3/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.3/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.3/contracts/access/AccessControl.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.3/contracts/utils/Counters.sol"; |
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 | |
declare -a IPS=(10.131.79.220 10.131.78.219) | |
for ip in ${IPS[@]}; do | |
echo "Syncing to server: $ip" | |
rsync -avz /etc/nginx/sites-available/lb* root@${ip}:/etc/nginx/sites-available/ | |
ssh root@${ip} sudo ln -s /etc/nginx/sites-available/lb* /etc/nginx/sites-enabled/ | |
ssh root@${ip} sudo service nginx reload | |
done |
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/sh | |
#Check the Drive Space Used by Cached Files | |
du -sh /var/cache/apt/archives | |
#Clean all the log file | |
#for logs in `find /var/log -type f`; do > $logs; done | |
logs=`find /var/log -type f` | |
for i in $logs |
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
## You may choose to remove --recursive if is required only for the bucket or folder and not for objects within. | |
s3cmd setacl --acl-private --recursive s3://mybucket-name | |
s3cmd setacl --acl-private --recursive s3://mybucket-name/folder-name | |
s3cmd setacl --acl-private --recursive s3://mybucket-name/folder-name/object-name | |
s3cmd setacl --acl-public --recursive s3://mybucket-name | |
s3cmd setacl --acl-public --recursive s3://mybucket-name/folder-name | |
s3cmd setacl --acl-public --recursive s3://mybucket-name/folder-name/object-name |
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
s3cmd setacl s3://bucket/path/to/file --acl-public | |
s3cmd info s3://bucket/path/to/file | |
s3cmd setacl s3://bucket/path/to/file --acl-private |
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
const windowMachine = Machine({ | |
initial: "loading", | |
context: { | |
title: "GI 3:16", | |
type: "BIBLE" | |
}, | |
states: { | |
idle: { | |
on: { |
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
{ | |
"site": "https://vgm.tv", | |
"tracker": "https://tracker.vgm.tv", | |
"api": "QmQchefFmvEwsssrKS7aqDoT7hCnBoU6QdsRx5vAtLqGph", | |
"thumbnails": "QmQeeJQE8sGosq82TaW6an89Z7eHeBPzWmGAmNL6cg8tJW", | |
"version": 1566, | |
"nodes": [ | |
{ | |
"id": "QmQjUXFjp9PnD4oyEHpj2ChJThtTjQjuQFVJiEs5BFqFrd", | |
"gateway": "https://vn.gateway.vgm.tv", |
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
Verifying my Blockstack ID is secured with the address 1DDF1GN4Mf1573HZBMZPwEjwmgDVEEEaRk https://explorer.blockstack.org/address/1DDF1GN4Mf1573HZBMZPwEjwmgDVEEEaRk |