Skip to content

Instantly share code, notes, and snippets.

View jonleopard's full-sized avatar
ಠ_ಠ

Jon Leopard jonleopard

ಠ_ಠ
View GitHub Profile
const UserSchema = Yup.object().shape({
email: Yup.string()
.email("Invalid email address")
.required("You must enter an email address"),
url: Yup.string()
.min(2, "Must be longer than 2 characters")
.required("You must enter a domain"),
password: Yup.string().required("You must enter a password"),
passwordConfirmation: Yup.string()
.oneOf([Yup.ref("password")], "Passwords don't match!")
@jonleopard
jonleopard / ping_akamai0.sh
Last active December 21, 2018 12:47
Akamai Packet loss
## Pinging with 1.1.1.1 as DNS
Ping has started…
PING e1699.dscx.akamaiedge.net (23.38.7.23): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
64 bytes from 23.38.7.23: icmp_seq=2 ttl=54 time=37.856 ms
64 bytes from 23.38.7.23: icmp_seq=3 ttl=54 time=41.356 ms
64 bytes from 23.38.7.23: icmp_seq=4 ttl=54 time=37.578 ms
@jonleopard
jonleopard / IPv6-USG.sh
Last active October 16, 2018 23:24
IPv6-USG.sh
#!/bin/vbash
source /opt/vyatta/etc/functions/script-template
configure
set interfaces ethernet eth0 vif 832 firewall in ipv6-name WANv6_IN
set interfaces ethernet eth0 vif 832 firewall local ipv6-name WANv6_LOCAL
set interfaces ethernet eth0 vif 832 firewall out ipv6-name WANv6_OUT
set interfaces ethernet eth0 vif 832 ipv6 address autoconf
set interfaces ethernet eth0 vif 832 ipv6 dup-addr-detect-transmits 1
@jonleopard
jonleopard / paris_coworking.md
Last active September 26, 2018 12:45
Paris Coworking Locations
@jonleopard
jonleopard / script_orange_eth0_TV.sh
Last active December 17, 2020 16:17
script_orange_eth0_TV.sh
#!/bin/vbash
source /opt/vyatta/etc/functions/script-template
configure
set firewall source-validation disable
set interfaces ethernet eth0 vif 838 address dhcp
set interfaces ethernet eth0 vif 838 dhcp-options client-option "send vendor-class-identifier "sagem";"
set interfaces ethernet eth0 vif 838 dhcp-options client-option "send user-class "\047FSVDSL_livebox.MLTV.softathome.Livebox4";"
@jonleopard
jonleopard / GPG and git on macOS.md
Created September 3, 2018 08:18 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
@jonleopard
jonleopard / script_orange_ipv6.sh
Last active May 15, 2020 12:20
script_orange_ipv6
#!/bin/vbash
source /opt/vyatta/etc/functions/script-template
configure
# The following I have configured in the GUI.
# You may do so if you wish, otherwise run the
# whole script.
#set firewall ipv6-name WAN_IN-6 rule 3003 action accept
#set firewall ipv6-name WAN_IN-6 rule 3003 protocol icmpv6
# set classless routes based on the format specified in RFC3442
# e.g.:
# new_rfc3442_classless_static_routes='24 192 168 10 192 168 1 1 8 10 10 17 66 41'
# specifies the routes:
# 192.168.10.0/24 via 192.168.1.1
# 10.0.0.0/8 via 10.10.17.66.41
RUN="yes"
@jonleopard
jonleopard / client.conf
Last active October 1, 2018 21:26
client.conf (for dibbler)
# Defaults for dibbler-client.
# installed at /etc/dibbler/client.conf by the maintainer scripts
# 8 (Debug) is most verbose. 7 (Info) is usually the best option
log-level 7
duid-type duid-ll
# To perform stateless (i.e. options only) configuration, uncomment
# this line below and remove any "ia" keywords from interface definitions
# stateless
#!/bin/bash
if [ "$SRV_MESSAGE" != "REPLY" ]
then
exit 1
fi
function fullPrefix () {
local input=$1
local o=""