Skip to content

Instantly share code, notes, and snippets.

View jooray's full-sized avatar

Juraj Bednar jooray

View GitHub Profile
@jooray
jooray / transcribe.sh
Last active July 25, 2019 17:55 — forked from mmmaly/transcribe.sh
Call Google speech recognize
#!/bin/bash
# How to set it up:
# Create a project in Google Cloud admin console
# Install google cloud sdk (you need gcloud and gsutil commands)
# Install ffmpeg and jq
# Run gcloud init, login, answer the questions
# Under the project you created, create a globally unique bucket
# here: https://console.cloud.google.com/storage/browser
# set the name of the globally unique bucket name prefixed by gs://
# here
@jooray
jooray / .htaccess
Last active February 19, 2018 09:51 — forked from Zodiac1978/.htaccess
Safer WordPress with these .htaccess additions
# Don't show errors which contain full path diclosure (FPD)
# Use that line only if PHP is installed as a module and not per CGI
# try using a php.ini in that case.
# Change mod_php5.c to mod_php7.c if you are running PHP7
<IfModule mod_php5.c>
php_flag display_errors Off
php_value session.cookie_httponly 1
php_value session.cookie_secure 1
</IfModule>