Skip to content

Instantly share code, notes, and snippets.

View ossiemarks's full-sized avatar
🎯
Alive

Osman Marks ossiemarks

🎯
Alive
View GitHub Profile
@ossiemarks
ossiemarks / History|-24ca2fbd|entries.json
Last active May 17, 2022 13:38 — forked from hoodoer/wifiAttacks.txt
WiFi Pineapple Attacks
{"version":1,"resource":"file:///Users/osmanmarks/code/infrastructure-tools/.github/workflows/packer.yml","entries":[{"id":"3A5v.yml","timestamp":1652197643341}]}
@ossiemarks
ossiemarks / curl.md
Created June 9, 2020 13:48 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@ossiemarks
ossiemarks / deploy.sh
Created November 15, 2019 10:07 — forked from kcabading/deploy.sh
Bash script for deploying Wordpress using Jenkins and Bitbucket.
#!/bin/bash
# PLACEHOLDERS
# [STAGING_FOLDER] - staging directory in your server
# [STAGING_URL] - staging url
# [STAGING_USER] - staging user in the server
# [STAGING_MYSQLUSER] - staging mysql user
# [STAGING_MYSQLPASSWORD] - staging mysql password
# [ROOTUSER] - Mysql root user
# [ROOTPASSWORD] - Mysql root password

My Openshift Cheatsheet

Examine the cluster quota defined for the environment:

$ oc describe AppliedClusterResourceQuota

Install pkgs using yum in a Dockerfile

@ossiemarks
ossiemarks / gist:957725c33100f6169923d29568b09900
Created October 11, 2018 22:08
installing hackrf tools and updating firmware hackrf ubuntu 16.04
# gathered from these sources
# https://mborgerson.com/getting-started-with-the-hackrf-one-on-ubuntu-14-04
# https://github.com/mossmann/hackrf/wiki/Operating-System-Tips
# https://github.com/mossmann/hackrf/tree/master/firmware
# http://marksolters.com/programming/2016/06/22/arm-toolchain-16-04.html
#notes created during the process, it could be off by a couple of sets, YMMV
sudo apt-get update
Need to add Tagging to the docker image if a version tag exists on the git repo.
@ossiemarks
ossiemarks / Jenkinsfile
Created March 13, 2018 14:47 — forked from bvis/Jenkinsfile
Jenkin pipeline definition example to be integrated with Docker Swarm cluster in our CI/CD environment
pipeline {
agent { node { label 'swarm-ci' } }
environment {
TEST_PREFIX = "test-IMAGE"
TEST_IMAGE = "${env.TEST_PREFIX}:${env.BUILD_NUMBER}"
TEST_CONTAINER = "${env.TEST_PREFIX}-${env.BUILD_NUMBER}"
REGISTRY_ADDRESS = "my.registry.address.com"
SLACK_CHANNEL = "#deployment-notifications"
@ossiemarks
ossiemarks / gist:aee982ae3681e0cdf9b1e209a46518b7
Created November 28, 2017 07:22 — forked from mikepfeiffer/gist:4d9386afdcceaf29493a
EC2 UserData script to install CodeDeploy agent
#!/bin/bash
yum install -y aws-cli
cd /home/ec2-user/
aws s3 cp 's3://aws-codedeploy-us-east-1/latest/codedeploy-agent.noarch.rpm' . --region us-east-1
yum -y install codedeploy-agent.noarch.rpm