Skip to content

Instantly share code, notes, and snippets.

View abereghici's full-sized avatar
👨‍💻

Alexandru Bereghici abereghici

👨‍💻
View GitHub Profile
@abereghici
abereghici / settings.json
Created January 17, 2024 11:21 — forked from brotherkaif/settings.json
LazyVim keymappings for VSCode
{
"vim.showMarksInGutter": false,
"vim.foldfix": true,
"vim.surround": true,
"vim.easymotion": true,
"vim.easymotionKeys": "asdghklqwertyuiopzxcvbnmfj",
"vim.leader": "<space>",
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [":", "w", "<CR>"],
@abereghici
abereghici / reset.css
Created June 20, 2022 14:43 — forked from EllyLoel/reset.css
CSS Reset
/*
Made by Elly Loel - https://ellyloel.com/
With inspiration from:
- Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/
- Andy Bell - https://piccalil.li/blog/a-modern-css-reset/
- Adam Argyle - https://unpkg.com/open-props@1.3.16/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE
Notes:
- `:where()` is used to lower specificity for easy overriding.
*/
#!/bin/bash
# Author: Daniel Alvarenga Lima
# Ubuntu version supported: 18.04 LTS 64Bit
# EXECUTE
# sudo chmod +x script-configure-ubuntu18.94-amd64.sh
# ./script-configure-ubuntu18.94-amd64.sh
#INSTRUCTIONS
@abereghici
abereghici / bin.ts
Created June 16, 2021 10:33 — forked from wbern/bin.ts
rush-changed-projects (some process.env vars might be org-specific)
import { getCommand } from "./lib";
import { printCommand } from "./util";
import process from "process";
function main() {
const [
// eslint-disable-next-line @typescript-eslint/no-unused-vars
_,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
__,
@abereghici
abereghici / Jenkinsfile
Created April 29, 2021 21:39 — forked from wbern/Jenkinsfile
changed-rush-projects
# will become: rush build --to @org/project1 --to @org/project2 etc..
"\$(sh ./changed-rush-projects \"node common/scripts/install-run-rush.js --debug build\")"
@abereghici
abereghici / token-interceptor.service.ts
Last active December 29, 2023 17:54
Angular Tutorial — Implement Refresh Token with HttpInterceptor
// src/app/services/token-interceptor.service.ts
import { Injectable } from "@angular/core";
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from "@angular/common/http";
import { AuthenticationService } from "../authentication.service";
import { Observable } from "rxjs/Observable";
import { BehaviorSubject } from "rxjs/BehaviorSubject";
@Injectable()
export class RefreshTokenInterceptor implements HttpInterceptor {