Skip to content

Instantly share code, notes, and snippets.

View os555's full-sized avatar

Outhai SAIOUDOM os555

View GitHub Profile
@os555
os555 / docker-compose.yml
Created May 24, 2020 08:44 — forked from narate/docker-compose.yml
Pi-Hole Docker Compose
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
@os555
os555 / ffplay-voov.sh
Created May 24, 2020 08:24 — forked from narate/ffplay-voov.sh
FFPLAY VOOV LIVE
#!/bin/bash
# Usage :
# ./ffplay-voov.sh 'http://www.voovlive.com/voov-web/share/index?room_id=200327322&anchor_id=601157725&lang=en&video_id=100990185'
M3U8=$(echo $1 | python -c 'import sys,re;print("http://5430.liveplay.myqcloud.com/voov/5430%s.m3u8"%re.match(".*video_id=(\d+)",sys.stdin.read()).groups()[0])')
ffplay $M3U8
@os555
os555 / README.md
Created March 11, 2018 03:14 — forked from bsodmike/README.md
OC Nvidia GTX1070s in Ubuntu 16.04LTS for Ethereum mining

Following mining and findings performed on EVGA GeForce GTX 1070 SC GAMING Black Edition Graphics Card cards.

First run nvidia-xconfig --enable-all-gpus then set about editing the xorg.conf file to correctly set the Coolbits option.

# /etc/X11/xorg.conf
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
@os555
os555 / API.txt
Created February 21, 2018 23:21 — forked from ivy/API.txt
Claymore JSON-RPC API documentation (from Claymore v9.6)
EthMan uses raw TCP/IP connections (not HTTP) for remote management and statistics. Optionally, "psw" field is added to requests is the password for remote management is set for miner.
The following commands are available (JSON format):
----------------
REQUEST:
{"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}
RESPONSE:
{"result": ["9.3 - ETH", "21", "182724;51;0", "30502;30457;30297;30481;30479;30505", "0;0;0", "off;off;off;off;off;off", "53;71;57;67;61;72;55;70;59;71;61;70", "eth-eu1.nanopool.org:9999", "0;0;0;0"]}
@os555
os555 / mine
Created February 21, 2018 23:11 — forked from piotr-dobrogost/mine
Set of scripts to manage ethereum miner ethminer.
#!/bin/bash
export DISPLAY=:0
sudo nvidia-smi -pl 108
tmux \
set-option -g remain-on-exit on \; \
new-session -A -s ethminer "mining-oc && ethminer -SP 2 -U -S daggerhashimoto.eu.nicehash.com:3353 -O <address>:<miner>" \; \
split-window "mining-stats" \; \
@os555
os555 / gist:a2aa4872d3696cc1deb2625909e263f7
Created February 12, 2018 06:53 — forked from quirkz/gist:78c0ce7cbcd8977956bbfc3b614da9fc
check claymore mining rig status from python
#!/usr/bin/env python3
import argparse
import socket
import pdb
import json
import time
import RPIO
RPIO.setwarnings(False)
@os555
os555 / slideshare.pl
Created August 28, 2017 04:16
Perl to get remote source from URL and out file by icheernoom https://gist.github.com/os555/4019282654ab41e36137de4024ba3559
use LWP::UserAgent;
if(@ARGV < 2){
print "Usage : filename.pl <slideshare_url> <folder_name>";
exit;
}
$url = $ARGV[0];
$folder = $ARGV[1];
$browser = LWP::UserAgent->new() or die;
$content = $browser->get($url)->content;
@os555
os555 / slideshare.pl
Created August 28, 2017 04:13 — forked from icheernoom/slideshare.pl
Save all slide in slideshare.net to image.
use LWP::UserAgent;
if(@ARGV < 2){
print "Usage : filename.pl <slideshare_url> <folder_name>";
exit;
}
$url = $ARGV[0];
$folder = $ARGV[1];
$browser = LWP::UserAgent->new() or die;
$content = $browser->get($url)->content;
@os555
os555 / smfspamposter.pl
Created August 28, 2017 04:10
THis Perl to Get Photo from remote site and post to SMF Forum board forked from https://gist.github.com/icheernoom/8115003
use LWP::UserAgent;
use HTTP::Cookies;
$user='admin';
$password='1234';
$target = 'http://localhost/smf2/';
$ua = LWP::UserAgent->new() or die;
$cookie_jarr = HTTP::Cookies->new();
$ua->cookie_jar( $cookie_jarr );
$resr = $ua->post($target.'index.php?action=login2',
@os555
os555 / server.py
Created August 28, 2017 04:08
sql-injection for POC on Python
from bottle import route, run, request
import MySQLdb
# connect
db = MySQLdb.connect(host="localhost", user="root", passwd="password", db="testing")
cursor = db.cursor()
@route('/users')
def hello():