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
| Hi, using kernel 3.8.0-23-generic, 'normal' ubuntu 13.04, HP6830s and an older HP laptop of which I don't know by heart the model, same problem. | |
| I modified the script a little; I presume it will work on all laptops like this since it does for mine: | |
| nano /etc/pm/sleep.d/99fancontrol.sh | |
| #!/bin/bash | |
| # | |
| # |
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
| #include <iostream> | |
| #include <bitset> | |
| int main() | |
| { | |
| union | |
| { | |
| float input; // assumes sizeof(float) == sizeof(int) | |
| int output; | |
| } data; |
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
| warning: deprecated conversion from string constant to ‘char*’ | |
| The correct way to fix this is to find every declaration like | |
| char *s = "constant string"; | |
| or function call like: | |
| void foo(char *s); |
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
| cd <localdir> | |
| git init | |
| git add . | |
| git commit -m 'message' | |
| git remote add origin <url> | |
| git push -u origin master |
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
| Backspace key is supposed to send Control+H or ^H, | |
| however, the terminal may show ^? and do not delete anything | |
| To fix this, change terminal settings and force ^H to be send for backspace key |
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
| CMD here: | |
| Shift + Menu | |
| w | |
| enter |
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
| '{0:04x}'.format(6) //{} will replace it with variable | |
| // convert from decimal to hex |
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
| for (( i=0; i<=5; i++ )) | |
| do | |
| ... | |
| done |