I hereby claim:
- I am giuseppe998e on github.
- I am peppe (https://keybase.io/peppe) on keybase.
- I have a public key ASBBNqjBQjelWJ8BP99gS3SnE6uyypUsh6QtLciG1XPU5Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| FROM alpine | |
| LABEL maintainer="Giuseppe Eletto <peppe.eletto@gmail.com>" | |
| # Setup environment | |
| RUN adduser -DHs /sbin/nologin murmur \ | |
| && apk update \ | |
| && apk upgrade \ | |
| && apk add murmur \ | |
| && rm -rf /var/cache/apk/* |
| // Five Lines Iterator [ fliter (╥﹏╥) ] | |
| const fliter = (a, p = 0) => ({ | |
| hasNext: () => p < a.length, | |
| next: () => a[p++], | |
| remove: () => a.splice(--p, 1) | |
| }) | |
| /* Minified | |
| * const fliter=(a,p=0)=>({hasNext:()=>p<a.length,next:()=>a[p++],remove:()=>a.splice(--p,1)}) | |
| */ |
| const academicYear = (firstMonth = 8) => { | |
| const date = new Date(), | |
| year = date.getFullYear(), | |
| start = date.getMonth() > firstMonth | |
| return `${year - !start}/${year + start}` | |
| } | |
| /* const academicYear=(firstMonth=8)=>{const d=new Date(),y=d.getFullYear(),s=d.getMonth()>firstMonth;return `${y-!s}/${y+s}`} */ | |
| console.log(`Academic Year: ${academicYear()}`); |
| #include <stdio.h> | |
| /* 32bit -> 2 * 16bit */ | |
| void from32to2x16() { | |
| int z = 0x77771010, | |
| x = z >> 16, | |
| y = z & 0x0000ffff; | |
| printf(">> 32bit -> 2 * 16bit <<\n"); | |
| printf("Result 1: 0x%08x\n", x); |
| #include <stdio.h> | |
| int main() { | |
| // TRC_TRACE_CPU_CHANGE | |
| unsigned cpu_change = 0x0001f003; | |
| struct { | |
| unsigned minor:12, | |
| sub:4, | |
| main:12, |
| #!/usr/bin/env python3 | |
| # Calcolatore della media di laurea triennale | |
| # presso l'università degli studi di Torino | |
| # dipartimento di informatica | |
| # | |
| # Questo script segue la direttiva qui di seguito: | |
| # http://laurea.educ.di.unito.it/packages/offerta_formativa/single_pages/accreditamento/consultazione/ScaricaDocumento.php?documento=846 | |
| # | |
| # Author: Giuseppe Eletto | |
| # License: MIT |
| #!/bin/python3 | |
| import lzma | |
| import gzip | |
| import deflate #pip install deflate | |
| import brotli #pip install brotlipy | |
| # From https://www.gutenberg.org/files/1342/1342-0.txt | |
| BOOK_NAME = "pride_and_prejudice-jane_austen.txt" | |
| /** | |
| * MIT License | |
| * | |
| * Copyright (c) 2021 Giuseppe Eletto <peppe.eletto@gmail.com> | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
$ parted /dev/sdX mklabel gpt/dev/sdXY)
$ parted /dev/sdX mkpart esp fat32 1MiB 512MiB$ parted /dev/sdX set 1 esp on$ parted /dev/sdX set 1 boot on$ mkfs.fat -F 32 -n UEFI /dev/sdXY