Moved to https://blog.kartones.net/page/image-and-video-cli-cheatsheet/
Google release the best document for SEO practices here: https://developers.google.com/search/docs. There are 2 sections:
If you're just interested in performances, please refer to the Web Vitals document.
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 | |
# Step 1: Get the JSON list and extract the "id" into an array called "ids" | |
response=$(curl -G https://api.stripe.com/v1/customers \ | |
-u sk-key: \ | |
-d limit=3) | |
# Check if the curl command was successful | |
if [ $? -ne 0 ]; then | |
echo "Error occurred while fetching data from the API." |
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
# -w flag permanently adds the plist to the Launch Daemon | |
sudo launchctl load -w /Library/LaunchDaemons/com.omniedge.plist | |
# -w flag permanently remove the plist to the Launch Daemon | |
sudo launchctl unload -w /Library/LaunchDaemons/com.omniedge.plist | |
You can stop the launchctl process by | |
sudo launchctl stop /Library/LaunchDaemons/com.omniedge.plist | |
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 Docker (https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce) | |
sudo apt-get remove docker docker-engine docker.io | |
sudo apt-get update | |
sudo apt-get --assume-yes install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
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
import os | |
import stat | |
import argparse | |
template_fcgi = '''#!/usr/bin/env python3 | |
from flup.server.fcgi import WSGIServer | |
from %s import app | |
class ScriptNameStripper(object): |
Command Flags
Flag | Options | Description |
---|---|---|
-codec:a |
libfaac, libfdk_aac, libvorbis | Audio Codec |
-quality |
best, good, realtime | Video Quality |
-b:a |
128k, 192k, 256k, 320k | Audio Bitrate |
-codec:v |
mpeg4, libx264, libvpx-vp9 | Video Codec |
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
#convert webm to mp4 | |
ffmpeg -fflags +genpts -i 1.webm -r 24 1.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
#!/usr/bin/env bash | |
apt-get -y update | |
sudo apt-get -y install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev vim | |
sudo apt-get -y install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev byobu nginx fail2ban | |
cd /tmp | |
byobu-enable | |
sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
curl -L https://get.rvm.io | bash -s stable | |
sudo usermod -a -G rvm `whoami` | |
source ~/.rvm/scripts/rvm |
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
{% for category in site.categories %} | |
<li>{{ category | first }}({{category | last | size}})</h3> | |
<ul> | |
{% for posts in category %} | |
{% for post in posts %} | |
<li><a href="{{ post.url }}">{{ post.title }}</a></li> | |
{% endfor %} | |
{% endfor %} | |
</ul> | |
</li> |
NewerOlder