To undo a git stash
, it depends on what exactly you mean by “undo”:
git stash apply # or git stash pop
<?php | |
use Doctrine\ORM\EntityManagerInterface; | |
use DoctrineBatchUtils\BatchProcessing\SimpleBatchIteratorAggregate; | |
class LargeFileProcessor | |
{ | |
private EntityManagerInterface $entityManager; | |
public function __construct(EntityManagerInterface $entityManager) |
> yt-dlp -f "bestaudio/best" --extract-audio --audio-format m4a <you.tubeurl>
#!/bin/bash | |
# config file looks like: | |
## ``` | |
# source=$PWD | |
# dest=/path/to/folder | |
### ``` | |
# Check if .rsync file exists | |
CONFIG_FILE=".rsync" | |
if [[ ! -f "$CONFIG_FILE" ]]; then |
To fetch todos from a Notion database list using the Notion API, you'll need to follow these steps:
Here's a step-by-step guide with code examples:
<?php | |
use Illuminate\Support\Facades\Cache; | |
use Illuminate\Support\Facades\File; | |
use Illuminate\Support\Str; | |
use Illuminate\Support\Facades\Config; | |
// get data from an api that uses basic auth then decode it as a .env file | |
function get_features($url, $creds, $segment = []) { | |
$ch = curl_init($url); | |
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/xml', $additionalHeaders)); |
To show only running containers use the given command:
docker ps
To show all containers use the given command:
docker ps -a
body { | |
font: 22px/1.6 system-ui,sans-serif; | |
margin: auto; | |
max-width: 35em; | |
padding: 0 1em; | |
} | |
img, video { | |
max-width: 100%; | |
height: auto; |