Skip to content

Instantly share code, notes, and snippets.

View tomerof's full-sized avatar
🐢
slow but accurate

Tomer Ofer tomerof

🐢
slow but accurate
View GitHub Profile
@tomerof
tomerof / ffmpeg-mp4-to-animated-webp.md
Created December 5, 2022 06:07 — forked from witmin/ffmpeg-mp4-to-animated-webp.md
Convert MP4 file to animated WebP in ffmpeg

Convert MP4 file to animated WEBP file in ffmpeg CLI

1. Install ffmpeg CLI through homebrew

In terminal.app, install ffmpeg through homebrew

brew install ffmpeg

Validate the installation:

How to install windows on digital ocean,
use this tutorial :
https://milankragujevic.com/how-to-install-windows-10-on-digitalocean
or if you want to create own image :
https://glitchwitch.io/blog/2018-09/windows-10-on-digitalocean/
this image .gz mirror got from whatuptime :
try first if it working>>
[Microsoft Windows Server 2012]
@tomerof
tomerof / function.php
Created December 1, 2020 08:19 — forked from mattclements/function.php
Wordpress Disable Comments (add to function.php)
<?php
add_action('admin_init', function () {
// Redirect any user trying to access comments page
global $pagenow;
if ($pagenow === 'edit-comments.php') {
wp_redirect(admin_url());
exit;
}
@tomerof
tomerof / .gitignore
Created April 9, 2018 05:30 — forked from andion/.gitignore
Play all ~/Music/**/*{.mp3} files using afplay
.DS_Store
@tomerof
tomerof / currency_list.php
Last active December 22, 2019 07:23 — forked from MindaugasR/currency_list
World Currency list in PHP Array
<?php
return array (
'ALL' => 'Albania Lek',
'AFN' => 'Afghanistan Afghani',
'ARS' => 'Argentina Peso',
'AWG' => 'Aruba Guilder',
'AUD' => 'Australia Dollar',
'AZN' => 'Azerbaijan New Manat',
'BSD' => 'Bahamas Dollar',