Skip to content

Instantly share code, notes, and snippets.

@ignaciotcrespo
ignaciotcrespo / AdbCommands
Created July 5, 2021 13:34 — forked from Pulimet/AdbCommands
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
@ignaciotcrespo
ignaciotcrespo / app build.gradle
Last active October 28, 2020 16:46
Spotbugs in android + gradle plugin 4.1.4 + gradle wrapper 6.5
// works with
// gradle plugin: 4.1.0
// gradle wrapper: 6.5
// How to use: ./gradlew clean spotbugsYourFlavor
// ------ app/build.gradle -----------
apply plugin: 'com.github.spotbugs'
@ignaciotcrespo
ignaciotcrespo / install-CUDA-docker-nvidia-docker.sh
Last active August 28, 2020 21:14 — forked from dte/install-CUDA-docker-nvidia-docker.sh
Install CUDA, Docker, and Nvidia Docker on a new Paperspace GPU machine
#!/bin/bash
# 1. Install CUDA
echo "Installing CUDA..."
# Only install if CUDA is not already installed.
if ! dpkg-query -W cuda; then
# The 16.04 installer works with 16.10.
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
dpkg -i ./cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
apt-get update
apt-get install cuda -y
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import java.util.ArrayList;
import java.util.List;
@ignaciotcrespo
ignaciotcrespo / git_clone_branch_only.sh
Last active March 13, 2024 04:04
git clone a specific branch, ONLY the latest commit without history, and wipe out folder before
# wipe out folder. Added manually the .git folders due to cant find a good command to delete everything in macos & linux
rm -rf .git
rm -rf .git*
rm -rf ./*
# clone branch, fast way to get a specific branch without the complete history
git clone -b ${BRANCH_TO_BUILD} --depth 1 --single-branch ${REPO_URL} .