Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
[
{
"boundingbox": [
"51.0534001144",
"51.0535001144",
"13.726116130257",
"13.726216130257"
],
"lat": "51.0534501143995",
"lon": "13.7261661302568",

Variables

You need variables to store some data. Variables always starts with a $ sign followed by lower- or uppercase letters or an underscore. You should allocate some data to variables so you can access this data later when calling a variable.

$string = "Hello World!";
$boolean = true;
$integer = 123;
$float = 0.29;
@p3t3r67x0
p3t3r67x0 / german_zipcode_latlng.json
Created July 4, 2018 22:51
German zipcodes with latitude and longitude coordinates.
[{
"zip": "01067",
"lat": 51.05754959999999,
"lng": 13.7170648
},
{
"zip": "01069",
"lat": 51.0391349,
"lng": 13.7376748
},
#!/bin/bash/env python
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
driver = webdriver.Firefox()
driver.get("https://www.flipkart.com/search?q=xbox&marketplace=FLIPKART&sid=search.flipkart.com")
elem = driver.find_elements_by_xpath('//img[contains(@class, "_30XEf0")]')
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import requests
def download_stream(video_url, video_name):
with open(video_name, 'wb') as handle:
response = requests.get(video_url, stream=True)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import requests
from lxml import etree
from fake_useragent import UserAgent
ua = UserAgent()
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import requests
from requests.exceptions import MissingSchema
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import json
import requests
from lxml import html
from urlparse import urlparse
from fake_useragent import UserAgent

FFmpeg

ffmpeg -i input.mkv -y -s 1080x720 -b:v 3000k -acodec mp2 -ac 2 -ab 192k -ar 44100 -async 1 out.mp4
ffmpeg -i input.m3u8 -c copy -bsf:a aac_adtstoasc output.mp4

Project Gutenberg

Here you find a list to books in project gutenberg. You can parse these content to build yourself a wordlist.

http://www.gutenberg.org/ebooks/2423.txt.utf-8
http://www.gutenberg.org/ebooks/36538.txt.utf-8
http://www.gutenberg.org/ebooks/12121.txt.utf-8
http://www.gutenberg.org/ebooks/40465.txt.utf-8