Skip to content

Instantly share code, notes, and snippets.

View Charlisim's full-sized avatar

Carlos Simon Charlisim

  • Spain
View GitHub Profile
#!/bin/bash
# WARNING: this script will destroy data on the selected disk.
# This script can be run by executing the following:
# curl -sL https://git.io/vAoV8 | bash
set -uo pipefail
trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
MIRRORLIST_URL="https://www.archlinux.org/mirrorlist/?country=ES&protocol=https&use_mirror_status=on"
pacman -Sy --noconfirm pacman-contrib dialog git

Keybase proof

I hereby claim:

  • I am charlisim on github.
  • I am charlisim (https://keybase.io/charlisim) on keybase.
  • I have a public key ASDXFPkDxSl0LIaIJAvRg0P8igqdArud7pAovSEE1uMZmwo

To claim this, I am signing this object:

Pod::Spec.new do |s|
s.name = "PromiseKit"
s.version = "4.50.5"
s.source = {
:git => "https://github.com/24i/#{s.name}.git",
:tag => s.version
}
@Charlisim
Charlisim / Fresh macOS Setup.md
Last active February 4, 2018 09:55 — forked from ashfurrow/Fresh macOS Setup.md
All the stuff I do on a fresh macOS Installation

Apps to install from macOS App Store:

  • Tweetbot
  • Pastebot
  • Slack
  • Deckset
  • Keynote/Pages/Numbers
  • OmniFocus 2
  • CloudApp
  • Airmail 2
#!/bin/bash
source app/version.properties
VERSION="${MAJOR}.${MINOR}.${PATCH}.${AI_VERSION_CODE}";
echo $VERSION;
git commit -am "Increase to ${VERSION}.${BUILD}";
git flow release finish -m 'Version-${VERSION}' "${VERSION}";
@Charlisim
Charlisim / gist:1903f2533e5548289506
Created November 6, 2015 11:46
String Tokenizer Swift
let phrase = "User has | username | since | 2015-10-1|"
let lines = phrase.componentsSeparatedByString("|")
let beginWithToken = phrase.hasPrefix("|")
let even = beginWithToken == true ? 0 : 1
for var i in 0..<lines.count{
if i % 2 == even{
let phrase = NSAttributedString(string: lines[i], attributes: [NSForegroundColorAttributeName:color2,
NSFontAttributeName: font])
fullString.appendAttributedString(phrase)
@Charlisim
Charlisim / AppView.js
Last active December 20, 2015 06:09
HTML
(function ( views ) {
views.AppView = Backbone.View.extend({
el : '#content',
initialize : function () {
var tags = this.collection;
console.log(tags);
tags.on('add', this.addOne, this);
@Charlisim
Charlisim / gist:3476727
Created August 26, 2012 09:55
youtube-dl save video with title
youtube-dl -t http://www.youtube.com/watch?v=8VWPzK0_GFI&feature=g-all-fbc
@Charlisim
Charlisim / gist:3476719
Created August 26, 2012 09:54
youtube-dl descargar video
youtube-dl (URL del video)
youtube-dl http://www.youtube.com/watch?v=8VWPzK0_GFI&feature=g-all-fbc
@Charlisim
Charlisim / youtube-dl
Created August 26, 2012 09:52
youtube-dl install port
sudo port install youtube-dl