Skip to content

Instantly share code, notes, and snippets.

View fearblackcat's full-sized avatar
💭
I may be slow to respond.

Steven Russell fearblackcat

💭
I may be slow to respond.
  • Norfolk
View GitHub Profile
@fearblackcat
fearblackcat / install-elasticsearch-centos.sh
Created November 5, 2015 14:20 — forked from ondrej-kvasnovsky/install-elasticsearch-centos.sh
Commands for ElasticSearch installation on CentOS 6.4
# install missing libraries (if any)
cd ~
sudo yum update
yum install java-1.7.0-openjdk.x86_64
yum install unzip
yum install mc
yum install wget
yum install curl
# get and unpack elasticsearch zip file
@fearblackcat
fearblackcat / gist:eaef2b7eb5a11b9e73fc
Created March 4, 2016 10:58 — forked from berlinbrown/gist:4583728
Simplest Possible Web Crawler with C++
//============================================================================
// Name : OctaneCrawler.cpp
// Author : Berlin Brown (berlin dot brown at gmail.com)
// Version :
// Copyright : Copyright Berlin Brown 2012-2013
// License : BSD
// Description : This is the simplest possible web crawler in C++
// Uses boost_regex and boost_algorithm
//============================================================================
@fearblackcat
fearblackcat / VideoStream.php
Created March 28, 2016 15:59 — forked from ranacseruet/VideoStream.php
PHP VideoStream class for HTML5 video streaming
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";
@fearblackcat
fearblackcat / proxy_for_terminal.md
Last active November 13, 2024 04:57
Set proxy for terminal on mac

Shadowsocks Proxy

apt-get install python-pip
pip install shadowsocks

sudo ssserver -p 443 -k password -m aes-256-cfb --user nobody -d start
@fearblackcat
fearblackcat / proxychains4.md
Last active October 4, 2017 12:05
Use shadowsocks with command line

First, set up shadowsocks as usual. Suppose your local is running on 127.0.0.1:1080.

Install proxychains.

On Debian/Ubuntu:

apt-get install proxychains On Mac OS X:

brew install proxychains-ng

Ref: https://gist.github.com/vertexclique/9839383

For 3143 build 2017.09.14

VERSION PLATFORM OFFSET ORIGINAL CRACKED
3143 macOS 0x65D4 55 C3
3143   macOS   0x6219 55       C3    
3143 macOS   0x75214 55 48 89 E5 41 57 41 56 48 C7 C0 01 00 00 00 C3
@fearblackcat
fearblackcat / checkpasword.md
Last active November 14, 2023 03:25
password check in golang
package main

import (
        "fmt"
        "unicode"
)

func validPassword(s string) error {
next:
@fearblackcat
fearblackcat / iptables.md
Last active September 2, 2021 03:23
firewalld for in public allow

Lookup the open port:

iptables -L -n

Add new open port:

//open 8080 port
iptables -I IN_public_allow -p tcp --dport 8080 -j ACCEPT
@fearblackcat
fearblackcat / tree.md
Last active April 15, 2021 22:49
traverse the binary tree through golang
@fearblackcat
fearblackcat / go-hijacker.md
Last active May 30, 2018 06:40
http go request for hijacker

For http hijacker

package main

import (
  "crypto/tls"
  "fmt"
  "net"
  "net/http"
  "net/http/httputil"