Skip to content

Instantly share code, notes, and snippets.

@karawitan
karawitan / _wget.md
Created April 4, 2018 15:30 — forked from Paxa/_wget.md
Cross-compiling wget for blackberry 10 (QNX)

How to compile wget for blackberry 10

Prepare

  1. Download from here http://ftp.gnu.org/gnu/wget/
  2. Extract sources archive, (using extract for example)
  3. Or run tar xf wget-1.15.tar.xz
  4. Copy file bb10_compile from this gist to source folder

Compile

@karawitan
karawitan / tmux-cheatsheet.markdown
Created January 2, 2019 20:31 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@karawitan
karawitan / cleanup_test.sh
Created January 8, 2020 13:04 — forked from satyaog/cleanup_test.sh
git-annex_test_hardlinks
#!/bin/bash
datalad remove *
cd .annex-cache/
git-annex uninit
cd ..
rm -rf .annex-cache/
@karawitan
karawitan / git-rm-from-history.sh
Created January 23, 2020 21:43 — forked from k1000/git-rm-from-history.sh
permanently delete files/folders from your git repository
#!/bin/bash
set -o errexit
# Author: David Underhill
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
if [ $# -eq 0 ]; then
exit 0
@karawitan
karawitan / ProtonMail Vs. LavaBit Vs. Tutanota
Created April 28, 2020 14:07 — forked from CHEF-KOCH/ProtonMail Vs. LavaBit Vs. Tutanota
Which eMail provider? ProtonMail Vs. LavaBit Vs. Tutanota
Email Provider Criteria
Email is a notoriously insecure protocol which is generally recommended
against for critical communications, particularly if exposed meta-data
is part of your threat model.
In any of all mentioned provider cases, the provider offers end-to-end encrypted only between users of the same solution. Only PGP is a universal way of sending encrypted emails to anyone, but unfortunately not enough people know how to use this. Zero knowledge encryption means key must be stored on the user’s device otherwise it’s not protected against state-sponsored criminals. Of course, this doesn’t mean they couldn’t give the government plain text messages — just that it would require them to actively attack the user in order steal the required password, up to now they haven’t done it, and most probable will not do so in the foreseeable future. It also means the provider is unable to recover (decrypt) data if password is lost. Tutanota explains that if they were requested to hand over inboxes (keeping in mi
@karawitan
karawitan / make_ipxe_uefi_usb.md
Created April 27, 2021 07:45 — forked from AdrianKoshka/make_ipxe_uefi_usb.md
Making a UEFI bootable iPXE USB drive

Making a UEFI bootable iPXE USB drive

Build the UEFI executable for iPXE

# First we'll clone iPXE
$ git clone git://git.ipxe.org/ipxe.git
# Go into the src directory of the cloned git repo
$ cd ipxe/src
# Compile the UEFI iPXE executable
@karawitan
karawitan / gist:fc0b6f883cbe5f71b81e221392bcf2ff
Last active February 22, 2024 23:39
Common adb shell commands
adb root
adb sideload
adb shell ps
adb shell top
adb shell getprop
adb shell setprop
# disable suspend.target
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
# check suspend daemon status
sudo systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target
@karawitan
karawitan / gist:1eb3af5cf106e05ddd7d08ee7280690a
Created February 22, 2024 23:26
strace usefull commands
strace --trace=file,network,process -f -o /tmp/log
ipfs resolve /ipns/ipld.io
ipfs repo ls
ipfs refs local | wc -l
ipfs pin add /ipns/torrent-paradise.ml
ipfs bitswap wantlist