Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
6 votes
2 answers
931 views

Extract data from api using shell scripting

So we have many vlans at work, often it is nice to see which ip ranges are associated with said vlan. We have a well developed api for displaying information about our network and thus I wrote a small ...
N3buchadnezzar's user avatar
3 votes
1 answer
1k views

Bash script to automatically test Artifactory access

Our team often has indeterminate access issues to our Aritfactory binaries. These issues can go missed because we may have our binaries locally cached and our projects builds may still succeed until ...
Hofbr's user avatar
  • 361
4 votes
1 answer
152 views

Shell script to download Project Euler problems and combine to PDF

This is a script I created that downloads Project Euler webpages and combines them to PDF. The script also downloads animated files. ...
qwr's user avatar
  • 1,221
2 votes
1 answer
501 views

Parallel download of rpm packages

I use zypper to download and install for openSUSE Tumbleweed (much like everyone else of course). Unfortunately it downloads packages serially, and having about a thousand packages to update a week, ...
André Werlang's user avatar
4 votes
1 answer
237 views

Code to fetch BitBucket repos

This actually works nicely (we have > 2k repos) but I would really like it to start producing results right away as soon as it has any. Mostly so it seems faster than it is (by being more responsive). ...
Christian Bongiorno's user avatar
5 votes
1 answer
298 views

Bash script to check available name in Github

I just wrote this script to check if the name (that has 2 characters: 1 alphabet and 1 number) in Github is available or not so I can accompany this name. Here is my script: ...
Chau Giang's user avatar
0 votes
1 answer
57 views

Refactoring with many duplicates using Bash [closed]

I have a curl based working bash script, but I have many duplicates on the "CURL" body. How do I improve it efficiently to eliminate duplications? ...
manuelBetancurt's user avatar
4 votes
2 answers
240 views

Upload a directory, in parallel, to an artifact repository

This code uploads an entire directory and allows for its reparenting on a remote server (an artifact repository). Three concerns: Copying the files locally takes a lot of space. Ideally, I could use <...
Christian Bongiorno's user avatar
7 votes
3 answers
2k views

Getting the current IP from the command line

I made a tiny little bash script, that prints the current IP Address to the command line. I checked the script with ShellCheck (0.4.6-1) on a local debian install and I get the following message: ...
nath's user avatar
  • 321
1 vote
2 answers
211 views

Crawling SPOJ through cURL and C++

I am trying to write industry standard code. https://www.quora.com/How-do-I-follow-a-user-on-Spoj-for-solving-problems-Refer-Details Someone gave me this A2A. And I wrote this code for it ...
Dhruv Sehgal's user avatar
5 votes
1 answer
3k views

Simple load testing script in bash

Here's the code ...
bigOmega  ツ's user avatar
8 votes
1 answer
1k views

Bash script to clone all public repos or gists for a specified user, optionally to a directory of choice

I wrote this script as a way to backup and/or download quickly a set of repos or gists from a user. I don't have any major concerns but I'm a noob at bash scripting, and I've been scouring the ...
iamnewton's user avatar
  • 225
2 votes
1 answer
392 views

Bash script to monitor Webserver php script

Below is a script I wrote today to use CURL to monitor the length of various HTTP server outputs and output a response if this is different than 103 characters. This is my first bash script, so I had ...
Menelaos's user avatar
  • 251