Skip to content

Instantly share code, notes, and snippets.

View 0xbaha's full-sized avatar
Working from home

Baha 0xbaha

Working from home
View GitHub Profile
@Iridium-IO
Iridium-IO / README.md
Last active January 30, 2024 10:36
Collapsible Markdown Code Blocks

Example Collapsible Content

Style 1

Click to see more:
Given the following python code
from pychartjs import BaseChart

class myChart(BaseChart):
@bmaupin
bmaupin / free-database-hosting.md
Last active July 17, 2025 10:52
Free database hosting
@DerEnderKeks
DerEnderKeks / WebhookTutorial.md
Last active December 4, 2023 20:28
Simple Webhook Tutorial (Twitter -> Discord using IFTTT)

Simple Webhook Tutorial

In this tutorial, I will be explaining how to set up a simple webhook to relay your tweets to a Discord channel.

Step 1 - Register on IFTTT

  1. Go to https://ifttt.com/ and create an account (if you don't already have one).

Step 2 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send Tweets.

  2. In the settings for that channel, find the Webhooks option and create a new webhook.

@iwangu
iwangu / no-coding-assigment.md
Last active September 27, 2021 01:30 — forked from fasiha/no-hackerrank.md
A prospective employer invited me to do a HackerRank test. Here's my proposed alternative.

Hi there! Thanks for offering me a coding assigment test. I see that this can be a useful method to compare different candidates applying for the XYZ-Role. I would like to kindly ask if you have some leeway in finding an alternative way to evaluate my coding skills? I have written a number of open-source projects/spoke at conferences/worked as a coding-teacher/did XYZ and I would love to showcase this to your engineers:

LIST STUFF YOU DID

These are just some projects I picked that demonstrate not just skill in programming but also in math, design and XYZ.

Please can I kindly ask you to check with your engineers and/or the hiring manager to perhaps have a look/conduct a code review and/or ask me to add a feature or resolve a bug?

I checked that ABC is doing a lot of XYZ and I opened a Github issue extra for ABC (LINK TO GITHUB ISSUE). I can program this feature/fix that bug within a given timeframe and then discuss the written code with one of your engineers?

@fasiha
fasiha / no-hackerrank.md
Last active August 7, 2023 11:47
A prospective employer invited me to do a HackerRank test. Here's my proposed alternative.

Well, that was unexpected. In the following, I’m trying to follow Jon Evans’ advice from “The Terrible Technical Interview”.


To: [email protected]
From: Ahmed Fasih
Subject: Re: Programming Test Invitation

Hi there! Thanks for offering to let me take a HackerRank test for ABC, I appreciate the vote of confidence.

Demo:

Spoiler warning

Spoiler text. Note that it's important to have a space after the summary tag. You should be able to write any markdown you want inside the <details> tag... just make sure you close <details> afterward.

console.log("I'm a code block!");
@marcelog
marcelog / ubuntu_install_webcamstudio.sh
Last active September 14, 2020 13:57
Install webcamstudio in Ubuntu to setup a virtual webcam to use as the phone camera in Android Emulator
#!/bin/bash
apt-get install software-properties-common
dpkg -S add-apt-repository
add-apt-repository ppa:webcamstudio/webcamstudio-dailybuilds
apt-get update
apt-get install webcamstudio
modprobe webcamstudio
@Aikhjarto
Aikhjarto / DD_WRT_nvram_tricks.txt
Last active March 30, 2025 02:52
DD-WRT nvram tricks
This file provides some nifty command-line tools around DD-WRT's nvram command.
https://www.dd-wrt.com/wiki/index.php/Hardware#NVRAM
USE WITH CAUTION: fiddling with nvram can wipe your settings and you may loose access to your router.
Hint 1: Different version of DD-WRT might use different nvram variables. Thus, be carefull when updating.
Hint 2: The commands listed below should be issued via a ssh-connection since the webinterface for issuing commands might time out for the longer commands.
Background
==========
Extracting the content of configuration variables with nvram would provide an easy way of selective backup/restore of settings. However, listing the content of the nvram via
nvram show
@joyrexus
joyrexus / README.md
Last active June 12, 2025 20:55
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@alexandrusavin
alexandrusavin / binds_on_mount.sh
Last active March 17, 2025 17:34
Add letsencrypt certificate to dd-wrt web interface
#!/bin/sh
if [ `nvram get https_enable` -gt 0 ] ; then
# get the absolute directory of the executable
SELF_PATH=$(cd -P "$(dirname "$0")" && pwd -P)
echo SELF_PATH: ${SELF_PATH}
# extract the mount path