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 /
Last active Aug 27, 2019
Looking into provisioniong profile (.mobileprovision)
# Usage: provide 2 parameters(provisioning profile path and new filename)
# sh ./ path xml_name
echo "Generating $name.xml from path: $path"
security cms -D -i "$path" >> ./"$name".xml
echo "Finished"
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 / 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 {
items.remove(at: index)
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 /
Created Apr 5, 2018 — forked from dergachev/
OS X Screencast to animated GIF

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


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

blaszku / .gitconfig
Last active Apr 24, 2018
Human Git Aliases
View .gitconfig
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 /
Last active Apr 1, 2018
Informacje, polecenia...

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.