apt-get update; apt-get upgrade
dphys-swapfile swapoff
dphys-swapfile uninstall
apt-get remove -y --purge wolfram-engine triggerhappy xserver-common lightdm sonic-pi minecraft-pi pigpio
apt-get autoremove -y
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'kotlin' | |
kapt { | |
generateStubs = true | |
} | |
sourceSets { | |
generated.java { | |
srcDir file("build/generated/source/kapt/main") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// apply plugin: 'idea' | |
sourceSets { | |
generated.java | |
main.java.srcDirs += generated.java.srcDirs | |
} | |
configurations { | |
querydslapt | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MADS | |
-keep class com.madsadview.* { ; } | |
-keep class com.mads.adview.* { ; } | |
-dontwarn com.madsadview.** | |
-dontwarn com.mads.adview.** | |
# Play Ads 8.1.0 | |
-dontwarn android.security.NetworkSecurityPolicy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python3 | |
import os, re, shutil | |
white = "white" | |
grey = "grey600" | |
black = "black" | |
dimensions = ["mdpi", "hdpi", "xhdpi", "xxhdpi", "xxxhdpi"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILE=${1-"/swapfile"} | |
SIZE=${2-"4G"} | |
fallocate -l $SIZE $FILE | |
chmod 600 $FILE | |
ls -lh $FILE | |
mkswap $FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class HttpInterceptor implements Interceptor { | |
@Override | |
public Response intercept(Chain chain) throws IOException { | |
Request request = chain.request(); | |
//Build new request | |
Request.Builder builder = request.newBuilder(); | |
builder.header("Accept", "application/json"); //if necessary, say to consume JSON | |