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
git fetch --all | |
git reset --hard origin/master | |
git pull origin master |
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
version: '3.3' | |
services: | |
asterisk: | |
restart: always | |
image: vanokg/asterisk:16 | |
container_name: asterisk | |
hostname: asterisk | |
depends_on: |
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
FROM centos:latest | |
RUN yum update -y && \ | |
yum install -y epel-release && rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro && rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm && \ | |
yum install git kernel-headers gcc gcc-c++ cpp ncurses ncurses-devel libxml2 libxml2-devel sqlite sqlite-devel openssl openssl-devel newt-devel kernel-devel unixODBC-devel unixODBC libsrtp libsrtp-devel \ | |
libuuid-devel net-snmp-devel xinetd tar jansson-devel make bzip2 gettext patch wget libtool-ltdl libtool-ltdl-devel python-devel ffmpeg ffmpeg-devel python-pip postgresql-odbc postgresql-devel speex-devel -y | |
WORKDIR /tmp | |
# Download asterisk. |
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
[bar/i3wmthemer_bar] | |
width = 100% | |
height = 25 | |
radius = 0 | |
fixed-center = true | |
background = #1e1e20 | |
foreground = #c5c8c6 | |
line-size = 3 |
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
set $mod Mod1 | |
#set $mod Mod4 | |
new_window pixel 1 | |
new_float normal | |
hide_edge_borders none | |
bindsym $mod+u border none | |
bindsym $mod+y border pixel 1 |
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
for i in `egrep -i "semrushbot|mj12bot|ahrefsbot" /var/log/nginx/*access.log |awk '{print $1}' |sort |uniq|awk -F':' '{print $2}'` ; do iptables -A INPUT -s $i -j DROP ; done |
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
find . -type d -empty -print | |
find . -type d -empty -delete |
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
watch "ps aux | sort -nrk 3,3 | head -n 10" |
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
# cat cpuinfo_unix_com | |
#!/bin/bash | |
# ygemici @unix.com | |
## Script Tested Systems ; Redhat 3-4-5,Fedora 6,15 ; OpenSuse 12,Centos 6,Ubuntu 10 ( !! on VIRTUAL PLATFORMS !! ) | |
## Script not tested Debian platforms!! | |
## REDHAT 5-6 && SMBIOS 2.7 && has newer bios systems shows the THREAD/CORE Counts via 'dmidecode' ## | |
## Script does not use 'lscpu' for that there is not in the system default installion but tries to the lshw for get the some informations | |
## Please feedback to me for wrong results or missing properties on the which you tested systems | |
## may we can achieve more accurate results to improve this script |
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
tcpdump -i eth1 -s 1500 port not 22 |
NewerOlder