This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➡️ GLEIF API using cURL | |
| ➡️ A quick first check to validate if cURL is installed | |
| curl --version | |
| ➡️ Just a quick check if the Internet can be reached | |
| curl https://github.com | |
| ➡️ Verify the version of jq installed (if not, sudo apt install jq) | |
| jq --version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➡️ D&B Direct+ using cURL | |
| ➡️ A quick first check to validate if cURL is installed | |
| curl --version | |
| ➡️ Just a quick check if the public Internet can be reached | |
| curl https://directplus.documentation.dnb.com | |
| ➡️ For generating an authentication token base64 is needed. Check: | |
| base64 --version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| id, | |
| inq_det ->> 'name' AS name_in, | |
| inq_det -> 'address' -> 'streetAddressLine' ->> 'line1' AS adr_in, | |
| inq_det -> 'address' ->> 'postalCode' AS postalcode_in, | |
| inq_det -> 'address' ->> 'addressLocality' AS city_in, | |
| inq_det ->> 'telephoneNumber' AS tel_in, | |
| cand_sel -> 'organization' ->> 'primaryName' AS name_out, | |
| cand_sel -> 'organization' -> 'tradeStyleNames' -> 0 ->> 'name' AS tradestyle_out, | |
| cand_sel -> 'organization' -> 'primaryAddress' -> 'streetAddress' ->> 'line1' AS adr_out, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add | |
| sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update' | |
| sudo apt install pgadmin4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
| sudo chmod +x /usr/local/bin/docker-compose |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get update | |
| sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
| echo \ | |
| "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ | |
| $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -i 'Screencast 2021-12-12 21:08:30.mp4' -r 15 -vf "scale=iw/1.5:ih/1.5,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -ss 00:00:05 -to 00:00:25 conky6.gif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| conky.config = { | |
| --alignment tl | |
| alignment = 'top_right', | |
| background = false, | |
| border_inner_margin = 0, | |
| border_width = 0, | |
| default_color = 'FFFFFF', | |
| default_outline_color = 'black', | |
| default_shade_color = 'black', | |
| double_buffer = true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This is an interesting gist for inclusion in an HTML5 | |
| file. Easy to create, easy to edit. Publicly available | |
| on the Internet. Hosted by GitHub. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git add . | |
| git commit -m "Converted minimal React app to UI for API Hub app" | |
| git push |
NewerOlder