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
| USB Quick Start | |
| =============== | |
| XHCI controller support | |
| ----------------------- | |
| QEMU has XHCI host adapter support. The XHCI hardware design is much | |
| more virtualization-friendly when compared to EHCI and UHCI, thus XHCI | |
| emulation uses less resources (especially cpu). So if your guest |
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
| (originally written in 2009 and posted to livejournal! https://jdimpson.livejournal.com/6812.html | |
| The last article teaches how to use socat by comparing it first to cat then to netcat. It skimped on socat's UDP-related features, because netcat only implements a subset of them. This article picks up where the last one left off, with respect to UDP. After this article will be one more that discusses advanced socat features. | |
| It turns out there are a lot of subleties when dealing with UDP, even before multicast is mixed in. We'll abandon the comparisons to netcat, as we've exceeded what netcat can do. But first a quick reminder of one way socat does UDP. | |
| socat as a UDP server on port 11111. | |
| socat STDIO UDP-LISTEN:11111 |
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
| #!/bin/bash | |
| if [ "$#" -ne 1 ]; then | |
| echo | |
| echo "No hostname given to obtain certificate status" | |
| echo "\tuse: $0 www.example.com" | |
| echo | |
| exit 1 | |
| fi |
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
| <? | |
| ///////////////////// | |
| // slack2html | |
| // by @levelsio | |
| ///////////////////// | |
| // | |
| ///////////////////// | |
| // WHAT DOES THIS DO? | |
| ///////////////////// | |
| // |
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
| # name: это строка которую транслитим | |
| def transliterate(name): | |
| """ | |
| Автор: LarsKort | |
| Дата: 16/07/2011; 1:05 GMT-4; | |
| Не претендую на "хорошесть" словарика. В моем случае и такой пойдет, | |
| вы всегда сможете добавить свои символы и даже слова. Только | |
| это нужно делать в обоих списках, иначе будет ошибка. | |
| """ | |
| # Слоаврь с заменами |
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 clone (t) -- deep-copy a table | |
| if type(t) ~= "table" then return t end | |
| local meta = getmetatable(t) | |
| local target = {} | |
| for k, v in pairs(t) do | |
| if type(v) == "table" then | |
| target[k] = clone(v) | |
| else | |
| target[k] = v | |
| end |
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
| # Change colors of elements in Gnuplot | |
| # change a color of border. | |
| set border lw 3 lc rgb "white" | |
| # change text colors of tics | |
| set xtics textcolor rgb "white" | |
| set ytics textcolor rgb "white" | |
| # change text colors of labels |
NewerOlder