Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE OverloadedStrings #-} | |
| module Main where | |
| import Data.Map.Strict (Map) | |
| import qualified Data.Map.Strict as M | |
| import Control.Monad | |
| import Data.Coerce | |
| import Data.List | |
| import Data.Maybe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .game | |
| header | |
| h1 | |
| a href="https://www.powerlanguage.co.uk/wordle/" target="_blank" WORDLE | |
| span | |
| a href="https://xstate.js.org" target="_blank" XSTATE | |
| section.input | |
| - for square in (1..(5*6)) | |
| .stateful id="square-#{square}" | |
| section.restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import os | |
| import os.path | |
| import sys | |
| import json | |
| import math | |
| print("Collecting files...") | |
| files = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Hi All! | |
| I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future. | |
| Feel free to request any features you'd like to see, and I'll prioritize them accordingly. | |
| One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it. | |
| Here's the link to the repository: https://github.com/Pulimet/ADBugger | |
| App Description: | |
| ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| with open('samples.bin', 'rb') as f: | |
| raw_data = np.fromfile(f, dtype=np.uint8) | |
| iq_data = raw_data.astype(np.float32) - 127.5 | |
| iq_data /= 127.5 | |
| i_data = iq_data[0::2] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Retrieved from https://stackoverflow.com/a/35512445/11944425 | |
| # solution provider Brad Parks https://stackoverflow.com/users/26510/brad-parks | |
| function show_help() | |
| { | |
| ME=$(basename "$0") | |
| IT=$(cat <<EOF | |
| Returns a ternary result |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Path: /usr/bin/swap | |
| function swap() { | |
| if [ ! -f "$1" ] || [ ! -f "$2" ]; then return 1; fi | |
| TMPFILE=/dev/shm/tmp.$$ | |
| dd if="$1" of=$TMPFILE status=none bs=512K && \ | |
| dd if="$2" of="$1" status=none bs=512K && \ | |
| dd if=$TMPFILE of="$2" status=none bs=512K && \ | |
| ( \ | |
| if [ $? -ne 1 ]; then true; else unlink $TMPFILE && unset $TMPFILE; return 1; fi; \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Tools to write: | |
| - `require`: POSIX shell command line tool that evaluates a $1 input and checks that the supplied string is a callable binary given the inherited $PATH from the parent process, otherwise checks if the parent process's shell exposes the name as a builtin function. | |
| - ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | |
| # SYMLINK_DIR= | |
| if [ "$( env | grep -Ec "^SYMLINK_DIR=" )" -ne 1 ]; then | |
| echo "SYMLINK_DIR is not set" | |
| echo "Defaulting to $SCRIPT_DIR" | |
| SYMLINK_DIR=$SCRIPT_DIR |
NewerOlder
