User permission changes If creating a new user on unix.

user@iMac bdhtcareers2018.local % brew install gtk+3 Error: homebrew-core is a shallow clone. To `brew update` first run: git -C “/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core” fetch –unshallow This restriction has been made on GitHub’s request because updating shallow clones is an extremely expensive operation due to the tree layout and traffic of Homebrew/homebrew-core. We don’t […]

Javaqscript – Class vs Function

https://www.toptal.com/javascript/es6-class-chaos-keeps-js-developer-up   The Trouble with ES6 Classes The worst offender by far is new to JavaScript’s latest release version, ECMAScript 6 (ES6): classes. Some of the talk around classes is frankly alarming and reveals a deep-rooted misunderstanding of how the language actually works: “JavaScript is finally a real object-oriented language now that it has classes!” […]

Javascript Module bits

// person.js ‘use strict’; module.exports = class Person { constructor(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; } display() { console.log(this.firstName + ” ” + this.lastName); } }   // index.js ‘use strict’; var Person = require(‘./person.js’); var someone = new Person(“First name”, “Last name”); someone.display(); ==============================   With […]

Linux Ftp Setup

https://www.digitalocean.com/community/tutorials/how-to-enable-sftp-without-shell-access-on-ubuntu-16-04 https://faun.pub/how-to-configure-ftp-access-to-specific-folder-on-linux-server-1626a949c9da https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-a-user-s-directory-on-ubuntu-16-04 https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-a-user-s-directory-on-ubuntu-18-04 How To Configure SFTP for a Web Server Document Root

Git Advanced

Git: Cheat Sheet (advanced) #git #cheatsheet Dec 2, 2019 Originally published at maxpou.fr ・Updated on Jan 22, 2020 ・3 min read If you find git confusing, I created this little cheat sheet! Please, note that I voluntary skipped the basic commands like git commit, git pull/push… This cheat sheet is intended for an “advanced” usage of git. 🧭 […]

Vzlom saita

Взлом сайта Взлом сайтов – один из самых распространенных видов кибер-преступлений. Причина проста: у сайтов существует огромное количество уязвимостей и эксплойтов для них. Наиболее частой целью взлома является размещение на нем вредоносного кода, с помощью которого можно будет заразить его посетителей. Взлом сайта часто проводят с целью кражи конфиденциальных данных, […]

Request Tracing

OpenTracing vs Zipkin     AppMetrics for nodeJS apps Request tracing ( packet analyzer ) for computer – wireshark

AWS Beanstalk

Using AWS EB CLI Docs Basic command list: eb status eb health eb open eb deploy eb config Setting config file in project: .lasticbeanstalk/config.yml branch-defaults: develop: environment: project1site-staging master: environment: project1site-production environment-defaults: project1site-production: branch: null repository: null project1site-staging: branch: null repository: null global: application_name: project1site default_ec2_keyname: aws-eb-lc default_platform: arn:aws:elasticbeanstalk:eu-west-2::platform/PHP 7.2 […]

Serialize Data – PHP

If it absolutely required to add the property to the object, you could cast it as an array, add your property (as a new array key=>value), then cast it back as an object. The only time you run into stdClass objects is when you cast an array as an object […]

Valet (macOS)

Much like Vagrant, valet is a development virtualisation setup Create a folder for you work: Sites , Projects  or just use the /var/www … Setup Valet in directorycd Sites valet park – will make all the foders as projects in valet. Add single site to Valet cd site1.co.uk valet link […]