if you encounter a followig error:
key was 257 bytes (Expected 32)
it's possible to fix it with
ssh-add
#!/bin/bash | |
name=$RANDOM | |
url='http://localhost:9093/api/v1/alerts' | |
echo "firing up alert $name" | |
# change url o | |
curl -XPOST $url -d "[{ | |
\"status\": \"firing\", |
#!/bin/bash | |
name=$RANDOM | |
url='http://localhost:9093/api/v1/alerts' | |
echo "firing up alert $name" | |
# change url o | |
curl -XPOST $url -d "[{ | |
\"status\": \"firing\", |
rm ~/Library/Preferences/com.bjango.istatmenus.plist |
--- | |
- hosts: | |
- xps-desktop | |
vars: | |
- docker_data_path: /4t/docker-data | |
- media_folder: /2t/media | |
- media_docker_path: /media | |
- uid: "500" | |
- gid: "500" | |
- transmission_web_host: bt.example.com |
if you encounter a followig error:
key was 257 bytes (Expected 32)
it's possible to fix it with
ssh-add
docker_container: | |
name: undefined # string- required. Assign a name to a new container or match an existing container.,When identifying an existing container name may be a name or a long or short container ID. | |
image: undefined # string- not required. Repository path and tag used to create the container. If an image is not found or pull is true, the image will be pulled from the registry. If no tag is included, 'latest' will be used. | |
api_version: auto # string - not required. The version of the Docker API running on the Docker Host. Defaults to the latest version of the API supported by docker-py.,If the value is not specified in the task, the value of environment variable C(DOCKER_API_VERSION) will be used instead. If the environment variable is not set, the default value will be used. | |
auto_remove: no # boolean - not required. enable auto-removal of the container on daemon side when the container's process exits | |
blkio_weight: undefined # not required. Block IO (relative weight), between 10 and 1000. |
#!/bin/bash | |
find /mysql-backup/archive -maxdepth 1 -mindepth 1 -type d -ctime +15 -exec rm -rf {} \; |
I hereby claim:
To claim this, I am signing this object:
func TestGetEntryByID(t *testing.T) { | |
req, err := http.NewRequest("GET", "/entry", nil) | |
if err != nil { | |
t.Fatal(err) | |
} | |
q := req.URL.Query() | |
q.Add("id", "1") | |
req.URL.RawQuery = q.Encode() | |
rr := httptest.NewRecorder() |