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
CSSLP Certification All-in-One Exam Guide 2nd Edition | |
CHAPTER 1 | |
General Security Concepts | |
• Learn basic terminology associated with computer and information security | |
• Discover the basic approaches to computer and information security | |
• Examine security models used to implement security in systems | |
• Explore the types of adversaries associated with software security | |
GENERAL SECURITY CONCEPTS | |
Secure software development is intimately tied to the information security domain. For members of the software development team to develop secure software, a reasonable knowledge of security principles is required. The first knowledge domain area, Secure Software Concepts, comprises a collection of principles, tenets, and guidelines from the information security domain. Understanding these concepts as they apply to software development is a foundation of secure software development. | |
Security Basics |
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
Linux Networking Commands | |
# ifconfig : Display network interface information. | |
# ip address show : Show/manipulate routing, devices, policy routing,and tunnels. | |
# route -n : Display or manipulate the IP routing table. | |
# ping google.com : Send ICMP ECHO_REQUEST to network hosts. | |
# traceroute google.com : Print the route packets trace to network host. | |
# netstat -an : Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. | |
# ss -tulpn : Display socket statistics. | |
# hostname : Show or set the system's host name. |
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
alias dirs="ls -al | grep '^d'" | |
alias l="ls -al" | |
alias lf="ls -aFG" | |
alias lm="ls -al|more" | |
alias h="history" | |
alias html="cd /web/apache/htdocs/devdaily/html" | |
alias logs="cd /web/apache/htdocs/devdaily/logs" | |
alias qp="ps auxwww|more" | |
alias nu="who|wc -l" |
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
# Source Control Workflows in Xcode9 | |
- Pull/push code | |
- Commit | |
- Branching | |
#Pull/Push code: | |
Clone/Pull: download code from remote | |
Push: put local-changes to remote |
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
Install Homebrew OS X package manager: | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
Install ffmpeg with x265 support: | |
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvorbis --with-libvpx --with-opus --with-x265 | |
Convert video to x265: | |
ffmpeg -i input -c:v libx265 -preset medium -crf 28 -c:a aac -b:a 128k output.mp4 | |
Uninstall ffmpeg: |
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
# Change batch video play speed in folder | |
#!/bin/bash | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
for f in * | |
do | |
ffmpeg -i "$f" -filter_complex "[0:v]setpts=0.625*PTS[v];[0:a]atempo=1.6[a]" -map "[v]" -map "[a]" "$f-UF.mp4" | |
done | |
IFS=$SAVEIFS |
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
# Add following lines to info.plist | |
<key>NSLocationWhenInUseUsageDescription</key> | |
<string>Your message is here.</string> | |
<key>NSLocationAlwaysUsageDescription</key> | |
<string>I Your message is here</string> |
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
# Add following lines to info.plist file | |
# Change domain name with your preferred domain. | |
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSExceptionDomains</key> | |
<dict> | |
<key>yourserver.com</key> | |
<dict> | |
<!--Include to allow subdomains--> |