This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2 | |
# retrieve token | |
url="http://192.168.8.1/api/webserver/token" | |
response = urllib2.urlopen(url) | |
xml=response.read() | |
token=xml[59:-23] | |
print "Got token %s" % token | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
def slowprint(s): | |
for c in s + '\n': | |
sys.stdout.write(c) | |
sys.stdout.flush() | |
time.sleep(1./10) | |
if __name__ == "__main__": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ash | |
# This script filters the logs and send it via mail | |
# Installation on openwrt | |
#- opkg update && opkg install diffutils | |
#- install and setup ssmtp (https://fleshandmachines.wordpress.com/2014/09/14/openwrt-automatic-email-sending/) | |
#- add it to crontab | |
# Rules | |
RULES="grep -v info" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
postgres=# SELECT TO_DATE('2020-W53','YYYY-XWW'); | |
-[ RECORD 1 ]------- | |
to_date | 2020-12-30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android"> | |
<rotate | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:fromDegrees="0" | |
android:toDegrees="360" | |
android:pivotX="50%" | |
android:pivotY="50%" | |
android:duration="2000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(" ") |
NewerOlder