Docker does not run natively on OSX, only Linux. Docker Machine was created to add a Linux VM environment to run Docker containers on OSX. Install using Homebrew:
brew install docker
brew install docker-machine
docker-machine create
#!/bin/bash | |
# Copyright (c) <2018> <Maksym Rusynyk> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# |
kubectl get rs,secrets -o json --namespace old | jq '.items[].metadata.namespace = "new"' | kubectl create-f - |
Docker does not run natively on OSX, only Linux. Docker Machine was created to add a Linux VM environment to run Docker containers on OSX. Install using Homebrew:
brew install docker
brew install docker-machine
docker-machine create
-- returning updated values and old values by using a sub-expression | |
update orders | |
set type = 'delivery' | |
where id = 3767 | |
returning id, type, ( | |
select type from orders where id = 3767 | |
) as old_type; |
osascript -e 'tell application "iOS Simulator" to quit' | |
osascript -e 'tell application "Simulator" to quit' | |
xcrun simctl erase all |
w3af>>> plugins | |
w3af/plugins>>> audit shell_shock | |
w3af/plugins>>> back | |
w3af>>> target | |
w3af/config:target>>> set target http://shellshock.notsosecure.com/cgi-bin/status | |
w3af/config:target>>> back | |
The configuration has been saved. | |
w3af>>> start | |
Shell shock was found at: "http://shellshock.notsosecure.com/cgi-bin/status", using HTTP method GET. | |
The modified header was: "User-Agent" and it's value was: "() { :;}; echo "shellshock: check"". |
// mindbody.js | |
// Replace source_name, password and site_id values in `var params` | |
var soap = require('soap'); | |
module.exports = { | |
getClasses: function (req, res) { | |
var url = "https://api.mindbodyonline.com/0_5/ClassService.asmx?wsdl"; | |
soap.createClient(url, function (err, client) { | |
if (err) { |
SSH into your EC2 instance. Run the following:
$ sudo yum install gcc
This may return an "already installed" message. That's OK.
$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make
<?php | |
namespace Ceva\CoreBundle\Listener; | |
use Symfony\Component\HttpKernel\Event\GetResponseEvent; | |
use Symfony\Component\HttpKernel\KernelEvents; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Symfony\Component\HttpFoundation\RedirectResponse; | |
use Symfony\Component\HttpFoundation\Cookie; |