itag Code | Container | Content | Resolution | Bitrate | Range | VR / 3D |
---|---|---|---|---|---|---|
5 | flv | audio/video | 240p | - | - | - |
6 | flv | audio/video | 270p | - | - | - |
17 | 3gp | audio/video | 144p | - | - | - |
18 | mp4 | audio/video | 360p | - | - | - |
22 | mp4 | audio/video | 720p | - | - | - |
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
escape ^Z^\ | |
vbell off | |
# don't show startup messages | |
startup_message off | |
# detach on hangup - if my dial-up session fails, screen will simply | |
# detach and let me re re-attach later. | |
autodetach on |
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 | |
# simple shell script to demonstrate how EC2 Instance Connect CLI is implemented. | |
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstances.html | |
# | |
# Usage | |
# $ bash eic-cli.sh i-1234 | |
if [ $# -ne 1 ]; then | |
echo "Usage" | |
echo "$ bash eic-cli.sh i-1234" |
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 x-data="{ openTab: 1 }" class="flex flex-col-reverse"> | |
<div class="hidden mt-6 w-full max-w-2xl mx-auto sm:block lg:max-w-none"> | |
<div class="grid grid-cols-4 gap-6" aria-orientation="horizontal" role="tablist"> | |
@foreach ($product->productImages as $productImage) | |
<button x-on:click="{ openTab = {{ $loop->iteration }} }" id="tabs-1-tab-{{ $loop->iteration }}" | |
class="relative h-24 bg-white rounded-md flex items-center justify-center text-sm font-medium uppercase text-gray-900 cursor-pointer hover:bg-gray-50 focus:outline-none focus:ring focus:ring-offset-4 focus:ring-opacity-50" | |
aria-controls="tabs-1-panel-{{ $loop->iteration }}" | |
:tabindex="openTab === {{ $loop->iteration }} ? 0 : -1" | |
:aria-selected="openTab === {{ $loop->iteration }} ? 'true' : 'false'" | |
role="tab" |
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
// function | |
function getYoutubeUrlId (url) { | |
const urlObject = new URL(url); | |
let urlOrigin = urlObject.origin; | |
let urlPath = urlObject.pathname; | |
// Örneğin url https://youtu.be/V-uynt7UXXI ise | |
if (urlOrigin.search('youtu.be') > -1) { | |
// substr yapma sebebimiz, youtube kısaltma linklerinde id path'de olur ve pathname başında "/" olur. | |
// Örneğin "/V-uynt7UXXI" ise "V-uynt7UXXI" return eder. |
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 | |
namespace App\Events; | |
use Illuminate\Contracts\Broadcasting\ShouldBroadcast; | |
use Illuminate\Queue\SerializesModels; | |
class NewMessage extends Event implements ShouldBroadcast | |
{ | |
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 | |
### MySQL Server Login Info ### | |
MUSER="root" | |
MPASS="root_password" | |
MHOST="localhost" | |
MYSQL="$(which mysql)" | |
MYSQLDUMP="$(which mysqldump)" | |
BAK="/path/to/export" | |
# USE THIS CODE TO BACKUP ONLY ONE SPECIFIC DB |
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
cd /tmp || exit | |
wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz && cd Python* && ./configure --enable-optimizations --enable-shared && make && make install | |
echo 'export LD_LIBRARY_PATH="/usr/local/lib' >>.zshrc | |
cd /tmp || exit | |
[ -d /tmp/vim ] || sudo rm -Rf vim && sudo git clone https://github.com/vim/vim.git |
If you're coming to this page in search of jq related AWS commands, but come from xpath or e4x (jsonpath) domains, then you may find this article helpful: https://github.com/stedolan/jq/wiki/For-JSONPath-users.
Another good learning site: https://shapeshed.com/jq-json/
The jq playground (live testing): https://jqplay.org
A lovely tutorial: https://programminghistorian.org/lessons/json-and-jq
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
{ | |
"stats": [{ | |
"name": "access_log_file.flushed_by_timer", | |
"value": 0 | |
}, { | |
"name": "access_log_file.reopen_failed", | |
"value": 0 | |
}, { | |
"name": "access_log_file.write_buffered", | |
"value": 0 |