Skip to content

Instantly share code, notes, and snippets.

View askin's full-sized avatar

Aşkın Özgür askin

View GitHub Profile
@askin
askin / evdev.xml
Last active August 27, 2022 21:10
İngilizce klavye düzenine Türkçe karakterler ekleme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xkbConfigRegistry SYSTEM "xkb.dtd">
<xkbConfigRegistry version="1.1">
<modelList>
<model>
<configItem>
<name>pc86</name>
<description>Generic 86-key PC</description>
<vendor>Generic</vendor>
</configItem>
@askin
askin / web-servers.md
Created February 19, 2020 18:37 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000

Keybase proof

I hereby claim:

  • I am askin on github.
  • I am askinozgur (https://keybase.io/askinozgur) on keybase.
  • I have a public key ASApv196bavaoz3U_v8J-YML2vGVRTorxzTMqk91Igx7UQo

To claim this, I am signing this object:

@askin
askin / sslcheck-expiry.sh
Last active October 3, 2019 08:32
Check SSL certificate expiry date for a domain
#!/bin/bash
# Simple SSL cert days-till-expiry check script
# by Askin Ozgur https://blog.yollu.com askin@askin.ws
# Derived from Glen Scott, www.glenscott.net
PORT=443
if [ ${#} == 2 ]; then
DOMAIN=$1
PORT=$2
elif [ ${#} == 1 ]; then
@askin
askin / lcd.c
Created September 18, 2012 14:32
Linux Parallel Port LCD
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <asm/io.h>
#define PORTADDRESS 0x378 /* Enter Your Port Address Here */
#define DATA PORTADDRESS+0
#define STATUS PORTADDRESS+1
@askin
askin / udp-server.c
Created August 3, 2012 12:25
UDP Server - Client
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#define MY_PORT 3333
int main(int argc, char *argv[])
{