Skip to content

Instantly share code, notes, and snippets.

View ahmetozer's full-sized avatar
🖐️
Hi , thank you for visiting.

Ahmet ÖZER ahmetozer

🖐️
Hi , thank you for visiting.
View GitHub Profile
@ahmetozer
ahmetozer / gist:5ae6206816e390bc1fbd27aa4629dec3
Created July 5, 2018 16:17
IPv6 not enabled websites | IPv6 Desteklemeyen Siteler
https://github.com https://github.ahmetozer.org
https://wordpress.org https://wordpress-org.ahmetozer.org/
@ahmetozer
ahmetozer / Discord-Delete-Message.md
Last active November 15, 2018 23:34
Delete all messages from Discord channel
title
Discord Delete Message

Sometimes we may need to delete messages for any reason. In such cases, you can delete your messages on discord channels with the help of the AutoHotKey application, without using any add-on boots. It is very simple as the application actually does. The application will send you a request to delete manually, imitating mause and keyboard on your place.

Download AHK.exe

@ahmetozer
ahmetozer / docker-windows-route.cmd
Last active January 28, 2020 21:21
access docker container ip on windows
route add 172.17.0.0 mask 255.255.255.0 10.0.75.2
@ahmetozer
ahmetozer / connection_check.sh
Last active March 31, 2020 07:03
basic connection check
#!/bin/bash
connection_stat="unknown"
logfile=$(pwd)/connection_check.log
connected() {
if [ ! "$connection_stat" == "connected" ]
then
connection_stat="connected"
date=$(date)
echo "Connected at $date"
@ahmetozer
ahmetozer / Twitter ask me float website.html
Last active April 2, 2020 19:26
Twitter ask me float for websites. We are used in nginx to add ask me button.
<div class="askmefloattext"> <i class="bb-icon bb-ui-icon-twitter"></i> Ask me ? </div>
<script async="" src="https://platform.twitter.com/widgets.js" charset="utf-8" type="text/javascript"></script>
<style>.askmefloat{z-index: 50;position:fixed;width:150px;height:40px;bottom:10px;left:10px; line-height: 40px;background-color:#3BA9EE;color:#FFF;border-radius:5px;text-align:center; font-size:19px; text-decoration: none; vertical-align: middle;}.askmefloattext{height: 40px; line-height: 40px; text-align: center; font-family:Verdana, Geneva, sans-serif;}</style>
@ahmetozer
ahmetozer / Dockerfile
Created April 6, 2020 18:43
Ookla Speed Test on Fedora Docker Container
FROM fedora
RUN curl https://bintray.com/ookla/rhel/rpm > /etc/yum.repos.d/bintray-ookla-rhel.repo; yum install speedtest -y ; yum clean all
ENTRYPOINT ["/usr/bin/speedtest"]
@ahmetozer
ahmetozer / cloudflare-check.sh
Created April 15, 2020 16:30
Check and Notify Cloudflare Dash Status
#!/bin/bash
while true
do
curl https://dash.cloudflare.com --max-time 1 -I && SUCCESS_COUNT=1 || SUCCESS_COUNT=0
if [ "$SUCCESS_COUNT" -gt 9 ]
then
for i in {1..10}
do
echo -e "\a"
sleep 0.3
@ahmetozer
ahmetozer / alias.sh
Created April 18, 2020 14:12
My aliases for build env
git_profile_url='github.com/AhmetOZER'
alias gocker='docker run -it --rm -v $(pwd):/go/src/$git_profile_url/golang/$(basename $(pwd)) golang'
@ahmetozer
ahmetozer / docker.profile
Created April 18, 2020 15:06
Container bash profile.
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
# To use --mount type=bind,source=/root/docker.profile,target=/root/.bashrc,readonly argument on your docker run command
if [ "${PS1-}" ]; then
if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
# The file bash.bashrc already sets the default PS1.
# PS1='\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
@ahmetozer
ahmetozer / dockeripv6.sh
Last active April 19, 2020 00:41
IPv6 docker with not routed network block
#!/bin/bash
if [ ! -z $2 ]
then
netname=$2
fi
if [ ! -z $3 ]
then
netdev=$3