Skip to content

Instantly share code, notes, and snippets.

What / Why

Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.

As the name says, its primary function is to be used in the deploy process in replace of username/password, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.

How to

  1. Generate a ssh key
@melvinbeemer
melvinbeemer / Dusk.tmTheme
Created February 13, 2016 20:55
A TextMate/Sublime color scheme based on Xcode's Dusk
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>XcodeDusk</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@melvinbeemer
melvinbeemer / AVPlayer+IsPlaying.swift
Last active January 7, 2023 23:30
Check if AVPlayer is currently playing an item
import Foundation
import AVFoundation
extension AVPlayer {
var isPlaying: Bool {
if (self.rate != 0 && self.error == nil) {
return true
} else {
return false