Skip to content

Instantly share code, notes, and snippets.

@shamangeorge
shamangeorge / speech.txt
Created December 5, 2018 21:43
polly trial
<speak>HOSPITALIZACIONES</speak>
@shamangeorge
shamangeorge / jail.local
Created October 10, 2017 22:31 — forked from Dman46/jail.local
Fail2ban - send Slack notifications
...
action_with_slack_notification = %(banaction)s[name=%(__name__)s, bantime="%(bantime)s", port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"]
slack[name=%(__name__)s]
action = %(action_with_slack_notification)s
...
@shamangeorge
shamangeorge / mattermost_hook_data.json
Created May 6, 2017 17:16
Matter example hook data
{
"attachments": [
{
"fallback": "test",
"color": "#FF8000",
"pretext": "This is optional pretext that shows above the attachment.",
"text": "This is the text of the attachment. It should appear just above an image of the Mattermost logo. The left border of the attachment should be colored orange, and below the image it should include additional fields that are formatted in columns. At the top of the attachment, there should be an author name followed by a bolded title. Both the author name and the title should be hyperlinks.",
"author_name": "Mattermost",
"author_icon": "http://www.mattermost.org/wp-content/uploads/2016/04/icon_WS.png",
"author_link": "http://www.mattermost.org/",
require 'optparse'
require 'optparse/time'
require 'ostruct'
require 'pp'
class OptparseExample
Version = '1.0.0'
CODES = %w[iso-2022-jp shift_jis euc-jp utf8 binary]
CODE_ALIASES = { "jis" => "iso-2022-jp", "sjis" => "shift_jis" }
#!/bin/bash
/opt/vhl/ffmpeg/bin/ffmpeg -i audio.in -ac 1 -acodec pcm_s16le -ar 16000 audio.out
@shamangeorge
shamangeorge / index.html
Last active October 5, 2015 23:02
html5 video tests
<body>
<video id="sample" src="" controls="true"></video>
<video id="sample2" src="" controls="true"></video>
<script>
var videos = [
document.getElementById('sample'),
document.getElementById('sample2')
];
initHandler(0);
#!/bin/sh
exec < /dev/tty
./.git/hooks/validate_commit.rb $1
@shamangeorge
shamangeorge / vpnsetup.sh
Last active August 29, 2015 14:15 — forked from hwdsl2/.MOVED.md
#!/bin/sh
#
# Amazon EC2 user-data file for automatic configuration of IPsec/L2TP VPN
# on a Ubuntu server instance. Tested with 14.04 (Trusty) AND 12.04 (Precise).
# With minor modifications, this script *can also be used* on dedicated servers
# or any KVM- or XEN-based Virtual Private Server (VPS) from other providers.
#
# DO NOT RUN THIS SCRIPT ON YOUR PC OR MAC! THIS IS MEANT TO BE RUN WHEN
# YOUR AMAZON EC2 INSTANCE STARTS!
#

Keybase proof

I hereby claim:

  • I am shamangeorge on github.
  • I am shamangeorge (https://keybase.io/shamangeorge) on keybase.
  • I have a public key whose fingerprint is 4DDC E17F 4BBB F17A 2238 5FBF 543D C658 ABC5 A3F2

To claim this, I am signing this object:

@shamangeorge
shamangeorge / index.html
Last active April 6, 2016 10:49
CSS3 covering bakground technique
<!doctype html>
<html>
<head>
<style>
html {
background: url('./pandora.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;