Skip to content

Instantly share code, notes, and snippets.

View denysvitali's full-sized avatar

Denys Vitali denysvitali

View GitHub Profile
@denysvitali
denysvitali / service_enter.lua
Created June 13, 2015 17:42
service_enter.lua
local remove_user_cfg = load_from_file('data/add_user_cfg.lua')
local function urlencode(str)
if (str) then
str = string.gsub (str, "\n", "\r\n")
str = string.gsub (str, "([^%w ])",
function (c) return string.format ("%%%02X", string.byte(c)) end)
str = string.gsub (str, " ", "+")
end
return str
{
"bitwise": false,
"camelcase": false,
"curly": true,
"eqeqeq": true,
"es3": false,
"esversion": 6,
"forin": true,
"freeze": true,
"immed": true,
%F{12}%n%f %F{11}%B%~%b%f
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '~/.zshrc'
zstyle ':completion:*' menu select
bindkey "^[[1;5C" forward-word
library ieee;
use ieee.std_logic_1164.all; -- ===================
use ieee.std_logic_arith.all; -- | LIBRERIE |
use ieee.std_logic_unsigned.all; -- ===================
entity es5_led is
port(
CLK : in std_logic;
L: out std_logic_vector (3 downto 0);
P: in std_logic
127.0.0.1 adbreak.ch
127.0.0.1 www.adbreak.ch
#!/bin/bash
clear
echo "----------------------"
echo "DKIM setter by denv.it"
echo "----------------------"
default="denv.it"
read -p "Inserisci il nome del dominio [$default]: " domain_name
domain_name=${domain_name:-$default}
echo $domain_name
cd "/etc/opendkim/keys"

Keybase proof

I hereby claim:

  • I am denysvitali on github.
  • I am denvit (https://keybase.io/denvit) on keybase.
  • I have a public key whose fingerprint is 98EC 284B 27D5 0D25 D516 7532 8883 F389 50E6 54A4

To claim this, I am signing this object:

require "./kemal.cr"
get "/" do |env|
env.response.content_type = "text/html"
%(<!DOCTYPE html><html><head><title>Kemal Static Serving Test</title></head><body><h1>Stream test</h1><video controls autoplay><source src="http://dv/video1" type="video/mp4"></video><video controls autoplay><source src="http://dv/nginxstatic/toystory.mp4" type="video/mp4"></video></body></html>)
end
get "/video1" do |env|
env.response.content_type = "video/mp4"
video_path = "/srv/http/dv/toystory.mp4"
dvitali@denvit-ws1:~/Downloads $ wget https://download-installer.cdn.mozilla.net/pub/firefox/nightly/latest-mozilla-aurora/firefox-53.0a2.en-US.linux-x86_64.tar.bz2 && sha512sum firefox-53.0a2.en-US.linux-x86_64.tar.bz2
--2017-02-03 21:29:29-- https://download-installer.cdn.mozilla.net/pub/firefox/nightly/latest-mozilla-aurora/firefox-53.0a2.en-US.linux-x86_64.tar.bz2
Resolving download-installer.cdn.mozilla.net (download-installer.cdn.mozilla.net)... 52.222.242.7
Connecting to download-installer.cdn.mozilla.net (download-installer.cdn.mozilla.net)|52.222.242.7|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 66152460 (63M) [application/x-tar]
Saving to: ‘firefox-53.0a2.en-US.linux-x86_64.tar.bz2’
firefox-53.0a2.en-US.linux-x86_64.tar.bz2 100%[==================================================================================================>] 63,09M 2,45MB/s in 26s