This file contains hidden or 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
fun createAndWritePdf() { | |
initPdfDocument() | |
writeToPdfDocument("One line...") | |
writeToPdfDocument("Another line...") | |
closePdfDocument() | |
savePdfDocument() | |
} | |
lateinit var document : PdfDocument |
This file contains hidden or 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
<?php | |
if (isset($_GET['feedid'])){ | |
} | |
$filename = "rssfeeds.txt"; | |
//$lines = file($filename, FILE_IGNORE_NEW_LINES); | |
$arr = file("rsslinks.txt", FILE_IGNORE_NEW_LINES); |
This file contains hidden or 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
// https://ntic974.blogspot.com | |
package com.reuniware.poneyvid | |
import android.Manifest | |
import android.content.Context | |
import android.content.Intent | |
import android.content.pm.PackageManager | |
import android.media.MediaRecorder | |
import android.media.projection.MediaProjection |
This file contains hidden or 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
# apt-get install build-essential python-dev libnetfilter-queue-dev | |
# pip install NetfilterQueue | |
# sudo apt-get install python-netfilterqueue | |
# iptables -F | |
# iptables -F -t nat | |
# iptables -I FORWARD -j NFQUEUE --queue-num 0 | |
# arpspoof -i eth0 192.168.1.200 -t 192.168.1.1 | |
# arpspoof -i eth0 192.168.1.1 -t 192.168.1.200 | |
from netfilterqueue import NetfilterQueue |
This file contains hidden or 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
# apt-get install build-essential python-dev libnetfilter-queue-dev | |
# pip install NetfilterQueue | |
# sudo apt-get install python-netfilterqueue | |
# iptables -F | |
# iptables -F -t nat | |
# iptables -I FORWARD -j NFQUEUE --queue-num 0 | |
# arpspoof -i eth0 192.168.1.200 -t 192.168.1.1 | |
# arpspoof -i eth0 192.168.1.1 -t 192.168.1.200 | |
from netfilterqueue import NetfilterQueue |
This file contains hidden or 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
# apt-get install build-essential python-dev libnetfilter-queue-dev | |
# pip install NetfilterQueue | |
# sudo apt-get install python-netfilterqueue | |
# iptables -F | |
# iptables -F -t nat | |
# iptables -I FORWARD -j NFQUEUE --queue-num 0 | |
# arpspoof -i eth0 192.168.1.200 -t 192.168.1.1 | |
# arpspoof -i eth0 192.168.1.1 -t 192.168.1.200 | |
from netfilterqueue import NetfilterQueue |
This file contains hidden or 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
echo "1" > /proc/sys/net/ipv4/ip_forward | |
sudo bettercap -caplet http-ui & | |
firefox http://127.0.0.1 |
This file contains hidden or 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
android.support.v7.widget.util.SortedListAdapterCallback | androidx.recyclerview.widget.SortedListAdapterCallback | |
---|---|---|
android.support.v7.widget.helper.ItemTouchUIUtilImpl | androidx.recyclerview.widget.ItemTouchUIUtilImpl | |
android.support.v7.widget.helper.ItemTouchUIUtil | androidx.recyclerview.widget.ItemTouchUIUtil | |
android.support.v7.widget.helper.ItemTouchHelper | androidx.recyclerview.widget.ItemTouchHelper | |
android.support.v7.widget.WithHint | androidx.appcompat.widget.WithHint | |
android.support.v7.widget.ViewUtils | androidx.appcompat.widget.ViewUtils | |
android.support.v7.widget.ViewStubCompat | androidx.appcompat.widget.ViewStubCompat | |
android.support.v7.widget.ViewInfoStore | androidx.recyclerview.widget.ViewInfoStore | |
android.support.v7.widget.ViewBoundsCheck | androidx.recyclerview.widget.ViewBoundsCheck | |
android.support.v7.widget.VectorEnabledTintResources | androidx.appcompat.widget.VectorEnabledTintResources |
This file contains hidden or 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
fun getPhoneContacts() : List<PhoneContact> { | |
phoneContactsList = ArrayList<PhoneContact>() | |
if (!hasPhoneContactsPermission(Manifest.permission.READ_CONTACTS)) { | |
requestReadContactsPermission(Manifest.permission.READ_CONTACTS) | |
} else { | |
//showOkDialog("permissions contacts", "permissions accordées", this as AppCompatActivity, false) | |
val cursor = contentResolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null) | |
if (cursor != null) { | |
if (cursor.count > 0) { | |
while (cursor.moveToNext()) { |
This file contains hidden or 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
phoneContact.addObserver(MyObserver(recyclerViewPhoneContacts)) | |
class PhoneContact: Observable() { | |
var id = "" | |
var name = "" | |
var phoneNumbers = arrayListOf<String>() | |
var emailAddresses = arrayListOf<String>() | |
var addresses = arrayListOf<String>() | |
var selected = false |