Skip to content

Instantly share code, notes, and snippets.

View denysvitali's full-sized avatar

Denys Vitali denysvitali

View GitHub Profile
dvitali@denvit-ws1:~ $ wget https://download-installer.cdn.mozilla.net/pub/firefox/nightly/latest-mozilla-aurora/firefox-53.0a2.en-US.linux-x86_64.tar.bz2 -O /tmp/ff && sha512sum /tmp/ff && rm /tmp/ff
--2017-02-04 16:44:42-- 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: 66075088 (63M) [application/x-tar]
Saving to: ‘/tmp/ff’
/tmp/ff 100%[==================================================================================================>] 63,01M 2,45MB/s in 26s
@denysvitali
denysvitali / install_nginx_vim.sh
Last active February 5, 2017 16:26 — forked from 2called-chaos/install_nginx_vim.sh
enable nginx vim syntax highlighting (on Ubuntu/Debian)
#!/bin/sh
mkdir -p ~/.vim/syntax/
cd ~/.vim/syntax/
wget -O nginx.vim "http://www.vim.org/scripts/download_script.php?src_id=19394"
cat > ~/.vim/filetype.vim <<EOF
au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/conf/* if &ft == '' | setfiletype nginx | endif
EOF
require "./ssdp"
module SSDP
class Consumer
@options : SSDP::Options
def initialize(options={} of Symbol=>(String|Bool|Int32))
@options = SSDP::DEFAULTS.from(options.to_h)
@search_socket = SSDP.create_broadcaster
Downloaded: 2 files, 63M in 54s (1,17 MB/s)
gpg: Signature made mer 08 feb 2017 10:36:34 CET
gpg: using RSA key 1C69C4E55E9905DB
gpg: Good signature from "Mozilla Software Releases <release@mozilla.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 14F2 6682 D091 6CDD 81E3 7B6D 61B7 B526 D98F 0353
Subkey fingerprint: F2EF 4E6E 6AE7 5B95 F11F 1EB5 1C69 C4E5 5E99 05DB
7bce250c1fa451262bcdc4b19da5934935ac1c5cd6d718702ccb7c914ca3e48e50deeeba2763ba395c97c75b0dfb4024523fa8e6dd2879b987c3218aeb43a8be firefox-53.0a2.en-US.linux-x86_64.tar.bz2.asc
705c1c062934606663a4ff6e9935dbb8b68ea196e9da8727b67c1ea3b7cd5a0739bd1ab5bcd91d0a7d8d42067d1b567c855e6cfe06c5d7da6562b009d397ed6b firefox-53.0a2.en-US.linux-x86_64.tar.bz2
@denysvitali
denysvitali / is.php
Last active February 14, 2017 22:57
Generate IS (Inpay Slip by Postfinance) codeline with PHP
<?php
// Check for more info: https://www.postfinance.ch/binp/postfinance/public/dam.Ii-X5NgtAixO8cQPvja46blV6d7cZCyGUscxO15L5S8.spool/content/dam/pf/de/doc/consult/manual/dldata/efin_recdescr_man_en.pdf
// Thanks to:
// - https://gist.github.com/gbaudoin/9066c1a3d6ab68351635
// - https://gist.github.com/christianmeichtry/9348451
// - http://dnando.github.io/blog/2014/09/23/check-digit-computation-swiss-pay-slips/
$slipType = "01";
$amount = 3949.75;
$referenceNumber = "12 00000 00000 23447 89432 16899";
$subNumber = "01-162-8";
%%
%% This is file `minutes.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% minutes.dtx (with options: `package')
%% ----------------------------------------------------------------------
%% The original file is loadable from CTAN on:
%% macros/latex/contrib/supported/minutes
drwxr-xr-x 2 dvitali dvitali 4096 16 mar 23.21 .
drwxr-xr-x 3 dvitali dvitali 4096 16 mar 23.09 ..
-rwxr-xr-x 1 dvitali dvitali 8368 16 mar 23.16 hello-c
-rw-r--r-- 1 dvitali dvitali 58 16 mar 23.16 hello.c
-rw-r--r-- 1 dvitali dvitali 19 16 mar 23.12 hello-crystal.cr
-rwxr-xr-x 1 dvitali dvitali 601944 16 mar 23.21 hello-crystal-debug
-rwxr-xr-x 1 dvitali dvitali 227160 16 mar 23.14 hello-crystal-release
-rw-r--r-- 1 dvitali dvitali 40 16 mar 23.10 hello.rs
-rwxr-xr-x 1 dvitali dvitali 1911160 16 mar 23.10 hello-rust
-rwxr-xr-x 1 dvitali dvitali 1911008 16 mar 23.19 hello-rust-optimized
mag 06 21:05:57 denvit-ws1 bluetoothd[533]: Endpoint registered: sender=:1.27706 path=/MediaEndpoint/A2DPSource
mag 06 21:05:57 denvit-ws1 bluetoothd[533]: Endpoint registered: sender=:1.27706 path=/MediaEndpoint/A2DPSink
mag 06 21:05:57 denvit-ws1 bluetoothd[533]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
mag 06 21:05:58 denvit-ws1 systemd-coredump[22506]: Process 20616 (gnome-shell) of user 1000 dumped core.
Stack trace of thread 22504:
#0 0x00007fa502587080 cairo_image_surface_get_height (libcairo.so.2)
#1 0x00007fa5084cbc87 n/a (libgnome-shell.so)
#2 0x00007fa50669429d n/a (libgio-2.0.so.0)
#3 0x00007fa506115c8e n/a (libglib-2.0.so.0)
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.18.0 (mat@mathieu-Studio-XPS-1640) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #8 SMP PREEMPT Tue Feb 28 21:14:43 CET 2017
[ 0.000000] CPU: Cortex A57 Processor [411fd071] revision 1
[ 0.000000] alternatives: enabling workaround for ARM erratum 832075
[ 0.000000] Found vpr, start=0xf6800000 size=0x8000000
[ 0.000000] debug: ignoring loglevel setting.
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.11.0 (root@dkc-1) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #2 SMP PREEMPT Thu May 11 21:53:05 UTC 2017
[ 0.000000] Boot CPU: AArch64 Processor [411fd071]
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 16 MiB at 0x00000000f5400000
[ 0.000000] earlycon: uart0 at MMIO 0x0000000070006000 (options '115200n8')
[ 0.000000] bootconsole [uart0] enabled
[ 0.000000] On node 0 totalpages: 747008
[ 0.000000] DMA zone: 7576 pages used for memmap