Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
W=800
H=354
PERIOD=5
function ff() {
ffmpeg -i "$1.jpg" -vf zoompan=z=1:d=8:s=${W}x${H}:fps=2,framerate=30 -c:v mpeg4 -y -pix_fmt yuv420p "slide_${1}.mp4"
ffmpeg -i "slide_${1}.mp4" -y -vf fade=in:0:30 "slide_fade_in_${1}.mp4"
@codezixo
codezixo / _dumpSQL.php
Created May 24, 2023 12:49 — forked from di7spider/_dumpSQL.php
1C Bitrix :: D7 SQL Dump
<?php
/** Выводит / возвращает Dump SQL запроса Bitrix D7 и старого ядра */
if( !function_exists('_dumpSQL') ){
function _dumpSQL(callable $callback, array $params = [])
{
$result = [];
if($params['user'] == 'all' || $GLOBALS['USER']-> isAdmin() ){
@codezixo
codezixo / AdbCommands
Created January 1, 2023 22:15 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@codezixo
codezixo / d7.php
Created June 21, 2022 01:29 — forked from d1i1m1o1n/d7.php
Bitrix(d7). DB query
<?php
use Bitrix\Main\Application;
$connection = Application::getConnection();
$sqlHelper = $connection->getSqlHelper();
$sql = "SELECT ID FROM b_user WHERE LOGIN = '".$sqlHelper->forSql($login, 50)."'";
//$connection->query($sql, $limit);
//$connection->query($sql, $offset, $limit);
@codezixo
codezixo / iteration-and-recursive-iteration.php
Created February 24, 2021 12:02 — forked from hakre/iteration-and-recursive-iteration.php
Iteration and Recursive Iteration Examples Code
<?php
/*
* Iteration and Recursive Iteration Examples Code
*
* @link http://stackoverflow.com/questions/12077177/how-does-recursiveiteratoriterator-works-in-php
* @author hakre <http://hakre.wordpress.com>
*/
### To have these examples to work, a directory with subdirectories is needed,
### I named mine "tree":
@codezixo
codezixo / scriptLoader.js
Created December 16, 2020 13:19
js dynamic script load ( like import() )
function scriptLoader() {
/**
* Promise-based script loader
* @param {string} url
* @param {object=} attr
* @returns {Promise}
*/
const loader = (url, attr) => new Promise((resolve, reject) => {
const script = window.document.createElement('script');
script.src = url;
@codezixo
codezixo / check-status.hs
Created June 15, 2020 00:34 — forked from snoyberg/check-status.hs
Check HTTP status codes
#!/usr/bin/env stack
-- stack --resolver lts-15.10 script
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoImplicitPrelude #-}
import RIO
import Network.HTTP.Simple
import qualified RIO.Text as T
main :: IO ()
main = runSimpleApp $ do
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-10-09
#
# _______________| netspeed : check download speed via command line.
#
# Usage: netspeed [tokyo, london, usw, use, east, westm, rbx, sbg, bhs URL]
# Default server is RBX FR.
# First try it out without any arguments.
#
@codezixo
codezixo / netspeed.sh
Created October 6, 2018 22:06 — forked from tazhate/netspeed.sh
netspeed.sh : check download speed rate via command line | Linux bash script
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-10-09
#
# _______________| netspeed : check download speed via command line.
#
# Usage: netspeed [tokyo, london, usw, use, east, west, URL]
# ^default U.S. west coast.
# [ -speed_KB/sec ]
# ^negation activates the Mbps converter.
#

Last updated: 2017-03-18

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .

###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs