Make the proper permisions for the screen command
sudo chmod u+s $(which screen)
sudo chmod 755 /var/run/screen/
sudo rm -rf /var/run/screen/*
| // ==UserScript== | |
| // @name Add Pagination For My Gists To Top | |
| // @namespace gistGithubAddPaginationToTop4MyGists | |
| // @include /^http:\/\/gist\.github\.com\/mine([?#].*)?$/i | |
| // @include http://gist.github.com/mine* | |
| // @match http://gist.github.com/mine* | |
| // @datecreated 2010-03-21 | |
| // @lastupdated 2010-03-21 | |
| // @version 0.1 | |
| // @author Erik Vergobbi Vold |
| # see http://stackoverflow.com/questions/10343634/iterating-over-the-registers-of-a-yardoc-macro for original question. | |
| module my_module | |
| class Resource | |
| # @macro dsl_method | |
| # @method $1(${2--2}) | |
| # @return [${2}] the return value of $0 | |
| def self.property(name, type, args*) end | |
| end |
| [1] pry(main)> puts "hello world!" | |
| hello world! | |
| => nil | |
| [2] pry(main)> class << self | |
| [2] pry(main)* def puts string | |
| [2] pry(main)* print "overloaded! " + string + "\n" | |
| [2] pry(main)* end | |
| [2] pry(main)* end | |
| => nil | |
| [3] pry(main)> puts "hello world!" |
| def translate string | |
| string.gsub( /((?:(?:qu))*[^aeiou]*)(\w*)/, '\2\1') + 'ay' | |
| end |
| def link_to(text, address) | |
| "<a href='#{ address }'>#{ text }</a>" | |
| end | |
| def content_tag tag, &block | |
| "<#{ tag.to_s }>#{ block.call }</#{ tag.to_s}>" | |
| end |
| >>> microAeth = serial.Serial('/dev/ttyUSB1', 500000, timeout=1, parity=serial.PARITY_MARK) | |
| Traceback (most recent call last): | |
| File "<stdin>", line 1, in <module> | |
| File "/usr/local/lib/python2.7/dist-packages/serial/serialutil.py", line 261, in __init__ | |
| self.open() | |
| File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 282, in open | |
| self._reconfigurePort() | |
| File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 376, in _reconfigurePort | |
| raise ValueError('Invalid parity: %r' % self._parity) | |
| ValueError: Invalid parity: 'M' |
| #include <stdio.h> | |
| #include <string.h> | |
| int main () | |
| { | |
| char str0[]="Hello world"; | |
| char str1[40]; | |
| int str0_length = strlen(str0); | |
| int i; | |
| for( i = 1 ; i <= str0_length ; i++) |
| com.write_message( ("\x02" + 6.chr + "AE5X:W" + ("AE5X:W" ^ 6.chr) + "\x03").force_encoding("ASCII-8BIT")) | |
| class ::String | |
| ### | |
| # @return the first charater in the string as an integer | |
| def byte | |
| self.bytes[0] | |
| end | |
| ### |