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 | |
url="downloads.wickerlabs.com" | |
if [[ $(http "https://$url" | grep -i -c "$1") -eq 0 ]]; then | |
echo "[+] Not found, skipping downloading." | |
else | |
echo "[+] Starting downloading" | |
link="https://$url/$(http https://downloads.wickerlabs.com | sed -n 's/.*href="\([^"]*\).*/\1/p' | grep -i "$1" )" | |
echo "Link: $link" |
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
import android.util.Log; | |
public class Logger { | |
private static final String TAG = "LOGGER"; | |
public static void debug(String msg) { | |
if (BuildConfig.DEBUG) { | |
Log.d(TAG, "[+] ".concat(msg)); | |
} |
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
boolean isLoading = false; | |
listView.setOnScrollListener(new AbsListView.OnScrollListener() { | |
@Override | |
public void onScrollStateChanged(AbsListView absListView, int scrollState) { | |
if (listAdapter != null && | |
scrollState == SCROLL_STATE_IDLE && | |
listView.getLastVisiblePosition() == (listView.getCount() - 1) && | |
!isLoading && (listAdapter.getCount() != itemsProvider.getTotal())) { |
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
/* | |
* Copyright (c) 2018, Yusuph Wickama (WickerLabs). All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* Redistributions of source code must retain the above copyright notice, this | |
* list of conditions and the following disclaimer. | |
* | |
* Redistributions in binary form must reproduce the above copyright notice, |