Skip to content

Instantly share code, notes, and snippets.

View endSly's full-sized avatar

Endika Gutiérrez endSly

View GitHub Profile
@endSly
endSly / gist:7908774
Created December 11, 2013 11:25
[Git] Remove remote tag
git tag -d 12345
git push origin :refs/tags/12345
@endSly
endSly / Gemfile
Created January 9, 2014 14:54 — forked from fairchild/Gemfile
Sinatra app + Omniauth example
source :rubygems
gem 'sinatra'
gem 'json'
gem 'omniauth'
gem 'omniauth-oauth2'
gem 'omniauth-github'
# gem 'omniauth-att', :path => File.expand_path("./../../omniauth-att", __FILE__)
gem 'thin'
@endSly
endSly / sslconnect.c
Last active May 13, 2020 16:35
Example code for building a SSL connection and retrieving the server certificate
/* ------------------------------------------------------------ *
* file: sslconnect.c *
* purpose: Example code for building a SSL connection and *
* retrieving the server certificate *
* author: 06/12/2012 Frank4DD *
* *
* gcc -lssl -lcrypto -o sslconnect sslconnect.c *
* ------------------------------------------------------------ */
#include <sys/socket.h>
[core]
editor = vim
excludesfile = ~/.gitignore_global
# Treat spaces before tabs and all kinds of trailing whitespace as an error.
# [default] trailing-space: looks for spaces at the end of a line
# [default] space-before-tab: looks for spaces before tabs at the beginning of
# a line
whitespace = space-before-tab,-indent-with-non-tab,trailing-space
# Make `git rebase` safer on OS X
# More info: <http://www.git-tower.com/blog/make-git-rebase-safe-on-osx/>
@endSly
endSly / ProjectErbToHaml
Created February 24, 2014 20:31
Project Erb To Haml
find . -name '*erb' | xargs ruby -e 'ARGV.each { |i| puts "html2haml -r #{i} #{i.sub(/erb$/,"haml")}"}' | bash
find . -name '*erb' | xargs rm -rf ARGV
#!/usr/bin/env ruby
require 'english'
require 'rubocop'
ADDED_OR_MODIFIED = /A|AM|^M/.freeze
changed_files = `git status --porcelain`.split(/\n/).
select { |file_name_with_status|
file_name_with_status =~ ADDED_OR_MODIFIED
# execute at home
cd
# Install Xcode
xcode-select --install
# Download gitconfig
curl -O https://gist.githubusercontent.com/endSly/0d2e9a7e6d3cf44a274a/raw/.gitconfig
curl -O https://gist.githubusercontent.com/endSly/fe1a8b44782d5a6f99c8/raw/.gitignore_global
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
@endSly
endSly / Piperita.terminal
Last active January 19, 2017 07:55
Custom.terminal
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw
LjI5OTE1MzMyNzkgMC4yOTkyNTI0NTA1IDAuMjk5MTAwMzY5MgAQAYAC0hAREhNaJGNs
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
@endSly
endSly / flexget.yml
Last active March 13, 2016 18:27
~/.config/flexget/config.yml
templates:
transmission_config:
transmission:
host: "192.168.1.2"
port: 9091
deluge_config:
deluge:
host: localhost
port: 58846