Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
| #!/bin/sh | |
| # Customize with your data - see: https://api.gandi.net/docs/authentication/ | |
| read 2>/dev/null -r APIKEY <APIKEY.txt || APIKEY='...' | |
| read 2>/dev/null -r DOMAIN <DOMAIN.txt || DOMAIN='...' | |
| read 2>/dev/null -r RECORD <RECORD.txt || RECORD='...' | |
| ### DO NOT EDIT AFTER THIS LINE | |
| API="https://api.gandi.net/v5/livedns/domains/$DOMAIN" |
| #include <stdio.h> | |
| #include <dirent.h> | |
| #include <string.h> | |
| #define GREEN "\x1b[32m" | |
| #define BLUE "\x1b[34m" | |
| #define WHITE "\x1b[37m" | |
| void Usage() { | |
| fprintf(stderr, "\nUsage: exec [OPTION]... [DIR]...\n"); |
| #!/bin/bash | |
| # Fallback base64 en-/decoder for systems that lack a native implementation | |
| # | |
| # @param ... - flags | |
| which base64 &>/dev/null || { | |
| # if even od is missing | |
| which od &>/dev/null || od() | |
| { | |
| local C O=0 W=16 |
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
| #!/bin/bash | |
| # | |
| # Binary search tree is of the form: | |
| # 10 | |
| # / \ | |
| # / \ | |
| # 4 16 | |
| # / \ / | |
| # 1 7 12 | |
| # |
| find_mtd_index() | |
| { | |
| local partition_name="$1" # e.g. u-boot | |
| local line mtd_dev number | |
| line="$( grep "\"$partition_name\""$ /proc/mtd )" | |
| mtd_dev="${line%%:*}" | |
| number="${mtd_dev##mtd}" | |
| echo "$number" |
| gg_replace() { | |
| if [[ "$#" == "0" ]]; then | |
| echo 'Usage:' | |
| echo ' gg_replace term replacement file_mask' | |
| echo | |
| echo 'Example:' | |
| echo ' gg_replace cappuchino cappuccino *.html' | |
| echo | |
| else | |
| find=$1; shift |