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
#!/usr/bin/python3 | |
import json | |
import binascii | |
# pip3 install dnspython | |
import dns.name | |
import dns.rdataclass | |
import dns.rdatatype | |
import dns.rdata |
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
AS Handle | ASN Name | Organization ID | Organization Name | Country | CIDR | Stack | |
---|---|---|---|---|---|---|---|
AS5416 | - | ORG-BA6-RIPE | Beyon B.s.c. | Bahrain | 2001:1a40::/32 | IPv6 | |
AS5416 | - | ORG-BA6-RIPE | Beyon B.s.c. | Bahrain | 77.69.128.0/18 | IPv4 | |
AS5416 | - | ORG-BA6-RIPE | Beyon B.s.c. | Bahrain | 77.69.192.0/19 | IPv4 | |
AS5416 | - | ORG-BA6-RIPE | Beyon B.s.c. | Bahrain | 77.69.224.0/19 | IPv4 | |
AS5416 | - | ORG-BA6-RIPE | Beyon B.s.c. | Bahrain | 82.194.32.0/19 | IPv4 | |
AS5416 | - | ORG-BA6-RIPE | Beyon B.s.c. | Bahrain | 84.255.128.0/18 | IPv4 | |
AS5416 | - | ORG-BA6-RIPE | Beyon B.s.c. | Bahrain | 88.201.0.0/19 | IPv4 | |
AS5416 | - | ORG-BA6-RIPE | Beyon B.s.c. | Bahrain | 88.201.32.0/19 | IPv4 | |
AS5416 | - | ORG-BA6-RIPE | Beyon B.s.c. | Bahrain | 88.201.64.0/19 | IPv4 |
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
Note that all commands and configuration files are pre-prepared by myself, collected from several sources which I will refer to them at the end of the description. Done on RPi3 on Dec 28, 2018 during studies in Bahrain Polytechnic | |
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= | |
The idea itself: https://www.avoiderrors.com/raspberry-pi-3-into-a-personal-cloud-storage-2017/ | |
Tutorial for installation: https://www.avoiderrors.com/owncloud-10-raspberry-pi-3-raspbian-stretch/ | |
(Offical download page of the ownCloud software: https://owncloud.org/download/ | |
Official installation documentation: https://doc.owncloud.org/server/latest/admin_manual/installation/ | |
System requirements: https://doc.owncloud.org/server/latest/admin_manual/installation/system_requirements.html |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Callback</title> | |
<script> | |
if (window.opener != null) { | |
const message = { |
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
final httpClient = Dio()..options.baseUrl = 'https://example.com'; | |
try { | |
var response = await httpClient.post( | |
'/auth/signup', | |
data: values, | |
); | |
if (response.data == null) { | |
throw const EmptyResponseException(); // Manually throw the exception |
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
import 'package:bloc/bloc.dart'; | |
import 'package:connectivity/connectivity.dart'; | |
part 'connectivity_state.dart'; | |
class ConnectivityCubit extends Cubit<ConnectivityState> { | |
ConnectivityCubit() : super(const ConnectivityInitial()) { | |
final connectivity = Connectivity(); | |
connectivity.checkConnectivity().then(_onConnectivityChanged); | |
connectivity.onConnectivityChanged.listen(_onConnectivityChanged); |
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
@set DRIVE=%1 | |
@manage-bde -status %DRIVE% | find "Lock Status:" | find "Locked" > nul2 | |
@if "%ERRORLEVEL%"=="0" ( | |
@manage-bde -unlock -pw %DRIVE% | |
) else ( | |
@manage-bde -lock -ForceDismount %DRIVE% | |
) | |
@manage-bde -status %DRIVE% | find "Lock Status:" | find "Unlocked" > nul2 |
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
using System; | |
using System.Data; | |
using System.Collections.Generic; | |
public class TableSchema { | |
private Dictionary<string, TableSchemaColumn> columns; | |
public TableSchema(DataTable dataTable) { | |
this.columns = new Dictionary<string, TableSchemaColumn>(); |