I hereby claim:
- I am adityatelange on github.
- I am adityatelange (https://keybase.io/adityatelange) on keybase.
- I have a public key ASAPjpx_hEt4hat11Y1WiZdvF0ipW31FMyoQsXqtPTWrOAo
To claim this, I am signing this object:
#!/bin/bash | |
# Written by Frans Rosén (twitter.com/fransrosen) | |
_debug="$2" #turn on debug | |
_timeout="20" | |
#you need a valid key, since the errors happens after it validates that the key exist. we do not need the secret key, only access key | |
_aws_key="AKIA..." | |
H_ACCEPT="accept-language: en-US,en;q=0.9,sv;q=0.8,zh-TW;q=0.7,zh;q=0.6,fi;q=0.5,it;q=0.4,de;q=0.3" | |
H_AGENT="user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.146 Safari/537.36" |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
url=$(wget -O- -q https://api.github.com/repos/cli/cli/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep "linux_amd64.deb") | |
# url=$(wget -O- -q --header="Authorization: token xyzABC" https://api.github.com/repos/cli/cli/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep "linux_amd64.deb") | |
version=$(echo $url | cut -d '/' -f 8 | cut -d 'v' -f 2) | |
name=$(echo $url | cut -d '/' -f 9) | |
checksums_url="https://github.com/cli/cli/releases/download/v${version}/gh_${version}_checksums.txt" | |
installed_ver=$(gh version | cut -d " " -f 3 | cut -d "h" -f 1) |
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
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 |