An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
#!/bin/bash | |
set -e | |
################################# | |
# NOTE: | |
# This assumes you have a user `builder` and a folder `/home/builder/packages`. | |
# it will clone FreeCAD there and start pbuilder using pdebuild. | |
# For me this works using debian sid. (stretch/buster will probably not work!) | |
# | |
# After the build has finished, it will import the packes into a reprepro | |
# which is setup at /srv/repo |
/* | |
EXAMPLE: | |
input.messy_data_from_previous_trigger_or_action = 'This is a single string of text that contains lots of different data. {"name": "John"} Sometimes when you are building a Zap, you will need to pull out one piece of data from a long, messy string of text. {"email": "johnsmith@gmail.com"} Thankfully, you can use the "Formatter by Zapier" app or the "Code by Zapier" app to extract the information you need.' | |
*/ | |
function extract_piece_of_data(entire_string_of_text, characters_before_desired_data, characters_after_desired_data) { | |
var desired_data_with_stuff_after_it = entire_string_of_text.substr(entire_string_of_text.indexOf(characters_before_desired_data) + characters_before_desired_data.length); |
# Create or go to branch. | |
git go <name of branch> | |
# Apply the patch, commit with a commit message of "p". | |
cape && gcm p |
# the following two lines give a two-line status, with the current window highlighted | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
# huge scrollback buffer | |
defscrollback 5000 | |
# no welcome message | |
startup_message off |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin