Skip to content

Instantly share code, notes, and snippets.

View Waflon's full-sized avatar

Waflon Waflon

View GitHub Profile
@Waflon
Waflon / DataSet_to_DataFrame.txt
Last active January 19, 2024 15:14
DataSet_to_DataFrame
import pandas as pd
from datasets import load_dataset
dataset = load_dataset('Waflon/FAQ', split="train") # Loading the SQuAD dataset from huggingface.
df = pd.DataFrame(dataset)
@Waflon
Waflon / curl.md
Created August 19, 2022 17:54 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@Waflon
Waflon / linux automatizacion CTF
Created August 16, 2022 20:05
CTF linux automatization exercise
#!/bin/bash
arreglo=(103 109 98 104 124 37 86 67 54 56 50 85 118 85 52)
for n in {1..3}
do
sleep 0.5
echo empiesa en $n
done
function unidades {
for i in {150..1}
@Waflon
Waflon / raspberry_pi_script_as_service.md
Created July 2, 2022 20:33 — forked from emxsys/raspberry_pi_script_as_service.md
How to run a python script as a service in Raspberry Pi - Raspbian Jessie

How to Run a Script as a Service in Raspberry Pi - Raspbian Jessie

By: Diego Acuña

Original Article: http://www.diegoacuna.me/how-to-run-a-script-as-a-service-in-raspberry-pi-raspbian-jessie/

A pretty common task when using this device, is to run some script (for example a python script) as a service in the operating system so it can start on boot, stop and restart using systemctl and more. In this post I'm going to explain how to set a little script as a service using Raspbian Jessie in a Raspberry Pi.

Example Python Script