Skip to content

Instantly share code, notes, and snippets.

@bbuyukkahraman
bbuyukkahraman / gist:c057bccf0a97aecf2ec887be4fcc10ff
Created March 26, 2023 22:37
CSSLP Certification All-in-One Exam Guide 2nd Edition
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
//Linux
$ docker run -it --rm ubuntu
$ env
$ ps aux
$ ls -l /
$ uname -a
$ apt list
$ date
$ which date
@bbuyukkahraman
bbuyukkahraman / Alias.usage
Created March 3, 2022 19:58
Aliase Usage
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"
@bbuyukkahraman
bbuyukkahraman / Git Commands
Last active December 30, 2017 08:31
Git Command for Github
# 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
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:
# 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
# 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>
# 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-->