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
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
// ==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== |
<!-- 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) }} |
using https://github.com/nativefier/nativefier
Install Nativefier
$ npm install -g nativefier
Create App
# 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 |
#!/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') + '/' |
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/ |
#!/bin/bash | |
url=$(wget -O- -q https://api.github.com/repos/gohugoio/hugo/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep "linux-amd64.deb" | grep -v "hugo_extended") | |
# url=$(wget -O- -q --header="Authorization: token xyzABC" https://api.github.com/repos/gohugoio/hugo/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep "linux-amd64.deb" | grep -v "hugo_extended") | |
version=$(echo $url | cut -d '/' -f 8 | cut -d 'v' -f 2) | |
name=$(echo $url | cut -d '/' -f 9) | |
checksums_url="https://github.com/gohugoio/hugo/releases/download/v${version}/hugo_${version}_checksums.txt" | |
installed_ver=$(hugo version | cut -d "v" -f 2 | cut -d "-" -f 1) |