| Description | Command |
|---|---|
| Start a new session with session name | screen -S <session_name> |
| List running sessions / screens | screen -ls |
| Attach to a running session | screen -x |
| Attach to a running session with name | screen -r |
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
| # Generate a new pgp key: (better to use gpg2 instead of gpg in all below commands) | |
| gpg --gen-key | |
| # maybe you need some random work in your OS to generate a key. so run this command: `find ./* /home/username -type d | xargs grep some_random_string > /dev/null` | |
| # check current keys: | |
| gpg --list-secret-keys --keyid-format LONG | |
| # See your gpg public key: | |
| gpg --armor --export YOUR_KEY_ID | |
| # YOUR_KEY_ID is the hash in front of `sec` in previous command. (for example sec 4096R/234FAA343232333 => key id is: 234FAA343232333) |
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
| __ALIGN_END const unsigned char stlogo[9174]= | |
| { | |
| 0x42,0x4d,0xd6,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x36,0x00,0x00,0x00,0x28,0x00, | |
| 0x00,0x00,0x50,0x00,0x00,0x00,0x39,0x00,0x00,0x00,0x01,0x00,0x10,0x00,0x03,0x00, | |
| 0x00,0x00,0xa0,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, | |
| 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, | |
| 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, | |
| 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, | |
| 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, | |
| 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, |
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
| Run->External Tools->External Tools Configurations... | |
| In the External Tools Configurations Window | |
| Name: checkpatch | |
| Location: Set your checkpatch.pl location (linux_tree/scripts/checkpatch.pl) | |
| Arguments: -f --no-tree ${resource_loc} | |
| Click Apply. | |
| Now click on any source file that you want to use checkpatch for, click run->external tools->checkpatch |
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
| /* | |
| * retarget_stdio.c | |
| * | |
| * Created on: 17-Oct-2020 | |
| * Author: Raj.S | |
| */ | |
| #include "stm32f4xx_hal.h" | |
| #include "retarget_stdio.h" | |
| #include <stdio.h> | |
| #include <errno.h> |
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
| #1000 duplicated fames error fix, | |
| find . -name *.mp4 ! -path *.mp4.* -exec ffmpeg -i {} -s 1280x720 -movflags faststart -profile:v high -level 4.2 -max_muxing_queue_size 9999 -movflags frag_keyframe+empty_moov -max_interleave_delta 0 -vf mpdecimate -c:a copy -vsync vfr {}.mp4 \; -exec rm {} \; | |
| #Ilegal Seek fix adn out of queue error fix (faster encoding) | |
| find . -name *.mp4 ! -path *.mp4.* -exec ffmpeg -i {} -s 1280x720 -movflags faststart -profile:v high -level 4.2 -max_muxing_queue_size 9999 -movflags frag_keyframe+empty_moov {}.mp4 \; -exec rm {} \; | |
| #run from any dir, will find .mp4 in all subdir and process it | |
| find . -name *.mp4 -exec ffmpeg -i {} -s 1280x720 -movflags faststart -profile:v high -level 4.2 {}.mp4 \; -exec rm {} \; |
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 <stdio.h> | |
| #include <stdlib.h> | |
| // Structure Definations | |
| struct element { | |
| int i; | |
| int j; | |
| int 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
| #include<stdio.h> | |
| #include<stdlib.h> | |
| struct Node | |
| { | |
| int A; | |
| struct Node *next; | |
| struct Node *prev; | |
| } *first, *last; |
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<stdio.h> | |
| #include<stdlib.h> | |
| struct Node | |
| { | |
| int A; | |
| struct Node *next; | |
| } *first; | |
| typedef struct Node Node; |
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<stdio.h> | |
| #include<stdlib.h> | |
| #include<unistd.h> | |
| struct Poly | |
| { | |
| int Coeff; | |
| int Pow; | |
| struct Poly *next; | |
| } *first, *second, *Sum; |