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 / 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 / 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 / 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 / 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
@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 / 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 / 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 / Windows-10-custom-theme-fix-color-after-login.md
Created April 14, 2020 07:21
Fix for custom theme color issue after logged in windows

If you install custom theme on your system you might suffer from each login for the re appliying your theme.
To fixing delete Default Colors folder on HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\ path on regedit. Now I hope you not able to get same issue on your computer.

@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 / Fix-Screen-Permission-Issue-on-Windows10-WSL.md
Created April 18, 2020 13:50
Fix "Cannot make directory '/run/screen': Permission denied" error

I applied permission to /run/screen folder but every restart requires this fix. So I change the SCREENDIR to home folder. To fix for all users at WSL run below command.

echo 'export SCREENDIR="$HOME/.screen"'

if you start screen outside of bash like command line or scheduled task run with environment variables.

C:\Users\ahmet&gt;bash -c 'SCREENDIR=$HOME/.screen screen'