Skip to content

Instantly share code, notes, and snippets.

View guilhermelirio's full-sized avatar

Guilherme Lirio Tomasi de Oliveira guilhermelirio

View GitHub Profile
@arun-shaji
arun-shaji / scrapy_sample.md
Last active December 12, 2023 08:12
Scrapy post request with parameters example

Scrapy post request example

We can use scrapy.FormRequest send post request with parameters.

import scrapy

class ExampleSpider(scrapy):
    name = 'ExampleSpider'
    allowed_domains = ['example.com']

 def start_requests(self):
@gittimos
gittimos / index.js
Last active August 13, 2021 13:22
Alexa skills kit (ASK): remove SSML for speech output in cards
var strip = require('./strip.js');
this.emit(":askWithCard", speechOutput, repromptText, this.t("MESSAGE"), strip.stripTags(repromptText));
@tylermakin
tylermakin / ec2-ftp-tutorial.md
Last active March 30, 2024 05:13
Tutorial for configuring FTP access to an EC2 server
@guerrerocarlos
guerrerocarlos / chromecast_with_subtitles.html
Created January 21, 2017 12:45
The chromecast documentation for Chrome is terrible, so to save other's some time, here is the straigt-forward way to stream something quickly and with subtitles
<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript" src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"></script>
</head>
<body>
@onefriendaday
onefriendaday / view_cart.html
Last active December 28, 2023 23:01
Pagseguro checkout transparent
<script type="text/javascript" src="https://stc.pagseguro.uol.com.br/pagseguro/api/v2/checkout/pagseguro.directpayment.js"></script>
<script type="text/javascript">
var paymentModule = 'pagseguro_app';
checkoutCallbacks.add(pagseguroCheckout);
function pagseguroCheckout() {
if ($('input[name=module]').val() == paymentModule) {
@magnetikonline
magnetikonline / dumprequest.php
Last active March 21, 2025 08:29
PHP script to dump full HTTP request to file (method, HTTP headers and body).
<?php
// https://gist.github.com/magnetikonline/650e30e485c0f91f2f40
class DumpHTTPRequestToFile {
public function execute($targetFile) {
$data = sprintf(
"%s %s %s\n\nHTTP headers:\n",
$_SERVER['REQUEST_METHOD'],
$_SERVER['REQUEST_URI'],
$_SERVER['SERVER_PROTOCOL']