Skip to content

Instantly share code, notes, and snippets.

View IPv777's full-sized avatar

IPv777

  • 127.0.0.1
View GitHub Profile
#!/bin/bash
echo "Clé manquante? "
read key
gpg --keyserver pgpkeys.mit.edu --recv-key $key \
&& gpg -a --export $key \
| sudo apt-key add -
<?php
function after ($this, $inthat)
{
if (!is_bool(strpos($inthat, $this)))
return substr($inthat, strpos($inthat,$this)+strlen($this));
};
function after_last ($this, $inthat)
{
@IPv777
IPv777 / .bash_aliases
Last active August 14, 2017 09:28
Mon fichier .bash_aliases
pubkey() {
gpg --keyserver pgpkeys.mit.edu --recv-key $1;
gpg -a --export $1 | sudo apt-key add -;
sudo apt-get update
}
snano() {
sudo nano $1
}
@IPv777
IPv777 / cloudflare-update-record.sh
Last active July 8, 2017 08:57 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash
#!/bin/bash
# CHANGE THESE
auth_email="[email protected]"
auth_key="9d467265d47d184d27d0b1805ed818874541" # found in cloudflare account $
zone_name="example.com"
record_name="sd.example.com"
proxied=true #or false ;p
# MAYBE CHANGE THESE