Skip to content

Instantly share code, notes, and snippets.

View tobihans's full-sized avatar
🙃
Keeping it Super Simple !

Hans Bignon K. Tognon tobihans

🙃
Keeping it Super Simple !
View GitHub Profile
@tobihans
tobihans / colorschemes.lua
Created January 21, 2024 13:32
Neovim colorchemes I used/use/will use maybe (lazy spec)
return {
{
"gbprod/nord.nvim",
priority = 1000,
lazy = false,
enabled = true,
opts = {
transparent = false,
terminal_colors = true, -- Configure the colors used when opening a `:terminal` in Neovim
diff = { mode = "fg" }, -- enables/disables colorful backgrounds when used in diff mode. values : [bg|fg]
@tobihans
tobihans / tailwind-palettte-app.json
Created January 3, 2024 23:13 — forked from michaelroper/tailwind-palettte-app.json
Tailwind CSS default colors in Palettte.app's JSON format
[
{
"paletteName": "gray",
"swatches": [
{
"name": "100",
"color": "#f7fafc"
},
{
"name": "200",
@tobihans
tobihans / README.md
Created December 6, 2023 06:46 — forked from jhass/README.md
Proxy to remote server with CORS support

cors.py for mitmproxy

Hacking CORS restriction to enable in-browser XHR to any server.

Usage

Say you are running an web app at localhost, and you want to send XHR to http://remote-server:80, but the CORS restriction forbids access because you are sending requests from an origin that remote-server:80 does not allow.

Run:

@tobihans
tobihans / git lol.md
Created November 17, 2023 10:11 — forked from Omerr/git lol.md
git lol - an alias to Git that shows the commit graph in a pretty format

log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

To configure as an alias git lol:

git config --global alias.lol "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)&lt;%an&gt;%Creset' --abbrev-commit"

@tobihans
tobihans / scorecard.md
Created October 27, 2023 08:54 — forked from lalitsanagavarapu/scorecard.md
Apache Fineract / Mifos - Loan Scorecard Assessment

Organization : Apache Software Foundation / Mifos

Project Name : Credit Scorecard for Loan Assessment

Student : Lalit Mohan Sanagavarapu

Mentors : Avik Ganguly, Nayan Ambali and Mark Reynolds

Project Description :

The project involves literature gathering on methods for credit scoring and early warning of Loans. Literature on Rule based, Statistical and machine learning approaches were reviewed. An exhaustive feature list (credit scoring) is prepared based on the available public datasets, literature and interaction with central and public sector banks. As part of the scope, the UI prototype and DB scripts are also prepared.
@tobihans
tobihans / update-neovim-nightly.sh
Created October 2, 2023 22:26 — forked from ecosse3/update-neovim-nightly.sh
Update Neovim Nightly from latest github release
#!/bin/bash
# Colors definitions
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
BOLD=$(tput bold)
NORMAL=$(tput sgr0)
# Check if necessary applications are installed
@tobihans
tobihans / android-adb-pull-apk.md
Created October 2, 2023 22:21 — forked from ctrl-freak/android-adb-pull-apk.md
Retrieve APK from Non-Rooted Android Device through ADB

https://stackoverflow.com/a/18003462/348146

None of these suggestions worked for me, because Android was appending a sequence number to the package name to produce the final APK file name (this may vary with the version of Android OS). The following sequence of commands is what worked for me on a non-rooted device:

  1. Determine the package name of the app, e.g. com.example.someapp. Skip this step if you already know the package name.

    adb shell pm list packages

    Look through the list of package names and try to find a match between the app in question and the package name. This is usually easy, but note that the package name can be completely unrelated to the app name. If you can't recognize the app from the list of package names, try finding the app in Google Play using a browser. The URL for an app in Google Play contains the package name.

@tobihans
tobihans / bitwiseFlags.js
Created September 11, 2023 12:41 — forked from keisans/bitwiseFlags.js
A javascript flags system based on bitwise function. This function allows for the representation of a flag state in a single base 10 number. This library also includes the ability to parse information about the flags, with functions to check if any (`hasAny`) or all (`hasAllOf`), of a group have been set, as well as their inverses (`notAny` and …
/**
* @class Flags
* @constructor
* @param {Array} newFlags Optional array of flag keys to define when the flags module is instantiated
*/
Flags = function( newFlags ){
this.flags = 0;
this.flagHash = {};
this.keys = 0;
if(newFlags){
@tobihans
tobihans / openwrt-qemu.md
Created August 31, 2023 19:27 — forked from extremecoders-re/openwrt-qemu.md
Running OpenWRT ARM under QEMU

Environment

The steps shown below are done on a Ubuntu VM using Qemu 3.0

$ qemu-system-arm -version
QEMU emulator version 3.0.0
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

To quit Qemu at any time press Ctrl+a x, i.e. Ctrl+a and then x

@tobihans
tobihans / GlobalProtect-Portal-Linux.readme
Created August 23, 2023 09:39 — forked from iamdylanngo/GlobalProtect-Portal-Linux.readme
Guide setup GlobalProtect Portal on Linux
# Guide setup GlobalProtect Portal on Linux
## Setup GlobalProtect
sudo apt update
Download GlobalProtect: https://github.com/jundat95/GlobalProtectVPN/raw/master/PanGPLinux-5.0.8-c6.tgz
Go to folder Downloads and Unzip: tar -xvzf PanGPLinux-5.0.8-c6.tgz