Skip to content

Instantly share code, notes, and snippets.

View jupiterorbita's full-sized avatar

John Misirlakis jupiterorbita

View GitHub Profile
package com.john.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.CrossOrigin;
@RestController
@CrossOrigin(origins = "http://localhost:3000", allowCredentials = "true")
public class DataController {
@jupiterorbita
jupiterorbita / GoogleDorking.md
Created January 5, 2024 20:51 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@jupiterorbita
jupiterorbita / HowToSpringData.md
Created October 7, 2022 14:23 — forked from dev-marisa/HowToSpringData.md
How to set up a Spring Boot Data Project w/ Bootstrap

Spring Boot Checklist

Step 0 - Starting the project

Inside of Package Explorer right click -> new -> Spring Starter Project

Inside of the Pop-up we need to:

  • Create a unique project name, example Pandas
  • Make sure the type is Maven

REACT ROUTER

app.js

  1. Link -- similar to a tag
  2. Switch(v5), Routes(v6) -- if/else statement.. if it fits the first, go to the first
  3. Route -- if the path fits, render the component

v5:

@jupiterorbita
jupiterorbita / git-collaborative-workflow.md
Created December 23, 2021 01:27 — forked from adamloving/git-collaborative-workflow.md
Simple Git workflow for collaborating on a project. I wrote this to help a co-worker learn Git (and help me remember after a year of working on my own).

Creating the change

$ git checkout -b my-feature

... modify code ....

$ git add <filename> 
$ git commit -m “my feature is this”
{
"guid": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c274}",
"hidden": false,
"name": "Mongo Shell",
"commandline": "mongosh \"mongodb://<credentials>@<mongodb-instance>/<database-name>\""
}
@jupiterorbita
jupiterorbita / gpg_git_signing.md
Created July 3, 2021 19:01 — forked from alopresto/gpg_git_signing.md
Steps to enable GPG signing of git commits.

If anyone is interested in setting up their system to automatically (or manually) sign their git commits with their GPG key, here are the steps:

  1. Generate and add your key to GitHub
  2. $ git config --global commit.gpgsign true ([OPTIONAL] every commit will now be signed)
  3. $ git config --global user.signingkey ABCDEF01 (where ABCDEF01 is the fingerprint of the key to use)
  4. $ git config --global alias.logs "log --show-signature" (now available as $ git logs)
  5. $ git config --global alias.cis "commit -S" (optional if global signing is false)
  6. $ echo "Some content" >> example.txt
  7. $ git add example.txt
  8. $ git cis -m "This commit is signed by a GPG key." (regular commit will work if global signing is enabled)