This file contains 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 | |
# This is a script to remove old GitHub Actions workflow runs for a given workflow path | |
# It is helpful for cleaning up old workflow runs after you renamed the workflow | |
org=<ORGANIZATION-NAME> | |
repo=<REPOSITORY-NAME> | |
workflow_path=".github/workflows/<OLD_WORKFLOW_NAME>" | |
# Get workflow IDs with path = $path_workflow | |
workflow_ids=($(gh api repos/$org/$repo/actions/workflows --paginate | jq '.workflows[] | select(.path == '\"$workflow_path\"') | .id')) |
This file contains 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_TO_CODEBASE: The path to the codebase you want to lint. Don't use relative paths. | |
# PATH_TO_LINT_RULES: The path to the lint rules you want to use. Don't use relative paths. | |
# OPTIONS: | |
# -i enters the super-linter container | |
# Example: ./super-linter.sh /path/to/codebase/to/be/check /path/to/.github/workflows from the root of the repo | |
PATH_TO_CODEBASE=$(realpath "$1") |
This file contains 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
# Directories | |
WORKDIR ?= $(CURDIR) | |
TESTDIR ?= $(WORKDIR)/tests | |
DISTDIR ?= $(WORKDIR)/dist | |
PROJECT_NAME ?= project-name | |
# Arguments | |
REGISTRY ?= REGISTRY_NAME | |
ORG ?= ORG_NAME | |
REPO ?= REPO_NAME |
This file contains 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
from pwn import * | |
from ctypes import * | |
import time | |
import sys | |
def generate_random_number(): | |
LIBC_CODE.srand(int(time.time())) | |
rand_number = LIBC_CODE.rand() | |
rand_number |= LIBC_CODE.rand() << 32 | |
return rand_number |
This file contains 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 | |
script_name=$0 | |
# Function for helping with usage | |
function usage | |
{ | |
echo "Usage: $script_name -f arg_1 -s arg_2 -t arg_3" | |
echo "" | |
echo " -f | --first_arg : First argument(Mandatory)" |
This file contains 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
wtf: | |
colors: | |
border: | |
focusable: darkslateblue | |
focused: orange | |
normal: gray | |
grid: | |
columns: [32, 32, 32, 32, 90] | |
rows: [10, 10, 10, 4, 4, 90] | |
refreshInterval: 1 |
This file contains 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
.PHONY: all clean | |
all: shellcode.bin | |
shellcode.bin: shellcode.asm | |
nasm -o $@ $^ | |
print: shellcode.bin | |
@hexdump -v -e '"\\" 1/1 "x%02x"' $^ ; echo |