Skip to content

Instantly share code, notes, and snippets.

View saintmalik's full-sized avatar
🤗
Smile at least once a day

Abdulmalik Salawu saintmalik

🤗
Smile at least once a day
View GitHub Profile
#!/bin/bash
printf "Dont abuse and spam maintainers, ALWAYS MAKE QUALITY CONTRIBUTIONS!\n";
printf "Dont abuse and spam maintainers, ALWAYS MAKE QUALITY CONTRIBUTIONS!\n";
printf "Dont abuse and spam maintainers, ALWAYS MAKE QUALITY CONTRIBUTIONS!\n";
printf "Dont abuse and spam maintainers, ALWAYS MAKE QUALITY CONTRIBUTIONS!\n";
echo "$var"
#install Go
@mafiaguy
mafiaguy / Application_Security_Questions_Answers.md
Last active May 28, 2024 18:30
Some of the queries that were asked in interviews for Application/Security Engineering roles and were submitted in Glassdoor.com. xss vulnerability infosec application-security interview-questions appsec webappsec sdlc websecurity devsecops security-engineering websec websecurity-reference security-team security-engineer-interview

Encryption and Authentication

* What is a three-way handshake?

The TCP handshake,TCP uses a three-way handshake to establish a reliable connection. The connection is full duplex, and both sides synchronize (SYN) and acknowledge (ACK) each other. The exchange of these four flags is performed in three steps—SYN,SYN- ACK, and ACK


  • How do cookies work?
@harsimranmaan
harsimranmaan / main.go
Last active June 10, 2024 02:05
Go embed gist
package main
import (
"embed"
"html/template"
"log"
"net/http"
)
// The go embed directive statement must be outside of function body
@todd-dsm
todd-dsm / override-values-tls.yaml
Last active April 25, 2023 07:05
vault ui definition; exposes the ui on 443 AND requires TLS for private COMMS; this is still raw
# Vault Helm Chart Value Overrides
global:
enabled: true
tlsDisable: false
#injector:
# enabled: true
# # Use the Enterprise Image
# image:
# repository: "hashicorp/vault-enterprise"
@reinvanoyen
reinvanoyen / terminal-prompt-git-branch-zsh.md
Last active July 3, 2024 14:26
Add Git Branch Name to Terminal Prompt (MacOS zsh)

Add Git Branch Name to Terminal Prompt (zsh)

Updated for MacOS with zsh

  • Catalina
  • Big Sur
  • Monterey
  • Ventura
  • Sonoma

screenshot

@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active July 2, 2024 22:53
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@namishelex01
namishelex01 / Security Engineer - Interview Questions.md
Last active July 1, 2024 04:00
Cyber security engineer, Security Engineer, Security Analyst, Information Security Analyst and many more names

Core Information Security

  • What is information security and how is it achieved?

  • What are the core principles of information security?

  • What is the CIA triangle?

  • What is non-repudiation (as it applies to IT security)?

@stephenharris
stephenharris / install-firefox-linux.md
Last active April 2, 2023 09:44
Installing a particular version of firefox on Linux.

Installing a particular version of FireFox on Linux

  1. Does an existing version of firefox exist?

    firefox --version
    

    If not, skip to (3).

@subfuzion
subfuzion / curl.md
Last active July 3, 2024 11:43
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.

@hyg
hyg / gist:9c4afcd91fe24316cbf0
Created June 19, 2014 09:36
open browser in golang
func openbrowser(url string) {
var err error
switch runtime.GOOS {
case "linux":
err = exec.Command("xdg-open", url).Start()
case "windows":
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start()
case "darwin":
err = exec.Command("open", url).Start()