Skip to content

Instantly share code, notes, and snippets.

View whohe's full-sized avatar

Wilson whohe

View GitHub Profile
@brady-aiello
brady-aiello / GoogleAuth.kt
Last active March 15, 2024 02:11
Google Auth: One Tap with Legacy Auth backup using Coroutines
package com.nbcuni.idm.sdk.debug.ui
import android.annotation.SuppressLint
import android.app.PendingIntent
import android.text.method.LinkMovementMethod
import android.util.Log
import android.view.View
import android.widget.TextView
import androidx.activity.result.ActivityResultLauncher
import androidx.activity.result.IntentSenderRequest
@EsteveAguilera
EsteveAguilera / linux-command-line-install-android-sdk
Created November 11, 2017 22:53
Install Android SDK on a Debian server, e.g for a server running Jenkins
# Download the android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
# Uncompress the donwloaded file
tar -xvf android-sdk_r24.2-linux.tgz
# Enter the uncompressed folder
cd android-sdk-linux/tools
# Install all sdk packages
@yaci
yaci / google-drive-md5-checksum
Last active April 10, 2025 00:20
List google drive md5 checksum for all files
#!/usr/bin/python3
"""
!! IMPORTANT !!
!! READ THIS !!
In order to run this script you need python3 and pip3 installed.
You also need some additional python modules. Please run
sudo pip3 install httplib2 oauth2client
sudo pip3 install --upgrade google-api-python-client
@emiglobetrotting
emiglobetrotting / php7_zts_pthreads.sh
Last active February 21, 2022 09:08
Compile PHP Thread Safe & pthreads extension
#!/bin/bash
apt-get update
apt-get install -y \
bison \
autoconf \
build-essential \
pkg-config \
git-core \
@satreix
satreix / custom_archlinux_live_USB.md
Last active July 28, 2024 20:02
Custom Arch Linux live USB

Custom Arch Linux live USB

Setup

Install the dependencies for the archiso package:

(root): pacman -S make squashfs-tools libisoburn dosfstools patch lynx devtools git

I recommend archiso getting them from git, there is a package in the repositories, however, at this time of writing, it will not work with the instructions below. So, grab the most recent version from git and install it:

(user): git clone git://projects.archlinux.org/archiso.git && cd archiso

@slayerfat
slayerfat / git.log
Last active December 23, 2015 19:21
git log version bonita
git config --global alias.historial "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"
@mutewinter
mutewinter / commit_format_examples.txt
Created March 19, 2014 18:52
Examples of my commit format.
chore: add Oyster build script
docs: explain hat wobble
feat: add beta sequence
fix: remove broken confirmation message
refactor: share logic between 4d3d3d3 and flarhgunnstow
style: convert tabs to spaces
test: ensure Tayne retains clothing