Skip to content

Instantly share code, notes, and snippets.

View empeje's full-sized avatar
:octocat:
Focusing

Abdurrachman M empeje

:octocat:
Focusing
View GitHub Profile
@empeje
empeje / README.md
Created February 13, 2023 00:45
Fix install pacman / yay failed

So I tried to install elixir but I got this error

$ yay -S elixir
resolving dependencies...
looking for conflicting packages...

Packages (2) erlang-nox-25.2-1  elixir-1.14.0-1

Total Download Size: 44,38 MiB
@empeje
empeje / README.md
Last active January 18, 2023 23:19
RSS parser for Zapier

The python secret sauce to parse RSS using library available in Zapier Code

import requests
response = requests.get('https://newsletter.banklesshq.com/feed')
response.raise_for_status() # optional but good practice in case the call fails!

from xml.etree import ElementTree
root = ElementTree.fromstring(response.text)
@empeje
empeje / README.md
Created January 14, 2023 16:41
IAST vs DAST vs SAST
Interactive Application Security Testing (IAST) Dynamic Application Security Testing (DAST) Static Application Security Testing (SAST)
Reactive Scanning Proactive Scanning Proactive Scanning
Application Running Application Running Application Stopped
Inside Access Outside Access Inside Access
@empeje
empeje / README.md
Last active August 11, 2022 13:50
Fix Brew issue with Intel Mac OS Monterey

Issues

First you might need to fix permission

sudo chown -R $(whoami) /usr/local/Homebrew /usr/local/etc/bash_completion.d /usr/local/lib/pkgconfig /usr/local/share/aclocal /usr/local/share/doc /usr/local/share/info /usr/local/share/locale /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/man/man3 /usr/local/share/man/man5 /usr/local/share/man/man7 /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew/locks /usr/local/Cellar/ca-certificates/ /usr/local/Cellar/


chmod u+w /usr/local/Homebrew /usr/local/etc/bash_completion.d /usr/local/lib/pkgconfig /usr/local/share/aclocal /usr/local/share/doc /usr/local/share/info /usr/local/share/locale /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/man/man3 /usr/local/share/man/man5 /usr/local/share/man/man7 /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew/locks
@empeje
empeje / script.gs
Created August 1, 2022 07:10
Autoreply Gmail out of office hours
function autoReply() {
var interval = 5;
var wkend = [6,0];
var wkendMessage = "Hi! Thank you for contacting me. I'm currently out of office. All emails we'll be replied approximately on next Monday.";
var wkdayMessage = "Hi! Thank you for your email. I'm currently offline. I'll be back Mon-Fri 9-6PM UTC+2. You are getting this email because it is outside business hours.";
var date = new Date();
var day = date.getDay();
var hour = date.getHours();
if (wkend.indexOf(day) > -1 || (day == 5 && hour >= 18)) {
@empeje
empeje / MANAGEMENT.md
Created May 2, 2022 13:54
Management Charter

Management Charter

Following Chris Croft's management course, I will attempt to manage my team (and work with my colleagues) using the following principles:

  1. To keep everyone as informed as possible on current and future events in the rest of the company. If necessary I will take time to find out this information so that I can then pass it on to my team.
  2. To involve my team in my decisions wherever possible.
  3. If they cannnot be involved, then to explain the reasons behind all decisions.
  4. To allow as many decisions as possible to be made by my team, rather than by me.
  5. To receive problems with a positive attitude when they are reported to me.
  6. To give people encouragement even if they fail.
@empeje
empeje / CRYPTO.md
Last active March 26, 2023 00:25
My Crypto Learning Path
@empeje
empeje / Dockerfile
Created January 29, 2022 13:00
Dockerfile named-multi-staged (one Dockerfile to rule them all!)
# === Base Layer started
FROM ruby:3.0.1 as base
WORKDIR /app
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
apt-get install -y nodejs libsodium-dev && \
npm i -g yarn
@empeje
empeje / .gitlab-ci.yml
Created September 25, 2021 12:30
Compodoc <3 Gitlab CI
pages:
image: node:latest
stage: deploy
before_script:
- npm install -g redoc-cli
script:
# backend
- redoc-cli bundle -o public/index.html docs/openapi.yaml
# frontend
- cd frontend
@empeje
empeje / .gitlab-ci.yml
Created September 15, 2021 19:04
E2E Angular Gitlab
stages:
- test
test:karma:
stage: test
image: trion/ng-cli-karma
allow_failure: false
before_script:
- cd browser-extension
script: