Skip to content

Instantly share code, notes, and snippets.

@SuperSpyTX
SuperSpyTX / Sonatype-Stupidity.md
Last active June 18, 2021 03:01
Fix a stupid bug in sonatype nexus 3

Fixes a IP exposure problem. https://issues.sonatype.org/browse/NEXUS-20956

Use the above code in the server or location block of choice and it should hide the IP address.

Side effect of this at the moment is that all responses will be chunked and the header Transfer-Encoding chunked will be set.

Requires OpenResty or nginx lua module + dependencies.

@SuperSpyTX
SuperSpyTX / keybase.md
Created February 25, 2020 06:52
Keybase proof

Keybase proof

I hereby claim:

  • I am superspytx on github.
  • I am sspx (https://keybase.io/sspx) on keybase.
  • I have a public key ASA-SeYGK9tLY-rOeHi5zzeFKZcakYi483S1x0V8Sk8Fxwo

To claim this, I am signing this object:

@SuperSpyTX
SuperSpyTX / README.md
Last active February 20, 2022 12:10
42 Norminette linter for ALE.

Norminette Linter for ALE (Asynchronous Linting Engine)

https://github.com/w0rp/ale

Installation

Install this in your ale plugin directory (For Vundle + NeoVim that may be ~/.config/nvim/bundle/ale/ale_linters/c/norminette.vim)

You will of course, need the norminette ruby gem in your PATH. gem install --user --pre norminette

@SuperSpyTX
SuperSpyTX / trace.txt
Created August 26, 2017 14:54
Libft Trace
= Host-specific information ====================================================
$> hostname; uname -msr
e1z2r9p40.42.us.org
Darwin 15.6.0 x86_64
$> date
Sat Aug 26 04:19:27 PDT 2017
$> gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin15.6.0
@SuperSpyTX
SuperSpyTX / Makefile.m4
Last active July 31, 2017 21:20
New Makefile Automation
#* ************************************************************************** */
#* */
#* ::: :::::::: */
#* Makefile :+: :+: :+: */
#* +:+ +:+ +:+ */
#* By: jkrause <jkrause@student.42.us.org> +#+ +:+ +#+ */
#* +#+#+#+#+#+ +#+ */
#* Created: 2017/04/18 03:42:42 by jkrause #+# #+# */
#* Updated: 2017/06/11 02:45:14 by jkrause ### ########.fr */
#* */
@SuperSpyTX
SuperSpyTX / 19_shapes_2
Created July 6, 2017 23:43
Fillit tests
.###
...#
....
....
.###
..#.
....
....
@SuperSpyTX
SuperSpyTX / Makefile.m4
Created July 6, 2017 22:21
Makefile Template
#* ************************************************************************** */
#* */
#* ::: :::::::: */
#* Makefile :+: :+: :+: */
#* +:+ +:+ +:+ */
#* By: jkrause <jkrause@student.42.us.org> +#+ +:+ +#+ */
#* +#+#+#+#+#+ +#+ */
#* Created: 2017/04/18 03:42:42 by jkrause #+# #+# */
#* Updated: 2017/06/11 02:45:14 by jkrause ### ########.fr *#
#* */
@SuperSpyTX
SuperSpyTX / README.md
Last active July 17, 2017 03:50
Take your homebrew applications with you on any lab computer

Have this code handy in your PATH or somewhere (you can save this as brewinstall):

#!/bin/bash
if [ ! -e '$HOME/goinfre' ] ; then
    mkdir /goinfre/$(whoami)
fi
if [ ! -d '$HOME/goinfre/brew/bin' ] ; then
    git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew
    brew update
fi
@SuperSpyTX
SuperSpyTX / tester
Last active April 27, 2017 08:03
BSQ Trainer BETA
#!/bin/sh
echo "BSQ Trainer v0.1 - by jkrause"
rm -f t1 t2 test2
echo "" > t1
echo "" > t2
CMD=""
while [[ ! $(diff t1 t2) ]];
do
python trainer.py $1 > test2
./bsq_ref test2 > t1
@SuperSpyTX
SuperSpyTX / .aREADME.md
Last active January 13, 2018 23:39
42 Piscine: .gitignore