Skip to content

Instantly share code, notes, and snippets.

View gnuton's full-sized avatar
:shipit:

Antonio Aloisio gnuton

:shipit:
View GitHub Profile
postgres=# SELECT TO_DATE('2020-W53','YYYY-XWW');
-[ RECORD 1 ]-------
to_date | 2020-12-30
May 5 05:05:21 kernel: klogd started: BusyBox v1.25.1 (2020-08-24 13:10:55 CST)
May 5 05:05:21 kernel: Linux version 2.6.36.4brcmarm (root@asus) (gcc version 4.5.3 (Buildroot 2012.02) ) #1 SMP PREEMPT Mon Aug 24 13:18:01 CST 2020
May 5 05:05:21 kernel: CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7f
May 5 05:05:21 kernel: CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
May 5 05:05:21 kernel: Machine: Northstar Prototype
May 5 05:05:21 kernel: Ignoring unrecognised tag 0x00000000
May 5 05:05:21 kernel: Memory policy: ECC disabled, Data cache writealloc
May 5 05:05:21 kernel: Built 1 zonelists in Zone order, mobility grouping on. Total pages: 60416
May 5 05:05:21 kernel: Kernel command line: root=/dev/mtdblock2 console=ttyS0,115200 init=/sbin/preinit earlyprintk debug
May 5 05:05:21 kernel: Memory: 255504k/255504k available, 6640k reserved, 0K highmem
mips-linux-uclibc-gcc -mips32r2 -msoft-float -pipe -Wall -I. -I./asp -I../../shared/ -I/build/apps/private/utils -I/build/apps/public/json-c -I../../libdisk/ -I/build/apps/private/access_log -I/build/apps/public/networkmap -G0 -fshort-wchar -DTRENDCHIP -O2 -DLINUX26 -DTCSUPPORT_CPU_MT7510 -DTCSUPPORT_CPU_RT63365 -DTC3262 -DTCSUPPORT_MT7510_FE -DTCSUPPORT_ADDR_MAPPING -DTCSUPPORT_WAN_ITF_LIMIT -DTCSUPPORT_HWNAT_LED -DTCSUPPORT_WLAN_MT7592_PCIE -DTCSUPPORT_2_6_36_KERNEL -DTCSUPPORT_WAN_ATM -DTCSUPPORT_WAN_PTM -DTCSUPPORT_WAN_ETHER -DTCSUPPORT_QDMA_BUFMGR -DTCSUPPORT_BB_NAND -DTCSUPPORT_NAND_BMT -DTCSUPPORT_SQUASHFS_ADD_YAFFS -DTCSUPPORT_YAFFS_FS -DTCSUPPORT_YAFFS_BLOCK=400 -DTCSUPPORT_DDR_CALI -DTCSUPPORT_BOOTROM_LARGE_SIZE -DSTART_ADDR=0x80002000 -DTCSUPPORT_FREE_BOOTBASE -DTR068_LED -DTCSUPPORT_WLAN -DWSC_AP_SUPPORT -DLED_WPSSPEC_COMPLY -DIGMP_SNOOP_SUPPORT -DMT7592 -DBBUTOWBU -DMT7612E -DBBUTOWBU -DTCSUPPORT_DUAL_WLAN -DTCSUPPORT_WLAN_AC -DVHT_SUPPORT -DTCSUPPORT_USBHOST -DRTCONFIG_USB -DTCSUPPORT_USB_NTFS
@gnuton
gnuton / gist:5d4a2cb921ce9e34f5269d4145e794a8
Last active February 29, 2020 22:09
Chimera version 0.1
def leggi_file(nome_file):
file = open(nome_file, 'r')
lineee = file.read()
file.close()
return linee
def calcola_percentuali(linee):
diz={}
for line in linee:
x = line.strip().split(" ")
@gnuton
gnuton / gist:afb9867de796459170d8725bb2b4ff4d
Created February 3, 2020 10:32
JS Fetch sniffer v 0.1
// This PoC code can hook into a JS app, and sniff for all REST connections happening
// storing them into local storage
//
// How to use it
// Open crome, press F12 in the page you wanna sniff the connections
// launch
initFetchSniffer()
let response = await fetch(`https://api.github.com/users/gnuton`);
await response.json()
fetchLog()
@gnuton
gnuton / gist:6a02225b0cbff6547b78723564aee63c
Created November 22, 2019 11:38
AWS SES send file with attachment in bash
function sendCSVviaEmail {
echo "Sending file via email..."
AWS_CLI="/usr/bin/aws"
SENDER=${EMAIL_SENDER}
RECIPIENT=${EMAIL_RECIPIENT}
SUBJECT=${EMAIL_SUBJECT}
BODY=${EMAIL_BODY}
ATTACHMENT_TYPE="text/plain"
ATTACHMENT_FILE_NAME="report.csv"
@gnuton
gnuton / gist:6fa12d87a9ee98fdcb74016f1b09fdd0
Created December 5, 2018 14:56
Reading HLA dat files in python.. not complete
#!/usr/bin/python
filename="hla.dat"
alleles= []
OP_BEGIN="ID"
OP_WIDTH=2
LAST=-1
@gnuton
gnuton / gist:f3e0c7dd5ce45d5757b14b56e20bd91b
Created December 27, 2017 15:43
Wacom CTH-490 on Linux
Wacom CTH-490
==== List of devices ===
gnuton@Jeremia:~$ xsetwacom --list devices
Wacom Intuos PT S 2 Pen stylus id: 10 type: STYLUS
Wacom Intuos PT S 2 Finger touch id: 11 type: TOUCH
Wacom Intuos PT S 2 Pad pad id: 12 type: PAD
==== Bind buttons to Express keys ====
Express Keys are the 4 keys on the tablet.
@gnuton
gnuton / Mixamo.js
Last active January 22, 2024 07:29
Script which downloads all mixamo animations for one character.
// Mixamo Animation downloadeer
//
// Author: Antonio Aloisio <gnuton@gnuton.org>
// Contributions: kriNon
//
// The following script make use of mixamo2 API to download all anims for a single character that you choose.
// The animations are saved with descriptive long names instead of the short ones used by default by mixamo UI.
//
// This script has been written by gnuton@gnuton.org and the author is not responsible of its usage
//
@gnuton
gnuton / cool_names.txt
Created January 13, 2017 11:48
Cool Names
Aardwolf
Abdol, Ahmet
Abner Little
Abominable Snowman
Abomination
Abominatrix
Abraxas
Absalom
Absorbing Man
Abyss