##Date and Time
=TIMEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " ")) + DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Date
=DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Time
import {connect} from 'react-redux' | |
export const reduxify = (container) => | |
connect( | |
container.mapStateToProps, | |
container.mapDispatchToProps, | |
)(container.render) |
// convert the ip address to a decimal | |
// assumes dotted decimal format for input | |
function convertIpToDecimal(ip) { | |
// a not-perfect regex for checking a valid ip address | |
// It checks for (1) 4 numbers between 0 and 3 digits each separated by dots (IPv4) | |
// or (2) 6 numbers between 0 and 3 digits each separated by dots (IPv6) | |
var ipAddressRegEx = /^(\d{0,3}\.){3}.(\d{0,3})$|^(\d{0,3}\.){5}.(\d{0,3})$/; | |
var valid = ipAddressRegEx.test(ip); | |
if (!valid) { | |
return false; |
#! /usr/bin/python | |
# -*- coding: utf-8 -*- | |
guitarix_pgm = "guitarix -p 7000" | |
import socket, json, os, time | |
class RpcNotification: | |
def __init__(self, method, params): |
CFLAGS_ALL=-I../libusbgx/build/include -I../bcm2835-1.68/build/include -L../bcm2835-1.68/build/lib -I../lua-5.4.0/src -L../libusbgx/build/lib -L../libserialport/build/lib -L../lua-5.4.0/src -lpng -lz -lpthread -llua -lm -lbcm2835 -ldl | |
pi400: CFLAGS+=-static $(CFLAGS_ALL) -lusbgx -lconfig -DPI400_USB | |
pi400: pi400.c gadget-hid.c | |
$(CC) $^ $(CFLAGS) -o $@ | |
pi400test: CFLAGS+=-static $(CFLAGS_ALL) -lusbgx -lconfig | |
pi400test: pi400.c gadget-hid.c | |
$(CC) $^ $(CFLAGS) -o $@ |
#!/bin/bash | |
### Google Domains provides an API to update a DNS "Syntheitc record". This script | |
### updates a record with the script-runner's public IP, as resolved using a DNS | |
### lookup. | |
### | |
### Google Dynamic DNS: https://support.google.com/domains/answer/6147083 | |
### Synthetic Records: https://support.google.com/domains/answer/6069273 | |
USERNAME="" |
#!/bin/bash | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Requires bc, dc, openssl, xxd | |
# | |
# by grondilu from https://bitcointalk.org/index.php?topic=10970.msg156708#msg156708 | |
base58=({1..9} {A..H} {J..N} {P..Z} {a..k} {m..z}) | |
bitcoinregex="^[$(printf "%s" "${base58[@]}")]{34}$" |
##Date and Time
=TIMEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " ")) + DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Date
=DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Time
function int2ip (ipInt) { | |
return ( (ipInt>>>24) +'.' + (ipInt>>16 & 255) +'.' + (ipInt>>8 & 255) +'.' + (ipInt & 255) ); | |
} |
Binwalk is a simple linux tool for analysing binary files for embeded files and executable code. It is mostly used to extract the content of firmware images.
On kali linux, binwalk is already installed. On ubuntu you can do apt-get install binwalk or you can go to https://github.com/devttys0/binwalk and follow the instructions.