Skip to content

Instantly share code, notes, and snippets.

View RecNes's full-sized avatar
🎯
Focusing

Sencer H. RecNes

🎯
Focusing
View GitHub Profile
@RecNes
RecNes / kill_the_snake.sh
Last active July 24, 2020 14:30
Shell script to use for kill all python scripts.
#!/usr/bin/env bash
# title : kill_pyhton.sh
# description : This script to use for kill python scripts.
# author : Sencer HAMARAT "sencerhamarat(at)gmail.com"
# date : 20160202
# version : 0.1
# command : bash kill_pyhton.sh
# bash_version : 4.3.11(1)-release
# =============================================================================
ARGS="$@"
@RecNes
RecNes / netextender
Created September 19, 2016 13:50
upstart init.d script for running Dell SonicWALL NetExtender as a service. Script should be in /etc/init.d/netextender Configuration goes in /etc/default/netextender Than run: sudo update-rc.d netextender defaults
#!/bin/sh
# defaults for NetExtender Dell VPN Client
# sourced by /etc/init.d/netextender
# should be placed in /etc/default/netextender
# Enable or disable the daemon
ENABLE_DAEMON=1
# Path to daemon
DAEMON=/usr/sbin/netExtender
@RecNes
RecNes / getBlockLists.sh
Created September 14, 2016 10:53 — forked from johntyree/getBlockLists.sh
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
@RecNes
RecNes / rotater.py
Created September 8, 2016 11:34
Make backup and rotate files.
#!/bin/env ptyhon
# -*- coding: utf-8 -*-
# ======================================================================================================================
# Rotater
# This script make backup in tar.gz format and remove files in target folder older
# than today and builds a report file in where this script file path is.
# Set this script as daily cronjob at midnight.
# Author: Sencer HAMARAT
# E-Mail: sencerhamarat@gmail.com
# ======================================================================================================================
@RecNes
RecNes / ram_usage.sh
Last active June 20, 2018 08:40
This script will displays or sends email for RAM usage statistics of python scripts
#!/usr/bin/env sh
#title : ram_usage.sh
#description : Shell script for displaying RAM and Thread statistics of python scripts.
#author : Sencer HAMARAT "sencerhamarat(at)gmail.com"
#date : 20161014
#version : 0.4
#usage : sh ram_usage.sh
#==============================================================================
#!/usr/bin/env bash
SERVERNAME=$(hostname -f)