Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View iamandrewluca's full-sized avatar
🚨
Git Inspector

Andrei Luca iamandrewluca

🚨
Git Inspector
View GitHub Profile
@iamandrewluca
iamandrewluca / same-tab-links.js
Created April 19, 2024 13:15
open links in same tab
@iamandrewluca
iamandrewluca / bookmarks-to-notion.js
Last active April 17, 2024 10:18
Export bookmarks to Notion as a Database
(function bookmarksExportToCsv() {
/**
* 1. Export bookmarks from browser (supported any Chromium based browsers and Safari) (chrome://bookmarks)
* 2. Open exported html file again in the browser
* 3. Copy paste this entire file in console, and execute it (hit enter)
* 4. You will be prompted to save a CSV file. Save it.
* 5. Open Notion. Click Import -> CSV
* 6. Select saved CSV file. Wait for import
* 7. You have a new database with all your bookmarks
*/
@iamandrewluca
iamandrewluca / AntepayFieldDecorator.java
Last active February 19, 2024 14:23
Selenium Custom Field Decorator
package com.antepay.utility;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.pagefactory.DefaultFieldDecorator;
import org.openqa.selenium.support.pagefactory.ElementLocator;
import org.openqa.selenium.support.pagefactory.ElementLocatorFactory;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;
@iamandrewluca
iamandrewluca / ceo-hour-questions.md
Created October 12, 2023 11:59
CEO Hour Questions
  1. How do you handle the stresses and pressures of being the CEO?
  2. What are some areas where you think we could innovate or improve, outside of our core product or service?
  3. What opportunities do you see for employee growth and development?
  4. How do you see our industry evolving, and how are we positioned to adapt?
  5. What do you hope to achieve with these "CEO Hour" sessions in the long term?
  6. What's one thing you wish you knew more about regarding the day-to-day operations of the company?
  7. How would you describe the company culture you’re aiming for?
  8. How do you foster a culture of innovation within the company?
  9. What's your vision for the company over the next 5 years?
  10. Are there any books, podcasts, or other resources that have significantly influenced your leadership style?
  • Sustainable Technology Practices: Integrating sustainability into tech processes and products. https://12factor.net
  • Emerging Technologies: Explore the latest advancements in technology and how they might impact your industry.
  • Tech Ethics and Responsibility: Discussing the ethical implications of technology and how to address them.
function plusOne(digits) {
let index = digits.length - 1
while (true) {
digits[index] += 1;
if (digits[index] > 9 && index === 0) {
digits[index] = 0
digits.unshift(1);
break;
@iamandrewluca
iamandrewluca / remove-twitter.md
Created February 12, 2024 20:01
Remove Twitter

Get rid of all content from Twitter

How to use "Remove Tweets"

  1. Sign in to Twitter
  2. Go to your Profile
  3. Open DevTools and go to the 'Console' tab
  4. Copy and paste the following script
@iamandrewluca
iamandrewluca / YouTube-Watch-Later-Time.js
Created January 11, 2024 10:50
YouTube Watch Later Time
$$('ytd-playlist-video-renderer .style-scope ytd-thumbnail-overlay-time-status-renderer')
.map(e => e.textContent.trim().split(':').reverse())
.map(([s = '0', m = '0', h = '0']) => ({ s: parseInt(s), m: parseInt(m), h: parseInt(h) }))
.map(({ s, m, h }) => s + m * 60 + h * 3600)
.reduce((a, b) => a + b) / 3600
@iamandrewluca
iamandrewluca / open-source.md
Last active December 11, 2023 07:51
Some Questions and Answers about my Open-Source Experience

Can you share your motivation behind contributing to open-source projects, and how did you get started?

It started with me trying to fix some bugs on libraries that I used in my day-to-day projects. From this, I saw two positive outcomes: my hard skills began to improve much faster 🚀, and I started to be recognized as a more professional developer by HR 👨‍💻.

What fuels your passion for coding and contributing to open-source projects?

Nowadays, it doesn't feel like a passion anymore; it feels more like the right thing to do, and the right way to do things. 🤝

Are there specific aspects of software development that you find particularly fulfilling?

@iamandrewluca
iamandrewluca / bookmarklets.md
Last active October 18, 2023 07:30
Collection of bookmarklets that I use day to day #bookmarklets