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
rcView.setLayoutManager(new LinearLayoutManager(this)); | |
rcView.setAdapter(new NotificationListAdapter(this)); |
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
# Install SSL Wildcard Certificate | |
sudo certbot certonly --manual --preferred-challenges=dns --email [email protected] --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d *.mydomain.com | |
# SSL Vulnerability Testing | |
docker run --rm -ti drwetter/testssl.sh -U mydomain.com | |
# Online testing tool | |
# https://www.ssllabs.com/ssltest/analyze.html?d=mydomain.com&latest |
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 unittest | |
import requests | |
import threading | |
class TestAPI(unittest.TestCase): | |
SERVER_ADDRESS = 'https://postman-echo.com' | |
def api_status_check(self, url, application_check=False, status_code=200): |
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 | |
from PIL import Image | |
import os | |
import glob | |
import sys | |
def main(): | |
p = sys.argv[1] | |
path = p if p.startswith('/') else os.getcwdb().decode('utf-8') + '/' + p |
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 | |
BASEDIR=$(dirname $0) | |
python3 $BASEDIR/crcard.py |
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 | |
import sys | |
import xml.etree.ElementTree as ET | |
org_res = 'ord_proj/res/' | |
mod_res = 'mod_proj/res/' | |
def xml_read(key, locale, res_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
package com; | |
import android.app.Notification; | |
import android.app.NotificationChannel; | |
import android.app.NotificationManager; | |
import android.app.PendingIntent; | |
import android.app.Service; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.pm.ServiceInfo; |
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
HashMap<String, Object> wifiDetails = WIFIDetails.get(this); | |
ScanResult scanResult = (ScanResult) wifiDetails.get("WIFI"); | |
boolean isPublic = (boolean) wifiDetails.get("OPEN_WIFI"); | |
String SSID = scanResult.SSID; | |
// ---------- |
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 | |
BASEDIR=$(dirname "$0") | |
FILE=$(basename "$1") | |
EXTENSION="${FILE##*.}" | |
if [[ $EXTENSION == "apk" ]]; then |
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
# Login from MongoDB client | |
mongo -u user -p password localhost/db | |
# Change password | |
db.updateUser("user", { pwd: "newPassword" }) | |
# Create user with a new database | |
use mydb | |
db.createUser( | |
{ |