This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: [email protected] | |
# ====================================================================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 '^#' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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="$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <LiquidCrystal.h> | |
String Line1; | |
String Line2; | |
LiquidCrystal lcd(7, 8, 9, 10, 11, 12); | |
void lcdPrint(String lcdText) { | |
lcd.clear(); | |
Line1 = Line2; | |
lcd.setCursor(0, 0); | |
lcd.print(Line1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
Serial.begin(9600); | |
// Wait for the users to turn on the serial monitor and press the enter key to continue. | |
while (!Serial.available()) { | |
; // Wait for enter key; | |
} | |
// put your setup code here, to run once: | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object_list_length = len(ObjectList) | |
for i, object in enumerate(ObjectList): | |
percentage = int(((i + 1) * 100 / object_list_length)) | |
percent_str = "" | |
for k in range(0, int(percentage / 5)): | |
percent_str += ":" | |
sys.stdout.write("\r%s -- %s | %s %% %s " % (str(i + 1), | |
str(object_list_length), | |
str(percentage), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/www/*/*/logs/*.log | |
{ | |
olddir old_logs | |
daily | |
rotate 365 | |
dateext | |
nocreate | |
copytruncate | |
missingok | |
delaycompress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Developen on: Python 2.7.13 | |
""" | |
__author__ = 'Sencer Hamarat' | |
__license__ = "Creative Commons Attribution-ShareAlike 3.0 Unported License" | |
__version__ = "1.3" | |
__maintainer__ = "Sencer Hamarat" | |
__status__ = "Production" |
OlderNewer