Replaces:
^const ([^ ]+) = require\(([^)]*)\)$
import $1 from $2
^const ([^ ]+) = require\(([^)]*)\).(.*)$
import { $3 as $1 } from $2
ffmpeg -i orignal.mp4 -c:v libx264 -b:v 500k -pass 1 -an -f mp4 analyze.log && \ | |
ffmpeg -i orignal.mp4 -c:v libx264 -b:v 500k -pass 2 -an -movflags +faststart output.mp4 |
# Reference: https://forums.macrumors.com/threads/macos-10-15-catalina-on-unsupported-macs.2183772/page-342?post=28233431#post-28233431 | |
mount -uw / | |
nvram boot-args="-no_compat_check amfi_get_out_of_my_way=1" | |
reboot |
#!/bin/bash | |
counter=0 | |
while [ $counter -lt 1000 ] | |
do | |
echo "checking... $counter" | |
if [[ $(/sbin/mount | awk '$3 == "/Volumes/Docker" {print $3}') != "" ]]; then | |
echo "mounted! wait 10 seconds to start docker..." | |
sleep 10 |
mkdir resized | |
sips -s formatOptions 90 --resampleWidth 1060 *.jpg --out resized |
version: "3" | |
services: | |
web: | |
image: node | |
container_name: node-project-api | |
working_dir: /var/www | |
ports: | |
- 3000:3000 | |
volumes: | |
- ./api:/var/www |
# reference: https://stackoverflow.com/a/47517988/6649757 | |
echo 'foo' | openssl aes-256-cbc -a -salt | |
echo 'U2FsdGVkX1/QGdl4syQE8bLFSr2HzoAlcG299U/T/Xk=' | openssl aes-256-cbc -a -d -salt |
@mixin changeAutofill { | |
/* Change Autocomplete styles in Chrome*/ | |
input:-webkit-autofill::first-line, | |
input:-webkit-autofill, | |
input:-webkit-autofill:hover, | |
input:-webkit-autofill:focus, | |
textarea:-webkit-autofill, | |
textarea:-webkit-autofill:hover, | |
textarea:-webkit-autofill:focus, | |
select:-webkit-autofill, |
nohup wget -r -l 0 --user="user" --password="pass" ftp://domain.com/ . & |
List commits with file is inside
git log --oneline --follow -- path/to/file
The result looks like:
8266b41 Removing file