def xxd(d): return reduce(lambda x,y:x+y+" ", map(lambda p:("0" if ord(p)<=0xf else "")+hex(ord(p))[2:],d), "")
print xxd("cat")
print xxd("\x0f\x05\x01")This code sample was made by Andras Retzler, and is released under the MIT license.
| photo_title=""" | |
| <div id="tlkio" | |
| data-channel="openwebrx" | |
| style="background-color: white; position:absolute; padding-top: 10px; opacity: 0.95;"> | |
| </div> | |
| <script async src="http://tlk.io/embed.js" type="text/javascript"></script> | |
| <script> | |
| tlk_original_height=0; | |
| function resize_tlk() | |
| { |
| - had to install xorg-edgers and special version of compiz fusion | |
| - guake is broken | |
| - external display should be connected _after_ starting the laptop | |
| - both displays should be placed below/above each other, on the left |
| #!/usr/bin/tcc -run | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| //dependencies: sudo apt-get install tcc | |
| //usage: cat sine.raw | ./stereo_phaseshift.c > sine2.raw | |
| //d gives the number of samples to shift: | |
| int d=5, i; | |
| short gs() | |
| { |
| #Install dependencies | |
| sudo apt-get install build-essential git libfftw3-dev cmake libusb-1.0-0-dev | |
| #Fetch and build rtl-sdr, skip if already done (subdirectories will be created under the current directory). | |
| git clone git://git.osmocom.org/rtl-sdr.git | |
| cd rtl-sdr/ | |
| mkdir build | |
| cd build | |
| cmake ../ -DINSTALL_UDEV_RULES=ON | |
| make |
| #include <stdio.h> | |
| #include <unistd.h> | |
| int main() | |
| { | |
| pid_t p; | |
| int stat; | |
| int i; | |
| if(!(p = fork())) | |
| { |
| #include <stdio.h> | |
| #include <unistd.h> | |
| int main() | |
| { | |
| pid_t p; | |
| int stat; | |
| int i; | |
| for(i=0;i<3;i++) //<===== that's what changed! | |
| if(!(p = fork())) |
| Individual Contributor License Agreement ("Agreement") | |
| In order to clarify the intellectual property license granted | |
| with Contributions from any person or entity, Retzler András | |
| (hereinafter referred to as "Project Owner") must have a | |
| Contributor License Agreement ("CLA") on file that has | |
| been signed by each Contributor, indicating agreement to the license | |
| terms below. This license is for your protection as a Contributor as | |
| well as the protection of the Project Owner; it does not change your | |
| rights to use your own Contributions for any other purpose. |
| <?xml version='1.0' encoding='utf-8'?> | |
| <?grc format='1' created='3.7.8'?> | |
| <flow_graph> | |
| <timestamp>Sun Feb 14 23:22:04 2016</timestamp> | |
| <block> | |
| <key>options</key> | |
| <param> | |
| <key>author</key> | |
| <value></value> | |
| </param> |
| #This is based on: https://github.com/ranger/ranger/blob/master/examples/bash_automatic_cd.sh | |
| #Paste this into your .zshrc: | |
| function ranger-cd { | |
| tempfile="$(mktemp -t tmp.XXXXXX)" | |
| /usr/bin/ranger --choosedir="$tempfile" "${@:-$(pwd)}" | |
| test -f "$tempfile" && | |
| if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then | |
| cd -- "$(cat "$tempfile")" | |
| fi |
def xxd(d): return reduce(lambda x,y:x+y+" ", map(lambda p:("0" if ord(p)<=0xf else "")+hex(ord(p))[2:],d), "")
print xxd("cat")
print xxd("\x0f\x05\x01")This code sample was made by Andras Retzler, and is released under the MIT license.