Skip to content

Instantly share code, notes, and snippets.

blaszku blaszku

Block or report user

Report or block blaszku

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@blaszku
blaszku / provisioning2xml.sh
Last active Aug 27, 2019
Looking into provisioniong profile (.mobileprovision)
View provisioning2xml.sh
#!/bin/bash
# Usage: provide 2 parameters(provisioning profile path and new filename)
#
# sh ./provisioning2xml.sh path xml_name
path=$1
name=$2
echo "Generating $name.xml from path: $path"
security cms -D -i "$path" >> ./"$name".xml
echo "Finished"
@blaszku
blaszku / gist:8f139077fc473ce47017381608d3b0f7
Created Aug 22, 2019 — forked from danielbraun/gist:27e43b914c6a2e081792
Vim syntax coloring for Cocoapods' Podfile.
View gist:8f139077fc473ce47017381608d3b0f7
// Append this to your .vimrc
au BufNewFile,BufRead Podfile set filetype=ruby
@blaszku
blaszku / RemovingByIndex.swift
Last active Jun 6, 2018
Another way to remove item from collection
View RemovingByIndex.swift
guard let index = items.index(where: {$0 == item})
else {
return
}
items.remove(at: index)
@blaszku
blaszku / ArrayStorage.swift
Last active Apr 18, 2018
A class that saves and retrieves an array to the device
View ArrayStorage.swift
//: Playground - a class that saves and retrieves an array to the device
import Foundation
class ArrayStorageManager: NSObject {
static let shared = ArrayStorageManager()
private var documentsDirectoryURL: URL {
let url = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first
return url!
@blaszku
blaszku / GIF-Screencast-OSX.md
Created Apr 5, 2018 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF
View GIF-Screencast-OSX.md

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@blaszku
blaszku / .gitconfig
Last active Apr 24, 2018
Human Git Aliases
View .gitconfig
[alias]
st = status
coma = commit -a
amend = commit --amend
amenda = amend -a
discard = checkout --
unstage = reset HEAD --
save = commit -m
gl = log --oneline --decorate --graph --all
@blaszku
blaszku / Git-notatki.md
Last active Apr 1, 2018
Informacje, polecenia...
View Git-notatki.md

Struktura Commita:

  • stan struktury w drzewie plików
  • metadata (autor, data)
  • referencja do rodzica (poprzedniego brancha)

Struktura Brancha:

  • implementowany jako plik przechowujący SHA1 hash.

  • Lokalizacja: .git/refs/heads/mójBranch

You can’t perform that action at this time.