Skip to content

Instantly share code, notes, and snippets.

View blackout314's full-sized avatar
🛸
fly away

Carlo Denaro blackout314

🛸
fly away
View GitHub Profile
import requests
import sys
import json
def waybackurls(host, with_subs):
if with_subs:
url = 'http://web.archive.org/cdx/search/cdx?url=*.%s/*&output=json&fl=original&collapse=urlkey' % host
else:
url = 'http://web.archive.org/cdx/search/cdx?url=%s/*&output=json&fl=original&collapse=urlkey' % host
@blackout314
blackout314 / __upload_file.md
Last active April 13, 2023 15:05 — forked from maxivak/__upload_file.md
PHP upload file with curl (multipart/form-data)

We want to upload file to a server with POST HTTP request. We will use curl functions.


// data fields for POST request
$fields = array("f1"=>"value1", "another_field2"=>"anothervalue");

// files to upload
$filenames = array("/tmp/1.jpg", "/tmp/2.png");
@blackout314
blackout314 / mastodon.css
Created May 17, 2022 16:59 — forked from amelandri/notice.md
Mastodon Custom CSS
:root {
--bordercolor: #dadbdb;
--gray: #797979;
--lightgray1: #e3e8ea;
--lightgray2: #edeff0;
--lightyellow: #fff6eb;
--lightblue: #bcdef7;
--blue: #1572b5;
}
@blackout314
blackout314 / App.md
Created February 8, 2022 14:28 — forked from kcak11/App.md
Country Codes

Country Codes

List of all Country Codes (ISO & Dialing) sorted in alphabetical order.

@blackout314
blackout314 / example.sh
Created May 7, 2020 10:26 — forked from tristanbes/example.sh
Install Graphite on Debian Server
# Installing graphite dependencies
apt-get install -y python2.6 python-pip python-cairo python-django python-django-tagging
apt-get install -y libapache2-mod-wsgi python-twisted python-memcache python-pysqlite2 python-simplejson
pip install whisper
pip install carbon
pip install graphite-web
# Setup a vhost by grabbing the example the graphite team released on their repo.
# In this file, you'll provide the url used to access to your Graphite dashboard
wget https://raw.github.com/tmm1/graphite/master/examples/example-graphite-vhost.conf -O /etc/apache2/sites-available/graphite
@blackout314
blackout314 / made-with-love.html
Created February 11, 2020 16:20 — forked from oliveratgithub/made-with-love.html
Various HTML-snippets to add "Made with love" to your website
<!-- Example #1 - no styling -->
Made with ❤ in Switzerland
<!-- Example #2 - inline-styled ❤ -->
Made with <span style="color: #e25555;">&#9829;</span> in Switzerland
Made with <span style="color: #e25555;">&hearts;</span> in Switzerland
<!-- Example #3 - CSS-style class for ❤ -->
<style>.heart{color:#e25555;}</style>
Made with <span class="heart">❤</span> in Switzerland

Installing Python 3.7.4 on Raspbian =================================

As of July 2018, Raspbian does not yet include the latest Python release, Python 3.7.4. This means we will have to build it ourselves, and here is how to do it.

  1. Install the required build-tools (some might already be installed on your system).

@blackout314
blackout314 / nomi_italiani.txt
Last active January 13, 2020 09:42 — forked from pdesterlich/nomi_italiani.txt
lista nomi italiani
abaco,m
abbondanza,f
abbondanzia,f
abbondanzio,m
abbondazio,m
abbondia,f
abbondina,f
abbondio,m
abdelkrim,
abdellah,
@blackout314
blackout314 / README.md
Created November 30, 2018 11:27 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@blackout314
blackout314 / libssh_server_fingerprints.md
Created October 18, 2018 09:05 — forked from 0x4D31/libssh_server_fingerprints.md
An analysis of Censys Public Scan 20180807 (only port 22) to estimate the number of servers {potentially} vulnerable to the recent Libssh bug