Having troubles with Xcode or their Command Line Tools? Follow this guide to reset your Xcode instance on macOS and resolve issues such as "No Xcode or CLT version detected!"
- Alternatively download Xcode directly
xcode-select -print-path
-- | |
-- Read only | |
-- | |
-- Create a group | |
CREATE ROLE postgres_ro_group; | |
-- Grant access to existing tables | |
GRANT USAGE ON SCHEMA public TO postgres_ro_group; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO postgres_ro_group; |
#!/usr/bin/env python | |
import paramiko | |
k = paramiko.RSAKey.from_private_key_file("/Users/goll/.ssh/id_rsa") | |
c = paramiko.SSHClient() | |
c.set_missing_host_key_policy(paramiko.AutoAddPolicy()) | |
print "connecting" | |
c.connect( hostname = "10.10.50.69", username = "goll", pkey = k ) | |
print "connected" | |
commands = [ "sudo /etc/init.d/httpd start" ] |
Having troubles with Xcode or their Command Line Tools? Follow this guide to reset your Xcode instance on macOS and resolve issues such as "No Xcode or CLT version detected!"
xcode-select -print-path
https://github.com/PacktPublishing free to download books code by Packet
https://github.com/EbookFoundation/free-programming-books Very immense
<?php | |
/** | |
* Plugin Name: Tiny Blocks | |
* Description: Backbone for modular block building | |
* Version: 0.1.0 | |
* Author: Kelly Mears, Tiny Pixel | |
* Author URI: https://tinypixel.dev | |
* License: MIT | |
* Text Domain: tinyblocks | |
* |
🚨 2020 Update: I recommend using mkcert to generate local certificates. You can do everything below by just running the commands brew install mkcert
and mkcert -install
. Keep it simple!
This gives you that beautiful green lock in Chrome. I'm assuming you're putting your SSL documents in /etc/ssl
, but you can put them anywhere and replace the references in the following commands. Tested successfully on Mac OS Sierra and High Sierra.
sudo nano /etc/ssl/localhost/localhost.conf
package main | |
import ( | |
"encoding/json" | |
"io/ioutil" | |
"log" | |
"net/http" | |
) | |
type Message struct { |
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"net" | |
"os" | |
"github.com/go-sql-driver/mysql" | |
"golang.org/x/crypto/ssh" |
from sshtunnel import SSHTunnelForwarder | |
import pymysql | |
with SSHTunnelForwarder( | |
('ec2-52-202-194-76.public-ec2-instance.amazonaws.com'), | |
ssh_username="ec2-user", | |
ssh_pkey="~/ssh-tunnel-rds.pem", | |
remote_bind_address=('private-rds-instance.ckfkidfytpr4.us-east-1.rds.amazonaws.com', 3306) | |
) as tunnel: | |
print("****SSH Tunnel Established****") |
function mysite_pending($order_id) { | |
error_log("$order_id set to PENDING", 0); | |
} | |
function mysite_failed($order_id) { | |
error_log("$order_id set to FAILED", 0); | |
} | |
function mysite_hold($order_id) { | |
error_log("$order_id set to ON HOLD", 0); | |
} | |
function mysite_processing($order_id) { |