Skip to content

Instantly share code, notes, and snippets.

@midlan
Last active July 13, 2020 08:40
Show Gist options
  • Select an option

  • Save midlan/5ef006bf97576916b9391f836a10ce66 to your computer and use it in GitHub Desktop.

Select an option

Save midlan/5ef006bf97576916b9391f836a10ce66 to your computer and use it in GitHub Desktop.

Revisions

  1. midlan revised this gist Jul 13, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion download_adminer.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    wget -q -O - https://api.github.com/repos/vrana/adminer/releases/latest | jq -r '.assets[] | select((.name | endswith("-mysql-en.php")) and (.name | startswith("adminer"))) | .browser_download_url'
    wget -q -O - https://api.github.com/repos/vrana/adminer/releases/latest | jq -r '.assets[] | select((.name | endswith("-mysql-en.php")) and (.name | startswith("adminer"))) | .browser_download_url' | xargs wget -q -O - > adminer.php
  2. midlan revised this gist Jul 13, 2020. No changes.
  3. midlan revised this gist Jul 13, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion download_adminer.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    wget -q -O - https://api.github.com/repos/vrana/adminer/releases/latest | grep -m1 -P '"browser_download_url".+\-mysql\-cs\.php' | cut -d '"' -f4 | xargs wget -q -O - > adminer.php
    wget -q -O - https://api.github.com/repos/vrana/adminer/releases/latest | jq -r '.assets[] | select((.name | endswith("-mysql-en.php")) and (.name | startswith("adminer"))) | .browser_download_url'
  4. midlan revised this gist Mar 26, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion download_adminer.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    wget -q -O - https://api.github.com/repos/vrana/adminer/releases | grep -m1 -P '"browser_download_url".+\-mysql\-cs\.php' | cut -d '"' -f4 | xargs wget -q -O - > adminer.php
    wget -q -O - https://api.github.com/repos/vrana/adminer/releases/latest | grep -m1 -P '"browser_download_url".+\-mysql\-cs\.php' | cut -d '"' -f4 | xargs wget -q -O - > adminer.php
  5. midlan revised this gist Mar 13, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion download_adminer.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    wget -q -O - https://api.github.com/repos/vrana/adminer/releases | grep -m1 -P '"browser_download_url".+\-mysql\-cs\.php' | cut -d '"' -f4 | xargs wget -q -O - > ~/adminer.php
    wget -q -O - https://api.github.com/repos/vrana/adminer/releases | grep -m1 -P '"browser_download_url".+\-mysql\-cs\.php' | cut -d '"' -f4 | xargs wget -q -O - > adminer.php
  6. midlan revised this gist Mar 13, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion download_adminer.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    wget -q -O - https://api.github.com/repos/vrana/adminer/releases | grep -m1 -o -P '(?<="browser_download_url": ").+?mysql-cs.php(?=")' | xargs wget -q -O - > ~/adminer.php
    wget -q -O - https://api.github.com/repos/vrana/adminer/releases | grep -m1 -P '"browser_download_url".+\-mysql\-cs\.php' | cut -d '"' -f4 | xargs wget -q -O - > ~/adminer.php
  7. midlan created this gist Mar 13, 2019.
    1 change: 1 addition & 0 deletions download_adminer.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    wget -q -O - https://api.github.com/repos/vrana/adminer/releases | grep -m1 -o -P '(?<="browser_download_url": ").+?mysql-cs.php(?=")' | xargs wget -q -O - > ~/adminer.php