Skip to content

Instantly share code, notes, and snippets.

@dkrusky
dkrusky / HMAC.swift
Created November 26, 2018 00:36 — forked from MihaelIsaev/HMAC.swift
Easy to use Swift implementation of CommonCrypto HMAC. You can easily hash your String to: md5, sha1, sha224, sha256, sha384, sha512 with pure Swift.
//
// HMAC.swift
//
// Created by Mihael Isaev on 21.04.15.
// Copyright (c) 2014 Mihael Isaev inc. All rights reserved.
//
// ***********************************************************
//
// How to import CommonCrypto in Swift project without Obj-c briging header
//
@dkrusky
dkrusky / install-mysql-apt-debian-9.sh
Created February 26, 2018 05:56 — forked from anonymous/install-mysql-apt-debian-9.sh
Install MySQL APT for Debian 9
#!/bin/bash
apt install dirmngr
apt-key adv --keyserver pgp.mit.edu --recv-keys 5072E1F5
echo 'deb http://repo.mysql.com/apt/debian/ stretch mysql-5.7' > /etc/apt/sources.list.d/mysql.list
apt update
apt upgrade
apt install mysql-community-server