4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
    Type 1 or more characters for results.
    Links per page: 20 50 100
    ◄Older
    page 1 / 4
    62 results tagged bash x
    • Note: bash date

      date +%Y-%m-%d_%H-%M-%S

      June 5, 2020 at 1:38:41 PM GMT+2 - permalink - archive.org - https://links.infomee.fr/?jh3dRw
      bash date
    • thumbnail
      [Feature] Auto Fix · Issue #1220 · koalaman/shellcheck · GitHub

      shellcheck a maintenant une option pour auto fix

      shellcheck restore.sh -f diff | git apply

      September 11, 2019 at 2:59:53 PM GMT+2 - permalink - archive.org - https://github.com/koalaman/shellcheck/issues/1220
      bash shellcheck
    • Using Temporary Security Credentials to Request Access to AWS Resources - AWS Identity and Access Management

      Use role in script

      November 21, 2017 at 5:03:26 PM GMT+1 - permalink - archive.org - http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html?shortFooter=true#using-temp-creds-sdk-cli
      aws bash cli role
    • Note: bash get random element from string "elem1;elem2;elem3"
      #!/bin/bash
      
      servers="server1;server2;server3"
      
      IFS=';' read -r -a array <<< "$servers"
      
      rand=$[ $RANDOM % ${#array[@]} ]
      
      echo ${array[$rand]}
      October 5, 2017 at 4:32:08 PM GMT+2 * - permalink - archive.org - https://links.infomee.fr/?wfMNvw
      bash random
    • thumbnail
      GitHub - hbekel/magic: define bash functions on a per-directory basis

      C'est magique

      May 28, 2017 at 8:48:07 AM GMT+2 - permalink - archive.org - https://github.com/hbekel/magic
      bash
    • Bash scripting quirks & safety tips - Julia Evans

      set -eux
      Shellcheck
      reptyr

      April 2, 2017 at 10:06:06 AM GMT+2 - permalink - archive.org - http://jvns.ca/blog/2017/03/26/bash-quirks/
      bash
    • Note: How to know which policy contains a specific action?
      Warning : this loop does a lot of call to aws api, use it with caution

      To know that I needed to list all policies and associated statements (for the default policy version)

      ```
      #!/bin/bash
      IFS=$'\n'
      for line in $(aws iam list-policies|jq '.Policies|.[]|[ .PolicyName, .Arn, .DefaultVersionId ]| @csv' -r|sed 's/","/ /g'|sed 's/"//g'); do
          name=$(echo $line|cut -d' ' -f1);
          arn=$(echo $line|cut -d' ' -f2);
          version=$(echo $line|cut -d' ' -f3);
          echo "$name"
          aws iam get-policy-version --policy-arn $arn --version-id $version
      done
      ```

      Put this in a script, redirect output to a file and go get grep!
      February 22, 2017 at 4:16:06 PM GMT+1 * - permalink - archive.org - https://links.infomee.fr/?bERNcg
      aws bash for foreach iam policy separator
    • Note: function pour log en bash

      Je me mets ça de côté pour gagner du temps la prochaine fois

      !/bin/bash

      logfile=/tmp/logfile.log
      errorfile=/tmp/error.log

      function log() {
      echo -e "\e[34m\e[1m[$(date +%Y-%m-%d) $(date +%H:%M:%S)] $1\e[0m" | tee -a /tmp/logfile.log
      }

      function logerror() {
      echo -e "\e[91m\e[1m[$(date +%Y-%m-%d) $(date +%H:%M:%S)] $1\e[0m" | tee -a /tmp/logfile.log
      }

      log "prout"
      logerror "pwet"

      February 10, 2017 at 10:29:21 AM GMT+1 - permalink - archive.org - https://links.infomee.fr/?tQ0ssA
      bash function log
    • How to install bash shell in Alpine Linux
      February 7, 2017 at 8:15:13 PM GMT+1 - permalink - archive.org - https://www.cyberciti.biz/faq/alpine-linux-install-bash-using-apk-command/
      alpine ash bash
    • The Bash Hackers Wiki [Bash Hackers Wiki]
      June 8, 2016 at 3:04:54 PM GMT+2 - permalink - archive.org - http://wiki.bash-hackers.org/
      bash
    • Detecting the use of "curl | bash" server side | Application Security

      :o

      April 22, 2016 at 2:18:49 PM GMT+2 - permalink - archive.org - https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-bash-server-side/
      bash curl security
    • thumbnail
      jimeh/git-aware-prompt: Display current Git branch name in your terminal prompt when in a Git working directory.

      Ptetre qu'un jour je passerai à zsh (ohmyzsh)

      En attendant je bricole

      February 4, 2016 at 11:24:41 AM GMT+1 - permalink - archive.org - https://github.com/jimeh/git-aware-prompt
      bash git prompt
    • Check incoming update from puppet forge

      Un petit script pour check si les modules ont de nouvelles version dispo (il faut jq)

      #!/bin/bash
      
      modules=$(puppet module list|grep '\(v[0-9]\.[0-9]\.[0-9]\)')
      
      IFS=$'\n'
      for line in $modules; do
          name=$(echo $line|cut -d' ' -f2)
          version=$(echo $line|grep -o '\(v[0-9]\.[0-9]\.[0-9]\)'|sed 's/v//')
          current_version=$(curl -s https://forgeapi.puppetlabs.com/v3/modules/${name}|jq '.current_release.version'|sed 's/"//g')
          if [[ $version == $current_version ]]; then
              echo "OK $name $version $current_version"
          else
              echo "OUTDATED $name $version $current_version"
          fi  
      done
      November 30, 2015 at 4:37:25 PM GMT+1 * - permalink - archive.org - https://links.infomee.fr/?6tdMVA
      bash for forge IFS loop module puppet
    • jneen/balls

      :D
      via nico

      August 24, 2015 at 3:56:49 PM GMT+2 - permalink - archive.org - https://github.com/jneen/balls
      bash
    • bash value toi great for base

      $((10#$number))

      July 9, 2015 at 6:54:01 PM GMT+2 - permalink - archive.org - http://ubuntuforums.org/showthread.php?t=677751
      base bash
    • Marks

      Je ne sais plus ou j'ai vu ça, je ne retrouve plus le lien donc je me le remets ici au cas où

      #Marks
      export MARKPATH=$HOME/.marks
      function jump {
      cd -P "$MARKPATH/$1" 2>/dev/null || echo "No such mark: $1"
      }
      function mark {
      mkdir -p "$MARKPATH"; ln -s "$(pwd)" "$MARKPATH/$1"
      }
      function unmark {
      rm -i "$MARKPATH/$1"
      }
      function marks {
      ls -l "$MARKPATH" | sed 's/ / /g' | cut -d' ' -f9- | sed 's/ -/\t-/g' && echo
      }

      June 12, 2015 at 11:29:15 AM GMT+2 - permalink - archive.org - https://links.infomee.fr/?XYagKw
      bash bashrc mark
    • Use the Unofficial Bash Strict Mode (Unless You Looove Debugging)
      January 1, 2015 at 3:04:57 PM GMT+1 - permalink - archive.org - http://redsymbol.net/articles/unofficial-bash-strict-mode/
      bash
    • Explain: {,} in cp or mv Bash Shell Commands
      January 1, 2015 at 2:54:59 PM GMT+1 - permalink - archive.org - http://www.cyberciti.biz/faq/explain-brace-expansion-in-cp-mv-bash-shell-commands/
      bash
    • Être à l'aise avec bash #5 (bash, debian, linux, shell, ssh, truc, ubuntu) - Damien Pobel / blog
      January 1, 2015 at 2:42:17 PM GMT+1 - permalink - archive.org - http://damien.pobel.fr/post/etre-a-l-aise-avec-bash-5
      bash
    • Bash Initialisation Files

      via skunnyk

      November 19, 2014 at 2:03:54 PM GMT+1 - permalink - archive.org - http://www.solipsys.co.uk/new/BashInitialisationFiles.html
      bash intialisation
    Links per page: 20 50 100
    ◄Older
    page 1 / 4
    Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation