Skip to content

Instantly share code, notes, and snippets.

View AdilsonFuxe's full-sized avatar
🏠
Working from home

Adilson Fuxe AdilsonFuxe

🏠
Working from home
View GitHub Profile
@AdilsonFuxe
AdilsonFuxe / binary-search.js
Created January 26, 2023 11:35
704. Binary Search
/**
* @param {number[]} nums
* @param {number} target
* @return {number}
*/
var search = function(nums, target) {
let start = 0;
let end = nums.length -1;
while(start <= end) {
@AdilsonFuxe
AdilsonFuxe / linked-list.js
Created September 26, 2022 14:42
Linked List with javascript
var ListNode = function (val, next) {
this.val = val === undefined ? 0 : val;
this.next = !next ? null : next;
};
var MyLinkedList = function () {
this.head = null;
};
/**
@AdilsonFuxe
AdilsonFuxe / Kurbenetes ErrImagePull, ErrImageNeverPull and ImagePullBackoff Errors
Created April 1, 2022 08:30
Kurbenetes ErrImagePull, ErrImageNeverPull and ImagePullBackoff Errors
If your pods are showing ErrImagePull, ErrImageNeverPull, or ImagePullBackOff errors after running kubectl apply, the simplest solution is to provide an imagePullPolicy to the pod.
First, run kubectl delete -f infra/k8s/
Then, update your pod manifest:
spec:
containers:
- name: posts
image: cygnet/posts:0.0.1
@AdilsonFuxe
AdilsonFuxe / settings.json
Created March 4, 2021 20:34
my vs code configuration
{
"workbench.iconTheme": "material-icon-theme",
"editor.fontFamily": "Jetbrains Mono",
"editor.fontLigatures": true,
"editor.fontWeight": "650",
"editor.fontSize":14,
"debug.console.fontSize": 14,
// Editor Behavior
"editor.suggest.localityBonus": true,
@AdilsonFuxe
AdilsonFuxe / README-Template.md
Created May 23, 2020 09:14 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

import requests
import sys
import json
def waybackurls(host, with_subs):
if with_subs:
url = 'http://web.archive.org/cdx/search/cdx?url=*.%s/*&output=json&fl=original&collapse=urlkey' % host
else:
url = 'http://web.archive.org/cdx/search/cdx?url=%s/*&output=json&fl=original&collapse=urlkey' % host
import requests
import re
import sys
from multiprocessing.dummy import Pool
def robots(host):
r = requests.get(
'https://web.archive.org/cdx/search/cdx\
?url=%s/robots.txt&output=json&fl=timestamp,original&filter=statuscode:200&collapse=digest' % host)
@AdilsonFuxe
AdilsonFuxe / google-dorks
Created January 20, 2020 10:34 — forked from clarketm/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@AdilsonFuxe
AdilsonFuxe / GoogleDorking.md
Created January 20, 2020 10:34 — 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"