INSERT GRAPHIC HERE (include hyperlink in image)
Subtitle or Short Description Goes Here
import signal | |
import sys | |
import asyncio | |
import aiohttp | |
import json | |
loop = asyncio.get_event_loop() | |
client = aiohttp.ClientSession(loop=loop) | |
async def get_json(client, url): |
# ---------------------------------------------------------------------------------------------- | |
# Saphyra - DDoS Tool | |
# | |
# The DDoS Protocol is the most massive type of attack | |
# This tool can tangodown nasa and more gov websites | |
# | |
# | |
# author : Anonymous , version 1.0 | |
# ---------------------------------------------------------------------------------------------- | |
import urllib2 |
pm.test("Status code is 200", function () { | |
pm.response.to.have.status(200); | |
}); | |
// check whether the request hast the Auth Token (auth_token) | |
var token; | |
pm.test("Body has auth_token", function () { | |
pm.expect(pm.response.text()).to.include("auth_token"); | |
token = pm.response.json().auth_token | |
}); |
useEffect(() => { | |
(async () => { | |
if (Platform.OS !== "web") { | |
const { | |
status, | |
} = await ImagePicker.requestCameraRollPermissionsAsync(); | |
if (status !== "granted") { | |
alert("Sorry, we need camera roll permissions to make this work!"); | |
} | |
} |
// @flow | |
// with flow types -> https://flow.org | |
import AsyncStorage from '@react-native-async-storage/async-storage'; | |
// common types | |
type CartItem = { itemId: number, quantity: number }; | |
type Cart = Array<CartItem>; | |
const CART: string = 'QUOTE_LIST'; |
/** | |
* Filters an array of objects using custom predicates. | |
* | |
* @param {Array} array: the array to filter | |
* @param {Object} filters: an object with the filter criteria | |
* @return {Array} | |
*/ | |
function filterArray(array, filters) { | |
const filterKeys = Object.keys(filters); | |
return array.filter(item => { |
total = 0 | |
for root, dirs, files in os.walk("."): | |
total += len(files) | |
print(total) |
#!/bin/bash -i | |
#using shebang with -i to enable interactive mode (auto load .bashrc) | |
set -e #stop immediately if any error happens | |
# Install Open SDK | |
apt update | |
apt install openjdk-8-jdk -y | |
update-java-alternatives --set java-1.8.0-openjdk-amd64 | |
java -version |