Skip to content

Instantly share code, notes, and snippets.

Ștefan Rusu SaltwaterC

Block or report user

Report or block SaltwaterC

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@SaltwaterC
SaltwaterC / rules-both.iptables
Created Apr 4, 2018 — forked from jirutka/rules-both.iptables
Basic iptables template for ordinary servers (both IPv4 and IPv6)
View rules-both.iptables
###############################################################################
# The MIT License
#
# Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@SaltwaterC
SaltwaterC / README.md
Created Jul 28, 2017
Broken docker_service of docker cookbook
View README.md

Taken from:

  • /etc/systemd/system/docker.socket
  • /etc/systemd/system/docker.service

On CentOS 7.3 with docker cookbook 2.15.18.

@SaltwaterC
SaltwaterC / README.md
Last active Aug 2, 2019
OpenWrt support for Netgear WNR1000v2
View README.md

Install

As usual, use it at your own risk. I am not to be held responsible for your actions.

Supported devices: WNR1000v2 (tested by me), WNR1000v2-VC (provided by Comcast for free; tested by Douglas Fraser)

Notice: Upgrade WNR1000v2 to the latest factory firmware: 1.1.2.58. Otherwise, the power LED may not behave properly.

You need to place the device into failsafe mode. For booting into failsafe mode, you need to power up the device while holding the reset button with a pin. The power LED should have an amber colour. Hold the button until it is starting to flash green. It starts to flash green after it flashes the amber LED for six times. After that, the device is in failsafe mode, accepting a firmware via its TFTP server. The device should respond to pings at 192.168.1.1, although the responses may be malformed.

@SaltwaterC
SaltwaterC / patch-shellshock-osx.sh
Created Sep 29, 2014
OS X patch for Shellshock
View patch-shellshock-osx.sh
#!/bin/bash
rm -rf bash-92
curl -s https://opensource.apple.com/tarballs/bash/bash-92.tar.gz -o bash-92.tar.gz
curl -s https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-052 -o bash32-052
curl -s https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-053 -o bash32-053
curl -s https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-054 -o bash32-054
@SaltwaterC
SaltwaterC / Makefile
Last active Aug 29, 2015
Getting some stats for a french roulette game
View Makefile
.PHONY: all
.DEFAULT: all
all:
node roulette.js entropy10000-v1.json black > black-v1.txt
node roulette.js entropy10000-v1.json red > red-v1.txt
node roulette.js entropy10000-v2.json black > black-v2.txt
node roulette.js entropy10000-v2.json red > red-v2.txt
View get_cert.sh
function get_cert()
{
local host="$1"
local port="$2"
if [ -z "$port" ]
then
port="443"
fi
openssl s_client -showcerts -connect $host:$port -servername $host </dev/null 2>/dev/null | openssl x509 -text -noout
@SaltwaterC
SaltwaterC / .gitignore
Last active Aug 29, 2015
A place for dumping my broken libxmljs build
View .gitignore
node_modules/
@SaltwaterC
SaltwaterC / salt1.png
Last active Dec 27, 2015
Memory leak in salt-master issue images
You can’t perform that action at this time.