This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://support.ssl.com/Knowledgebase/Article/View/19/0/der-vs-crt-vs-cer-vs-pem-certificates-and-how-to-convert-them | |
Certificates and Encodings | |
At its core an X.509 certificate is a digital document that has been encoded and/or digitally signed according to RFC 5280. | |
In fact, the term X.509 certificate usually refers to the IETF’s PKIX Certificate and CRL Profile of the X.509 v3 certificate standard, as specified in RFC 5280, commonly referred to as PKIX for Public Key Infrastructure (X.509). | |
X509 File Extensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class Pagination { | |
constructor(vm, limit, total, page_param_name) { | |
this.vm = vm | |
this.limit = parseInt(limit) | |
this.total = parseInt(total) | |
this.page_param_name = page_param_name | |
this.setMaxPagesToShow(5) | |
this.setDefaultStyles() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = 'https://valkata.lulin'; | |
$proxyList = ['186.47.82.6:41430', '43.240.5.1:31777', '202.166.201.65:23500']; | |
$browserAgents = [ | |
'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7', | |
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36', | |
'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36', | |
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36', | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There are a lot of guides out there that deals with this topic (installing ssl certificate) | |
but not much that are actually tailored for this pair, GoDaddy and Ubuntu. So hopefully today’s | |
article will be helpful for many people. | |
Elements | |
Basically in order to successfully install an SSL certificate you need the following things | |
CSR file | |
Private key | |
Certificate key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To enable anti-aliased fonts just for Netbeans, add -J-Dawt.useSystemAAFontSettings=on to the end of the netbeans_default_options line in /usr/share/netbeans/etc/netbeans.conf e.g.: | |
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dawt.useSystemAAFontSettings=on" | |
Alternatively, you can set this globally so that all AWT apps are affected, by setting the _JAVA_OPTIONS environment variable in your .bash_profile: | |
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true' | |
This also has Swing equivalent, using the swing.aatext preference. You'll have to log out and log back in for this to take effect. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEM (Block, Element, Modifier) е подход за web разработка с цел всички компоненти да бъдат разделени | |
на блокове така, че да могат да бъдат преизползвани в следващи проекти просто с копиране. Когато използваме BEM | |
методът на писане css кодът трябва да съдържа само класове, без ID-та или name атрибути. | |
Block: | |
Блоковете са css класове които държат едно цяло. Например: | |
<!-- `header` block --> | |
<header class="header"> | |
<!-- Nested `logo` block --> | |
<div class="logo"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Какво е? | |
- Codeception е php фреймуърк за правене на тестове за правилното изпълнение на програми/сайтове/форми..тн.. | |
Как се инсталира? | |
- Може да се инсталира лесно с composer като се следват инструкцийте в сайта на codeception: | |
http://codeception.com/quickstart | |
Какво се предлага? | |
- Системата предлага unit, functional и acceptance тестове | |
* acceptance tests: този тип тестове е за проверка на текстове които се изобразяват на браузъра след |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyClass { | |
private $firstField; | |
private $secondField; | |
public function __get($property) { | |
if (property_exists($this, $property)) { | |
return $this->$property; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Namespacing does for functions and classes what scope does for variables. | |
It allows you to use the same function or class name in different parts of the | |
same program without causing a name collision. | |
In simple terms, think of a namespace as a person's surname. If there are two people n | |
amed "John" you can use their surnames to tell them apart. | |
The Scenario |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this: | |
Когато се извиква от функция | |
myFunction = function () { | |
console.log(this); | |
}; | |
myFunction(); | |
в този случей ще върне главния window обект | |
Когато се извиква вътре в обект е референция към съмия него. | |
var myObject = { |