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 | |
| # AMD + FFMPEG VAAPI screen+alsa+pulseaudio recording script | |
| # In your home directory create .asoundrc with following contents: | |
| # pcm.!default pulse | |
| # ctl.!default pulse | |
| # This allows alsa to use pulseaudio as the input device. | |
| # Bind any hotkey to the script. | |
| # Launch once - recording starts. Launch twice - recording stops. |
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
| # https://github.com/psf/requests/issues/2359#issuecomment-552736992 | |
| import requests | |
| import cchardet | |
| class ForceCchardet: | |
| @property | |
| def apparent_encoding(obj): | |
| return cchardet.detect(obj.content)['encoding'] | |
| requests.Response.apparent_encoding = ForceCchardet.apparent_encoding |
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
| # TCVN3 to UTF-8 | |
| UNICODETAB = [ | |
| "À", "Á", "Â", "Ã", "È", "É", "Ê", "Ì", "Í", "Ò", | |
| "Ó", "Ô", "Õ", "Ù", "Ú", "Ý", "à", "á", "â", "ã", | |
| "è", "é", "ê", "ì", "í", "ò", "ó", "ô", "õ", "ù", | |
| "ú", "ý", "Ă", "ă", "Đ", "đ", "Ĩ", "ĩ", "Ũ", "ũ", | |
| "Ơ", "ơ", "Ư", "ư", "Ạ", "ạ", "Ả", "ả", "Ấ", "ấ", | |
| "Ầ", "ầ", "Ẩ", "ẩ", "Ẫ", "ẫ", "Ậ", "ậ", "Ắ", "ắ", | |
| "Ằ", "ằ", "Ẳ", "ẳ", "Ẵ", "ẵ", "Ặ", "ặ", "Ẹ", "ẹ", | |
| "Ẻ", "ẻ", "Ẽ", "ẽ", "Ế", "ế", "Ề", "ề", "Ể", "ể", |
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
| ; NASM i386 | |
| ; nasm -f elf print_odd_even.asm | |
| ; ld -m elf_i386 print_odd_even.o -o print_odd_even | |
| ; | |
| ; EXAMPLE | |
| ; bash# ./print_odd_even | |
| ; Enter the string: The quick brown fox jumps over the lazy dog | |
| ; Odd: | |
| ; Teqikbonfxjmsoe h aydg | |
| ; Even: |
NewerOlder