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
| gpsbabel -w -t -i garmin -f /dev/ttyS0 -o kml -F output.kml |
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
| String json_q( String s ) { | |
| return s.replaceAll( "\\\\", "\\\\\\\\" ).replaceAll( "\"", "\\\\\"" ); | |
| } |
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
| Put these in /etc/sysctl.conf then run sysctl -p to apply them. | |
| # General gigabit tuning: | |
| net.core.rmem_max = 16777216 | |
| net.core.wmem_max = 16777216 | |
| net.ipv4.tcp_rmem = 4096 87380 16777216 | |
| net.ipv4.tcp_wmem = 4096 65536 16777216 | |
| net.ipv4.tcp_syncookies = 1 | |
| # this gives the kernel more memory for tcp |
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
| $("head").append("<link>"); | |
| css = $("head").children(":last"); | |
| css.attr({ | |
| rel: "stylesheet", | |
| type: "text/css", | |
| href: "/javascripts/jwysiwyg/jquery.wysiwyg.css" | |
| }); |
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
| (function(window,undefined){ | |
| var document = window.document; | |
| var self = { | |
| map: undefined, | |
| elem: undefined, | |
| load: function( elem ) { | |
| self.elem = elem; | |
| if( self.is_loaded ) { return; } | |
| var callback = "window.gmap.load_cb" | |
| var s = document.createElement("script"); |
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
| import commands | |
| from fabric.api import * | |
| # Globals | |
| env.project='EBSSTRIPING' | |
| env.user = 'myuser' | |
| DEVICES = [ |
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
| echo “10152 65535″ > /proc/sys/net/ipv4/ip_local_port_range | |
| sysctl -w fs.file-max=128000 | |
| sysctl -w net.ipv4.tcp_keepalive_time=300 | |
| sysctl -w net.core.somaxconn=250000 | |
| sysctl -w net.ipv4.tcp_max_syn_backlog=2500 | |
| sysctl -w net.core.netdev_max_backlog=2500 | |
| ulimit -n 10240 |
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
| class AttrDict(dict): | |
| def __getattr__(self, key): | |
| return self[key] | |
| def __setattr__(self, key, value) | |
| self[key] = value |
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
| set keymap=russian-jcukenwin | |
| set iminsert=0 | |
| set imsearch=0 | |
| highlight lCursor guifg=NONE guibg=Cyan | |
| :setlocal spell spelllang=ru_yo,en_us | |
| :setlocal spell spelllang=ru_ru,en_us | |
| # use Ctrl-^ to switch |
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
| // required: gcc -traditional-cpp pi.c | |
| #define _ -F<00||--F-OO--; | |
| int F=00,OO=00; | |
| main(){F_OO();printf("%1.3f\n",4.*-F/OO/OO);}F_OO() | |
| { | |
| _-_-_-_ | |
| _-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ |