Skip to content

Instantly share code, notes, and snippets.

@dimitardanailov
dimitardanailov / google-compute-engine.md
Last active Jun 23, 2021
Tips and tricks related with Google Compute engine
View google-compute-engine.md

Creating a Persistent Disk

Create a new instance
gcloud compute instances create gcelab --zone us-central1-c
Create a new persistent disk
@jimgwhit
jimgwhit / Fetch_example.md
Last active Jun 23, 2021
Fetch simple example
View Fetch_example.md

Just test data and uptating one field using put:

    document.getElementById('submitBtn').addEventListener('click', submitPost);
    function submitPost(e) {
        e.preventDefault();
        const data = {petid: document.getElementById('petid').value,
            species: document.getElementById('species').value,
            _token: document.getElementsByName("_token")[0].value,
            _method: document.getElementsByName("_method")[0].value};
@anthonyspiteri
anthonyspiteri / cassandra.sh
Last active Jun 23, 2021 — forked from ixaxaar/cassandra.sh
Simple bash script to install cassandra cluster
View cassandra.sh
#!/usr/bin/env bash
# A script to install cassandra modified by Anthony Spiteri for vCloud Director Metric Database installs
# ADD SEE NODES HERE - FOR SUPPORTED INSTALL 4 NODES WITH 2 SEEDS REQUIRED
SEEDS[0]='172.17.0.10'
#SEEDS[1]=172.17.0.11'
#SEEDS[2]=172.17.0.12'
#SEEDS[3]=172.17.0.13'
@Ryonez
Ryonez / (Unofficial) Discord server rules suggestions list.md
Last active Jun 23, 2021
(Unofficial) Discord server rules suggestions list
View (Unofficial) Discord server rules suggestions list.md

Discord

(Unofficial) Discord server rules suggestions list

Author's Note

I'll start off with letting you know this is a fork from someone else. However, for some bizarre reason, this is the one everyone finds, so I better get round to updating this. Credit to Cristiano#2233 for the original idea.

Also, I've had a lot of people saying the rules are to strict. If you pick all the rules here, you're right, it would be very strict. However the rules below are guidelines! They are there for you to pick the ones you desire, you can ignore ones you don't want. Hopefully they might help with rules you wouldn't have thought of otherwise.

@bkenny
bkenny / base64_encode.rb
Created Aug 21, 2013
Quickly encode a file in ruby to base64
View base64_encode.rb
require 'base64'
# Open the file you wish to encode
data = File.open('/Users/bkenny/Desktop/d3cce16ee41411e296c022000a1f980f_101.mp4').read
# Encode the puppy
encoded = Base64.encode64(data)
# Spit it out into one continous string
puts encoded.gsub(/\n/,"")
@SteveMarshall
SteveMarshall / send-magic-packet.sh
Created Apr 7, 2017
Wake-On-Lan Magic Packet using netcat in bash
View send-magic-packet.sh
#!/usr/bin/env bash
mac_address=$1
# Strip colons from the MAC address
mac_address=$(echo $mac_address | sed 's/://g')
broadcast=$2
port=4343
# Magic packets consist of 12*`f` followed by 16 repetitions of the MAC address
@leocomelli
leocomelli / git.md
Last active Jun 23, 2021
Lista de comandos úteis do GIT
View git.md

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@twairball
twairball / LeanCanvas.md
Created Jan 9, 2018 — forked from pierrebeaucamp/LeanCanvas.md
A Lean Canvas in markdown
View LeanCanvas.md

Lean Canvas

The Lean Canvas is a version of the Business Model Canvas adapted by Ash Maurya specifically for startups. You can read more about it here.

Problem

Top 3 Problems

View bbprograms.txt
google dork -> site:.co.uk inurl:"responsible disclosure"
https://registry.internetnz.nz/about/vulnerability-disclosure-policy/
http://www.123contactform.com/security-acknowledgements.htm
https://18f.gsa.gov/vulnerability-disclosure-policy/
https://support.1password.com/security-assessments/
https://www.23andme.com/security-report/
https://www.abnamro.com/en/footer/responsible-disclosure.html
https://www.accenture.com/us-en/company-accenture-responsible-disclosure
https://www.accredible.com/white_hat/
https://www.acquia.com/how-report-security-issue