Skip to content

Instantly share code, notes, and snippets.

View hbjydev's full-sized avatar
🇺🇦
Слава Україні!

Hayden hbjydev

🇺🇦
Слава Україні!
View GitHub Profile
@hbjydev
hbjydev / t.txt
Created December 28, 2020 20:46
where am I going wrong?
hayden ~ $ curl -L api.github.com/repos/rocky-linux/rockylinux.org/pulls/135/commits | jq .[].commit.message | xargs -0I _ sh -c echo {} _
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 128k 100 128k 0 0 489k 0 --:--:-- --:--:-- --:--:-- 489k
@hbjydev
hbjydev / laravel.Dockerfile
Created July 15, 2020 12:23
Laravel Docker Setup
# image from php73.Dockerfile
FROM php73
# configure github auth
ARG github_token
RUN mkdir ~/.composer
RUN echo '{"github-oauth":{"github.com":"'$github_token'"}}' > ~/.composer/auth.json
# include source
COPY . .
"""
""" itshaydenvim - Hayden Young's Neovim config
"""
" Enable syntax highlighting
syntax on
" Some sensible defaults (thanks ThePrimeagen)
set noerrorbells
set tabstop=2 softtabstop=2
@hbjydev
hbjydev / readme.md
Created April 17, 2020 11:49
Arch Linux Fixes
@hbjydev
hbjydev / git-allrepos
Created February 15, 2020 19:58
Copy this file to /usr/bin/git-allrepos and then do `git allrepos {complete|clone|find-files|grep|list-repos|manual|sed}` to use any all-repos command.
#!/bin/bash
set -e
TOOL=$1
set -- "${@:2}"
all-repos-$TOOL $@
FROM node:lts-alpine
# globally install yarn on our docker image
RUN npm i -g yarn typescript
# use changes to package.json to force Docker not to use the cache
# when we change our application's nodejs dependencies:
ADD package.json /tmp/package.json
RUN cd /tmp && yarn
RUN mkdir -p /opt/app && cp -a /tmp/node_modules /opt/app/
@hbjydev
hbjydev / keybase.md
Last active May 15, 2020 00:10
My Keybase proof

Keybase proof

I hereby claim:

  • I am itshaydendev on github.
  • I am itshaydendev (https://keybase.io/itshaydendev) on keybase.
  • I have a public key ASD4rKlIBJCfb24ttY0mBlUe7y1JmVR6clUJTuiQfIxXKwo

To claim this, I am signing this object:

input = "347312-805915"
yes = []
def check_adjacent_digits(password: str) -> bool:
yessir = []
for i in range(0, 4):
if password[i] == password[i + 1]:
if len(password) > (i + 1):