Skip to content

Instantly share code, notes, and snippets.

View AlFalahTaieb's full-sized avatar
🎯
Focusing

Taieb AlFalahTaieb

🎯
Focusing
View GitHub Profile
" IdeaVim Wiki https://github.com/JetBrains/ideavim/wiki
" Find more examples here: https://jb.gg/share-ideavimrc
" The Essential IdeaVim Remaps https://towardsdatascience.com/the-essential-ideavim-remaps-291d4cd3971b
let mapleader=" "
""" Common settings
set showmode
set scrolloff=5
" Do incremental searching.
@dims
dims / README.md
Last active April 30, 2024 11:52
Kubernetes Resources
@izzyleung
izzyleung / README.md
Last active February 4, 2024 23:50
Mullvad WireGuard Public Key API (Upload and Revoke)

Generate a new pair of keys via wg

wg genkey | tee privatekey | wg pubkey > publickey

Upload the newly generate key to Mullvad

curl https://api.mullvad.net/wg/ -d account=YOUR_ACCOUNT_NUMBER --data-urlencode pubkey="$(cat publickey)"
@chooie
chooie / 3_things_ive_learned_in_5_years_of_javascript_software_development.md
Last active January 4, 2022 01:17
3 things I've learned in 5 years of JavaScript Software Development

3 things I've learned in 5 years of JavaScript Software Development

Code should lead with the higher-level concepts. The lower-level pieces should follow

Don't force the reader of your code to scroll past the minutiae.

function makeBreakfast() {
  const ingredients = fetchIngredients();
  const friedBacon = fryBacon(ingredients.bacon);
  const cookedScrambledEggs = whiskEggsAndFryThem(ingredients.eggs);
 const preparedMeal = plateAndSeasonMeal(friedBacon, cookedScrambledEggs);
@iamcryptoki
iamcryptoki / fix-sysctl.txt
Created July 29, 2019 09:20
Fix sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables.
$ modprobe bridge
$ echo "net.bridge.bridge-nf-call-iptables = 1" >> /etc/sysctl.conf
$ sysctl -p /etc/sysctl.conf
sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables: No such file or directory sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-ip6tables: No such file or directory
# SOLUTION
$ modprobe br_netfilter
$ sysctl -p /etc/sysctl.conf
@swalkinshaw
swalkinshaw / tutorial.md
Last active November 13, 2023 08:40
Designing a GraphQL API

React Concepts

What is It?

  • Javascript lib used to create HTML that is shown to user in a browser
  • Use it to create components --> snippets of code that produce HTML
  • can nest components to make complex applications simply

Props

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@rjhintz
rjhintz / aws_sa_pro_exam.md
Last active October 19, 2021 16:52
Passing AWS Certified Solutions Architect - Professional Exam

Opinionated advice on passing the AWS Certified Solutions Architect - Professional Exam

Current as of: August, 2016

Passing SA Pro:

  • get ACloudGuru 5 certification bundle. (Disclaimer: I have no financial interest in ACloudGuru.)
  • work through Associate courses. Take and pass all Associate exams.
  • work through SA Pro course
  • take the SA Pro Sample exam. Note that answers are provided for version from the Japan site. Download the PDF. The answers are at the end of each question.
  • take SA Pro Practice exam. If you get 75% or higher, just take the SA Pro exam.
@donniebishop
donniebishop / pokestat.py
Last active December 27, 2019 10:51
i3-blocklet for checking Pokemon Go status
#!/usr/bin/env python3
from bs4 import BeautifulSoup
import requests
POKEURL = 'http://cmmcd.com/PokemonGo/'
r = requests.get(POKEURL)
try:
import lxml