This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, 1)]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias zmserver='ssh XXXXX@five-chat.zyncro.net' | |
| alias zmtunel='ssh -L 8080:127.0.0.1:8080 XXXX@five-chat.zyncro.net' | |
| alias ndebug='node-debug --no-debug-brk' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias zmserver='ssh jose.campana@five-chat.zyncro.net' | |
| alias zmtunel='ssh -L 8080:127.0.0.1:8080 jose.campana@five-chat.zyncro.net' | |
| alias ndebug='node-debug --no-debug-brk' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // usage demo: | |
| .block { | |
| width: 100px; | |
| margin: 20px; | |
| height: 100px; | |
| } | |
| .hsl { | |
| background-color: hsl(118, 77%, 53%); | |
| } | |
| .rgb { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export LC_CTYPE=en_US.UTF-8 | |
| export CLICOLOR=1 | |
| export LSCOLORS=gxGxFxdxbxDxDxBxBxExEx | |
| export HISTCONTROL=erasedups | |
| export HISTSIZE=100000 | |
| shopt -s histappend | |
| LIGHT_RED="\[\033[0;91m\]" | |
| LIGHT_MAGENTA="\[\033[0;95m\]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var a = [1,2,3,4,5,6,7,7,7,7,7,8]; | |
| a = a.filter(function(item, pos) { | |
| return a.indexOf(item) == pos; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Array.prototype.spliceArray = function(index, n, array) { | |
| return Array.prototype.splice.apply(this, [index, n].concat(array)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export PATH=/usr/local/sbin:/usr/local/bin:$PATH | |
| export LC_CTYPE=en_US.UTF-8 | |
| export CLICOLOR=1 | |
| export LSCOLORS=gxGxFxdxbxDxDxBxBxExEx | |
| export HISTCONTROL=erasedups | |
| export HISTSIZE=100000 | |
| shopt -s histappend |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Timezone | |
| dpkg-reconfigure tzdata | |
| #Cambiar el shell predeterminado para un user | |
| chsh pandi | |
| #Configurar AFP (http://missingreadme.wordpress.com/2010/05/08/how-to-set-up-afp-filesharing-on-ubuntu/) | |
| apt-get install netatalk | |
| #locale ES | |
| apt-get install language-pack-es-base | |
| #crear user pandi y añadirlo a sudoers | |
| adduser pandi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diskutil list | |
| #If the disk is the 4... | |
| diskutil unmountDisk /dev/disk4 | |
| sudo dd if=~/Downloads/ubuntu-14.04lts-server-odroid-x2-20140604.img of=/dev/rdisk4 bs=1m | |
| diskutil eject /dev/rdisk4 |
NewerOlder