Skip to content

Instantly share code, notes, and snippets.

@oguzy
oguzy / gist:a46765941192511f5a394bfa0aca9588
Created December 27, 2019 12:58 — forked from arunoda/gist:7790979
Installing SSHPass

Installing SSHPASS

SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.

Installing on Ubuntu

apt-get install sshpass

Installing on OS X

@oguzy
oguzy / Update-branch.md
Created December 20, 2019 13:50 — forked from santisbon/Update-branch.md
Bring your feature branch up to date with master. Deploying from Git branches adds flexibility. Bring your branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master

@oguzy
oguzy / overlay2-centos.md
Created January 3, 2019 11:58 — forked from brunneis/overlay2-centos.md
Change storage driver to overlay2 on CentOS
  1. systemctl stop docker
  2. Create the file /etc/docker/daemon.json with the following content:
{
  "storage-driver": "overlay2",
  "storage-opts": ["overlay2.override_kernel_check=true"]
}
  1. systemctl start docker
@oguzy
oguzy / refreash_helm.sh
Created December 12, 2018 18:28 — forked from naotookuda/refreash_helm.sh
How to refresh "helm" cache ?
# !/bin/bash
# Remove all files in these directories.
rm -rf ~/.helm/cache/archive/*
rm -rf ~/.helm/repository/cache/*
# Refreash repository configurations
helm repo update
#That's all.
#If you "helm search" next time, you can find newest stable charts in repository.
@oguzy
oguzy / tcp_flags.txt
Created July 18, 2018 06:06 — forked from tuxfight3r/tcp_flags.txt
tcpdump - reading tcp flags
##TCP FLAGS##
Unskilled Attackers Pester Real Security Folks
==============================================
TCPDUMP FLAGS
Unskilled = URG = (Not Displayed in Flag Field, Displayed elsewhere)
Attackers = ACK = (Not Displayed in Flag Field, Displayed elsewhere)
Pester = PSH = [P] (Push Data)
Real = RST = [R] (Reset Connection)
Security = SYN = [S] (Start Connection)
@oguzy
oguzy / tcp_flags.txt
Created July 18, 2018 06:06 — forked from tuxfight3r/tcp_flags.txt
tcpdump - reading tcp flags
##TCP FLAGS##
Unskilled Attackers Pester Real Security Folks
==============================================
TCPDUMP FLAGS
Unskilled = URG = (Not Displayed in Flag Field, Displayed elsewhere)
Attackers = ACK = (Not Displayed in Flag Field, Displayed elsewhere)
Pester = PSH = [P] (Push Data)
Real = RST = [R] (Reset Connection)
Security = SYN = [S] (Start Connection)
@oguzy
oguzy / manageiq.sh
Created April 10, 2018 08:54 — forked from mandeepbal/manageiq.sh
ManageIQ Install
#Based on : http://manageiq.org/community/install-from-source/
#Launch a CentOS AMI from AWS (ami-8997afe0), m3.large, 20GB root mount
#Update the VM
yum update -y
yum install -y wget vim telnet git
service iptables stop
#Create User
useradd miqbuilder
@oguzy
oguzy / manageiq.sh
Created April 10, 2018 08:54 — forked from mandeepbal/manageiq.sh
ManageIQ Install
#Based on : http://manageiq.org/community/install-from-source/
#Launch a CentOS AMI from AWS (ami-8997afe0), m3.large, 20GB root mount
#Update the VM
yum update -y
yum install -y wget vim telnet git
service iptables stop
#Create User
useradd miqbuilder
@oguzy
oguzy / udemy-courses-download-using-cookies.md
Created November 20, 2017 07:09 — forked from barbietunnie/udemy-courses-download-using-cookies.md
Downloading Udemy videos with youtube-dl

Download Udemy course videos using youtube-dl

$ youtube-dl --list-extractors | grep udemy

Steps

  1. Get link to the course to download. e.g. https://www.udemy.com/course-name/
  2. Login into udemy website, save the cookie from chrome using Chrome (Cookie.txt)[1] export extension. Save it to file udemy-cookies.txt
  3. Get the link of the video that you want to download. usually in format. Use the command provided below where you have to replace the {course_link} and {path_to_cookies_file} with respective paths.

# $ youtube-dl {course_link} --cookies {path_to_cookies_file}

@oguzy
oguzy / injector_configuration.yml
Created October 30, 2017 10:50 — forked from cnf/injector_configuration.yml
Ansible Tower Credential Type for vmware.py
env:
VMWARE_HOST: '{{hostname}}'
VMWARE_PASSWORD: '{{password}}'
VMWARE_SERVER: '{{hostname}}'
VMWARE_SSLCHECK: '{{ "True" if checkssl else "False" }}'
VMWARE_USER: '{{username}}'
VMWARE_USERNAME: '{{username}}'
VMWARE_VALIDATE_CERTS: '{{ "True" if checkssl else "False" }}'