Skip to content

Instantly share code, notes, and snippets.

View cpageler93's full-sized avatar
👨‍💻
Coding

Christoph Pageler cpageler93

👨‍💻
Coding
View GitHub Profile
.toolbar {
ToolbarItemGroup {
Button(action: {}, label: {
Image(systemName: "sidebar.left")
})
Spacer()
Button(action: {}, label: {
Image(systemName: "play.fill")
})
Button(action: {}, label: {
@cpageler93
cpageler93 / reset_simulators.rb
Created June 26, 2020 14:01
Clears existings iOS Simulators and creates new ones
#!/usr/bin/env ruby
simulators = [
{
:name => "iOS 12",
:runtime => "com.apple.CoreSimulator.SimRuntime.iOS-12-0",
:devices => [
{
:name => "iPhone SE",
@cpageler93
cpageler93 / .1_SETUP
Last active August 25, 2022 13:54
SETUP
This Gist includes my OSX Developer Setup
# Dock Setup:
defaults write com.apple.dock autohide-time-modifier -float 0.25;killall Dock
defaults write com.apple.dock autohide-delay -float 0;killall Dock
Setup:
# install hack font
# http://sourcefoundry.org/hack/
@cpageler93
cpageler93 / example_usage_class.h
Created March 18, 2016 09:30
Objective-C Singleton Pattern for Precompiler
//
// ExampleUsageService.h
// ExampleUsage
//
// Created by Christoph Pageler on 18/03/16.
// Copyright © 2016 Christoph Pageler. All rights reserved.
//
#import <Foundation/Foundation.h>
@cpageler93
cpageler93 / install_chefsolo.sh
Last active August 29, 2015 14:06
Install Chef Solo
sudo apt-get -y update
sudo apt-get -y install curl make vim
curl -L https://gist.githubusercontent.com/cpageler93/66080d09ded47272116a/raw/ec462b5aca6f8c83f0072ea454533f21df66cec0/chefsolo.sh | bash
# make cookbook
rsync -r --rsync-path="sudo rsync" . user@ip:/var/chef
ssh user@ip "sudo chef-solo -c /var/chef/solo.rb"
@cpageler93
cpageler93 / chefsolo.sh
Last active August 29, 2015 14:06
Bootstrap Chef Solo (with Ruby 2.1.2)
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libyaml-dev
cd /tmp
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
tar -xvzf ruby-2.1.2.tar.gz
cd ruby-2.1.2/
./configure --prefix=/usr/local
sudo make
sudo make install