Skip to content

Instantly share code, notes, and snippets.

@geedelur
geedelur / git-flow_windows.textile
Created July 30, 2012 16:31
Git-flow Windows Install
@geedelur
geedelur / capistrano_windows.textile
Created July 30, 2012 16:13
Cygwin + Ruby + RubyGems => Deploy with Capistrano from Windows
@geedelur
geedelur / capistrano_ubuntu.textile
Created July 30, 2012 18:09
Capistrano Install on Ubuntu

Deploy with Capistrano from Ubuntu

  1. Install RVM and Ruby
    • sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion git
    • curl -L https://get.rvm.io | bash -s stable --ruby
    • source ~/.rvm/scripts/rvm
  1. Install Capistrano gems
#!/bin/bash
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
/*
* Basic layout
*/
.container {
width: 100% !important;
padding-right: 30px !important;
padding-left: 30px !important;
}
/* Responsive containers on some pages */
@geedelur
geedelur / karabiner.json
Last active March 26, 2020 05:04
Media Keys Config for FILCO Keyboard
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@geedelur
geedelur / summernote_show_hide_toolbar.js
Last active March 12, 2019 23:47
show/hide summernote toolbar
function summernoteLoad() {
var $summernoteTextAreas = $('[data-control="summernote"]');
//cargar summernote
$summernoteTextAreas.summernote({
onImageUpload: summernoteOnImageUpload,
onkeyup: function() {
syncSummernoteTextArea($summernoteTextAreas);
validate(false);
},
onblur: function() {
@geedelur
geedelur / vagrant-librarian-chef-windows.md
Last active January 15, 2018 21:35
vagrant librarian chef windows
@geedelur
geedelur / com.googlecode.iterm2.plist
Last active February 21, 2016 20:19
iterm2 preferences
<?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>AdjustWindowForFontSizeChange</key>
<true/>
<key>AllowClipboardAccess</key>
<false/>
<key>AnimateDimming</key>
<false/>
@geedelur
geedelur / resize_image_summernote.js
Last active December 28, 2015 16:59
callback function for summernote (https://github.com/HackerWins/summernote/) onImageUpload event that resizes the images before sending them to the server
function summernoteOnImageUpload(files, editor, welEditable) {
$.each(files, function(idx, file) {
var max_width = 400;
var max_height = 400;
var reader = new FileReader();
reader.onload = function() {
var tmpImg = new Image();
tmpImg.src = reader.result;