Skip to content

Instantly share code, notes, and snippets.

View obar1's full-sized avatar
🏠
Working from home

mar10 obar1

🏠
Working from home
View GitHub Profile
@xterat
xterat / Compile-Hadoop-2.8.md
Last active October 8, 2018 12:08
Compile Hadoop-2.8

Compile Hadoop-2.8 on Ubuntu 16.04

  1. Install some dependencies:

    sudo apt -y install gcc*
    sudo apt -y install cmake
    sudo apt -y install glibc-headers
    sudo apt -y install gcc-c++
    sudo apt -y install zip-devel
@richiefrost
richiefrost / AzureDatalakeDemo.py
Created September 10, 2019 17:01
Pandas read_csv from Azure Data Lake with interactive login
from azure.datalake.store import core, lib, multithread
import pandas as pd
class ADLSHelper:
def __init__(self, store_name='mystorename'):
"""
When initializing this helper, it will prompt you to do an interactive login to connect to your data lake store.
It uses Azure Active Directory for authentication, and you use the token returned from
your login process to connect to your Azure Data Lake instance.
You can also authenticate with username/password or ServicePrincipal for production.
@davidteren
davidteren / nerd_fonts.md
Last active December 4, 2025 07:16
Install Nerd Fonts via Homebrew [updated & fixed]
#!/usr/bin/env bash
# This script clones all repos in a GitHub org
# It requires the GH CLI: https://cli.github.com
# It can be re-run to collect new repos and pull the latest changes
set -euo pipefail
USAGE="Usage: gh-clone-org <user|org>"
@Vlasterx
Vlasterx / delete-linkedin-posts.js
Last active March 12, 2025 08:33
Delete all LinkedIn posts version for June 2021.
(() => {
let speedMs = 500
setInterval(() => {
let dropdown = document.querySelector('.feed-shared-update-v2__control-menu .artdeco-dropdown button')
dropdown.click()
setTimeout(() => {
let optionDel = dropdown.parentElement.parentElement.parentElement.querySelector('.option-delete .tap-target')
#!/usr/bin/env bash
# This script clones all repos in a GitHub org
# It requires the GH CLI: https://cli.github.com
set -euo pipefail
USAGE="Usage: gh-clone-org <user|org>"
[[ $# -eq 0 ]] && echo >&2 "missing arguments: ${USAGE}" && exit 1
@obar1
obar1 / drop-wsl2-Identifier.sh
Last active June 26, 2024 13:25
drop Identifier
find . -name "*.Identifier" -type f -print0 | xargs -0 rm
@obar1
obar1 / rebase_with_git.md
Created September 17, 2025 10:39
rebase_with_git
export MY_BRANCH=feat/DC1121-7769

git switch $MY_BRANCH

if [ "$(git branch --show-current)" = "$MY_BRANCH" ]; then
  echo "✅ You are on branch: $MY_BRANCH"
else
@obar1
obar1 / ka.sh
Created September 27, 2025 11:30
keep alive girthub codespace
#!/bin/bash
# Interval in seconds (e.g., 300 = 5 minutes)
INTERVAL=300
echo "Keeping Codespace alive. Press [CTRL+C] to stop."
while true; do
echo "Ping at $(date)" > /tmp/keepalive.txt
sleep $INTERVAL