https://www.screenstab.com/editor/
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
| project external/freetype/ | |
| c3a3f04 Cherry-pick one upstream patch | |
| project external/gptfdisk/ | |
| 886331c RESTRICT AUTOMERGE ANDROID: Fix negative stack write in sgdisk | |
| project external/libexif/ | |
| 065ec3f fixes some (not all) buffer overreads during decoding pentax makernote entries. | |
| project frameworks/av/ |
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
| #!/usr/bin/python3 | |
| # og source: https://gist.github.com/JamesPHoughton/0f4f269e93a2b85958d8 | |
| from zipfile import ZipFile | |
| def unpack_zip(zipfile='', path_from_local=''): | |
| filepath = path_from_local+zipfile | |
| extract_path = filepath.strip('.zip') + '/' |
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
| # location: ".local/share/applications/Postman.desktop" | |
| [Desktop Entry] | |
| Encoding=UTF-8 | |
| Version=1.0 | |
| Type=Application | |
| Name=Postman | |
| Icon=/opt/Postman/app/resources/app/assets/icon.png | |
| Path=/opt/Postman | |
| Exec=/opt/Postman/Postman |
using https://github.com/nativefier/nativefier
Install Nativefier
$ npm install -g nativefierCreate App
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
| <!-- contents of render-image.html --> | |
| {{- $link := split .Destination "#" }} | |
| {{- $image := (.Page.Resources.ByType "image").GetMatch (printf "*%s*" (index $link 0)) }} | |
| {{- $logo := (resources.Get "images/logo.png") }} | |
| {{- if and $image $logo }} | |
| {{- $size := math.Round (mul $image.Height 0.25) }} | |
| {{- $size := cond (ge $size 80) ($size) (80.0) }} | |
| {{- $logo := $logo.Resize (printf "%.0fx jpg" $size) }} |
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
| // ==UserScript== | |
| // @name Youtube HD | |
| // @author adisib | |
| // @namespace namespace_adisib | |
| // @description Select a youtube resolution and resize the player. | |
| // @version 2021.01.02 | |
| // @match https://www.youtube.com/* | |
| // @noframes | |
| // @grant none | |
| // ==/UserScript== |
Example .desktop at ~/.local/share/applications/ghidra-sre.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Ghidra
Type=Application
Terminal=false
Path=/home/aditya/Apps/ghidra_10.0_PUBLIC/
Exec=/home/aditya/Apps/ghidra_10.0_PUBLIC/ghidraRun
originally from Martin Kopta's blog
In order to shrink virtual disk of your virtual machine (process called disk space reclamation) in Qemu/KVM, you can go with following. In your running virtual machine, fill all remaining empty space with zeroes. Then, shut down virtual machine and convert the disk image from original format to the same format (esentially doing nothing). In the process of conversion, Qemu will skip the zeroes and save you some space. You can even add some compression to save even more space.
root@vm# dd if=/dev/zero of=/file
root@vm# rm /file