This is a Cheatsheet for eJPT exam + course.
nmap -sn 10.10.10.0/24 nmap -sV -p- -iL targets -oN nmap.initial -v nmap -A -p- -iL targets -oN nmap.aggressive -v nmap -p --script=vuln -v
#include <iostream> | |
#include <opencv2/opencv.hpp> | |
using namespace cv; | |
int main(int argc, char* argv[]) | |
{ | |
Mat src_image = imread("R2-D2.jpg");//画像の読み込み | |
namedWindow("original picture");//Windowの作成 | |
imshow("original picture", src_image);//Windowの表示 |
/* | |
## Facts | |
* m -> 3.28ft | |
* ft -> 12in | |
* hr -> 60min | |
* min -> 60sec | |
* E.g. | |
* {2, "m", "in"} | |
## Queries |
package main | |
type node struct { | |
value interface{} | |
before, next *node | |
} | |
func newNode(val interface{}) *node { | |
return &node{ | |
value: val, |
package main | |
type stack struct { | |
data []interface{} | |
} | |
func newStack() *stack { | |
return &stack{ | |
data: make([]interface{}, 0), | |
} |
package main | |
func printPermutaionOf(permutated, toPermutate string) { | |
if len(toPermutate) == 1 { | |
println("Str: ", permutated+toPermutate) | |
} | |
for i := 0; i < len(toPermutate); i++ { | |
printPermutaionOf(permutated+string(toPermutate[i]), toPermutate[:i]+toPermutate[i+1:]) | |
} |
package main | |
import "fmt" | |
type aliveYears struct { | |
birth, death int | |
} | |
func yearsWithMostPeopleAlive(peoples []aliveYears) []int { | |
duraion := []int{ |
package main | |
import "fmt" | |
func getIndices(intList []int) [2]int { | |
indices := [2]int{} | |
brokenIndex := 0 | |
for i := 1; i < len(intList)-1; i++ { | |
if intList[i-1] > intList[i] { |
import csv, random, time | |
from inspect import getmodule | |
from tinderbotz.session import Session | |
from tinderbotz.helpers.constants_helper import * | |
# CITY_INFO = ("New York", 40.76187, -73.98576) | |
# CITY_INFO = ("Seoul", 37.5665, 126.9780) | |
CITY_INFO = ("Tokyo", 35.69126, 139.70103) | |
MAX_COUNT = 2000 |
diff --git a/tinderbotz/helpers/geomatch_helper.py b/tinderbotz/helpers/geomatch_helper.py | |
index e6246c3..9261434 100644 | |
--- a/tinderbotz/helpers/geomatch_helper.py | |
+++ b/tinderbotz/helpers/geomatch_helper.py | |
@@ -276,9 +276,9 @@ class GeomatchHelper: | |
try: | |
xpath = f'{content}/div/div[1]/div/main/div[1]/div/div/div[1]/div[1]/div/div[2]/div[2]/div' | |
- bio = self.browser.find_element(By.XPATH, xpath).text | |
- if 'recent instagram photos' in bio.lower(): |