Skip to content

Instantly share code, notes, and snippets.

View d4r1091's full-sized avatar

Dario Carlomagno d4r1091

View GitHub Profile
@d4r1091
d4r1091 / moving-to-https-steps.md
Last active February 19, 2021 13:22
Adding HTTPS to your website with CertBot

Moving onto HTTPS...

Purpose

Here is a step by step guideline to make your Website a safe 🔒place to surf 🏄🏻‍♀️. A bit of knowledge of the HTTP protocol, command-line and the System your Website is hosted on, is required. Instead of always navigating to the CertBot's website, I thought better having something with clear step-by-step that I can always consult. 🤷🏽‍♂️ Like a quick note 📝.

CertBot

@d4r1091
d4r1091 / installMobileProvisionFile.sh
Last active January 16, 2020 22:37 — forked from benvium/installMobileProvisionFile.sh
This script installs a .mobileprovision file via bash (no GUI session needed) - Tested on zsh
#!/bin/sh
# 2012 - Ben Clayton (benvium). Calvium Ltd
# 2017 - Dario Carlomagno (d4r1091). Tictrac Ltd
#
# This script installs a .mobileprovision file without using Xcode. Unlike Xcode, it'll
# work over SSH.
#
# Requires Mac OS X (I'm using 10.7 and Xcode 4.3.2)
#
@d4r1091
d4r1091 / RandomProtocol.swift
Last active August 26, 2019 10:15
URandom OSX - Linux no dependencies
// Source: https://github.com/vapor-community/random
public protocol RandomProtocol {
/// Get a random array of Bytes
func bytes(count: Int) throws -> Bytes
}
// MARK: - Throwing getter methods
extension RandomProtocol {
/// Get a random Int8
@d4r1091
d4r1091 / Tokenable.swift
Last active October 12, 2019 07:52
Encode Token protocol Swift
//
// Tokenable.swift
//
// Created by Dario Carlomagno on 27/07/2019.
//
import Foundation
protocol Tokenable {
@d4r1091
d4r1091 / keybase.md
Created February 6, 2017 00:02
Keybase Gist Verification

Keybase proof

I hereby claim:

  • I am d4r1091 on github.
  • I am darioc (https://keybase.io/darioc) on keybase.
  • I have a public key ASBQ07uYxGeztaN9oxLTz30PLCSbcr1HqDroYc6nPafR8wo

To claim this, I am signing this object:

@d4r1091
d4r1091 / UIDeviceHardware.h
Created October 28, 2015 13:18 — forked from Jaybles/UIDeviceHardware.h
UIDeviceHardware - Determine iOS device being used
//
// UIDeviceHardware.h
//
// Used to determine EXACT version of device software is running on.
#import <Foundation/Foundation.h>
@interface UIDeviceHardware : NSObject
- (NSString *) platform;
//
// UINavigationController+CompletionHandler.h
// Entire
//
// Created by ChristianEnevoldsen on 10/08/14.
// Copyright (c) 2014 Reversebox. All rights reserved.
//
// Forked by Dario Carlomagno on 03/10/14.
// Copyright (c) 2014 Monksoftware. All rights reserved.
//