Skip to content

Instantly share code, notes, and snippets.

View abrenner's full-sized avatar

Adam Brenner abrenner

  • Orange County, CA, USA
  • 13:36 (UTC -07:00)
View GitHub Profile
@abrenner
abrenner / get-all-files-under-specific-folder.sh
Created September 26, 2025 17:02
PowerScale West Coast User Group REST Scripts
curl --location --request GET 'https://adam.vssw.hop.delllabs.net:9200/isi-metadataiq-index.ioflash.04bf1be5f95e87b4fa6512225f9ec530ca70/_search' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic HIDDEN' \
--data '{
"query": {
"bool": {
"must": [
{
"match_phrase_prefix": {
"data.path": "/ifs/midx/"
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <iostream>
#define PAGE_SIZE 4096
int main() {
@abrenner
abrenner / gist:8662912
Created January 28, 2014 05:59
segfault-apache.2.2.26
31703 03:30:35 accept4(5, {sa_family=AF_INET, sin_port=htons(52337), sin_addr=inet_addr("10.10.12.13")}, [16], SOCK_CLOEXEC) = 74
31703 03:30:35 semop(9273349, {{0, 1, SEM_UNDO}}, 1) = 0
31703 03:30:35 getsockname(74, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("10.10.12.13")}, [16]) = 0
31703 03:30:35 fcntl(74, F_GETFL) = 0x2 (flags O_RDWR)
31703 03:30:35 fcntl(74, F_SETFL, O_RDWR|O_NONBLOCK) = 0
31703 03:30:35 read(74, "POST /josh-post-test.php HTTP/1.1\r\nUser-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2\r\nHost: www.example.com\r\nAccept: */*\r\nContent-Length: 17\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\naction=shipnotify", 8000) = 281
31703 03:30:35 open("/dev/urandom", O_RDONLY) = 75
31703 03:30:35 read(75, "\222*\n|\316\325J\207;\220\213\306\340\217\372B\253*\342\373i\5\330\317v*\235\266\374\3m\343n\241\323\347\313\331{i\274%\346\306\347\277~\366\376\20\301\243\237\177\324*_+W\252j\253\242O", 64) = 64
31703
@abrenner
abrenner / run.sh
Created April 25, 2013 17:51
Testing Environment for CS 142A - Compilers - at the University of California, Irvine. Spring 2013
#!/bin/sh
# Testing Environment - CS.142A University of California, Irvine
# ----------------------------------------------------------------------------
# Based off the provided testing environment provided by the TA, this file
# supports testing single test cases along with diff output. Coded provied as
# is.
#
# @author Adam Brenner <aebrenne@uci.edu>
# @version 1.0
# @date 03/2013