Skip to content

Instantly share code, notes, and snippets.

View luisadha's full-sized avatar
🇵🇸
Free Palestine

Luis Adha luisadha

🇵🇸
Free Palestine
View GitHub Profile
@luisadha
luisadha / live-bashrc
Last active May 27, 2024 17:39
MY SIMPLE CONFIGURATION OF BASHRC
# Update 28, Mei 2024 by @luisadha
# Enable the subsequent settings only in interactive sessions
case $- in
*i*) ;;
*) return;;
esac
: "My Custom Path"
export PATH="$PATH:~/.local/bin:/system/bin:$HOME/.cargo/bin"
: "My Habbit Aliases"
@azigler
azigler / starfetcher.sh
Created July 10, 2023 20:03
Starfetcher ⭐️ fetch all GitHub stars for an organization
#!/bin/bash
# Starfetcher
# This script uses 'jq', a command-line JSON processor.
# Installation instructions:
# - On Ubuntu or other Debian-based systems: sudo apt-get install jq
# - On CentOS, Fedora, or RHEL: sudo yum install jq
# - On macOS: brew install jq
# - On Windows, you can download it from https://stedolan.github.io/jq/download/
@kulothunganug
kulothunganug / README.md
Last active January 4, 2024 05:36
Guide to compile a kivy app into apk using github

Follow these steps to compile your kivy application to an APK on GitHub (No linux needed).

Note: This method is only recommended if you don't have access to a linux or mac system

  1. Create an github account if you don't have.

  2. Create a repository, you could also create it as private.

  3. Goto your project directory (where main.py exists) and create a file in .github/workflows/build.yml (Create the folders if not already existed).

@Anon-Exploiter
Anon-Exploiter / .zshrc
Created September 17, 2020 12:31
.zshrc of Kali Linux 2020.3 including the lit prompt
# ~/.zshrc file for zsh non-login shells.
# see /usr/share/doc/zsh/examples/zshrc for examples
setopt autocd # change directory just by typing its name
#setopt correct # auto correct mistakes
setopt interactivecomments # allow comments in interactive mode
setopt ksharrays # arrays start at 0
setopt magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’
setopt nonomatch # hide error message if there is no match for the pattern
setopt notify # report the status of background jobs immediately
Use of keys like Alt, Ctrl, Esc is necessary for working with a CLI terminal. Termux touch keyboards do not include one. For that purpose Termux uses the Volume down button to emulate the Ctrl key. For example, pressing}Volume down+L on a touch keyboard sends the same input as pressing Ctrl+L on a hardware keyboard.
The result of using Ctrl in combination with a key depends on which program is used, but for many command line tools the following shortcuts works:
Ctrl+A → Move cursor to the beginning of line
Ctrl+C → Abort (send SIGINT to) current process
Ctrl+D → Logout of a terminal session
Ctrl+E → Move cursor to the end of line
Ctrl+K → Delete from cursor to the end of line
Ctrl+U → Delete from cursor to the beginning of line
@CorruptComputer
CorruptComputer / .bashrc
Last active July 23, 2023 15:04
Custom Bash Prompt
################################################################################
## FUNCTIONS FOR PROMPT ##
################################################################################
bash_prompt_command() {
# How many characters of the $PWD should be kept
local pwdmaxlen=25
# Indicate that there has been dir truncation
local trunc_symbol=".."
@RabaDabaDoba
RabaDabaDoba / ANSI-color-codes.h
Last active June 7, 2024 22:33 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"
@Pulimet
Pulimet / AdbCommands
Last active June 10, 2024 09:25
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@landliebe
landliebe / sdcardunmount.java
Created August 12, 2012 14:42
Sd card unmount for test
package at.tugraz.ist.paintroid.test.integration;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.junit.After;
import org.junit.Before;
import android.content.Context;
import android.os.storage.StorageManager;