Skip to content

Instantly share code, notes, and snippets.

View ceylanb's full-sized avatar
🎯
Focusing

Ceylan Bozoğullarından ceylanb

🎯
Focusing
View GitHub Profile
@ceylanb
ceylanb / pretty-csv.sh
Created October 4, 2023 14:22
Pretty CSV MacOS
function pretty_csv {
perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' "$@" | column -t -s, | less -F -S -X -K
}
@ceylanb
ceylanb / tports
Created September 28, 2023 07:26
#!/usr/bin/env sh
# Help message function
print_help() {
echo "Usage: $0 <TYPE> <NUM> <SEP>"
echo " TYPE: Port type to filter (e.g. udp, tcp)"
echo " NUM: Number of results to retrieve"
echo " SEP: Seperator (e.g. , or .)"
}
from flask import Flask, request, send_from_directory
import urllib.parse
import logging
log = logging.getLogger('werkzeug')
log.setLevel(logging.ERROR)
app = Flask(__name__)
@app.route("/")
def hello_world():
alert('PoC by Ceylan B.');
@ceylanb
ceylanb / network
Last active January 30, 2022 21:33
sudo /usr/lib/vmware/bin/vmware-netcfg
su
ifconfig eth0 10.152.152.12 netmask 255.255.192.0
ip rule add from all lookup main pref 0
busybox route add default gw 10.152.152.10
ndc resolver setnetdns 100 localdomain 10.152.152.10
let mapleader =","
call plug#begin('~/.config/nvim/plugged')
Plug 'tpope/vim-surround'
Plug 'scrooloose/nerdtree'
Plug 'junegunn/goyo.vim'
Plug 'PotatoesMaster/i3-vim-syntax'
Plug 'jreybert/vimagit'
Plug 'LukeSmithxyz/vimling'
Plug 'vimwiki/vimwiki'
@ceylanb
ceylanb / hacker-radiio
Created December 11, 2019 06:18 — forked from jars/hacker-radiio
Music For Hackers
Music For Hackers
==
To a hacker, there's something distracting about booting up a GUI to listen to your tunes. You live your life in the terminal, you treat the mouse like a high voltage tap.
So give these commands a run in the terminal, and toss on your headphones.
sudo apt-get install mplayer
echo "alias defcon-start='nohup mplayer http://sfstream1.somafm.com:6200 > /dev/null 1>&2 &'" >> ~/.bashrc
echo "alias defcon-stop='killall -9 mplayer'" >> ~/.bashrc
@ceylanb
ceylanb / <b>music-with-c" %3C
Last active October 28, 2019 21:18
"aasd<b>aa
echo "main(i){for(i=0;;i++)putchar(((i*(i>>3|i>>11)&43&i>>8))^(i&i>>12|i>>4));}" | gcc -x c - && ./a.out | aplay
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ERÜ | Bilgisayar Mühendisliği Bölümü - Anasayfa</title>
<meta name="description" content="Erciyes Üniversitesi Bilgisayar Mühendisliği Bölümü resmi web sitesidir. Misyonunu akademik mükemmeliyet ve Bilgisayar Mühendisliği’nde öncülük çerçevesi içinde değerlendirmektedir. Bu çerçeve içinde Bilgisayar Mühendisliği Bölümü’nün misyonu, odak noktasında öğrenci olan, ilkeleri ortak, hedefler konusunda hemfikir, yeniliklere açık, karşılıklı sevgi ve saygıya duyarlı aynı zamanda sosyal sorumluluk taşıyan karakterlere sahip akademik bir toplulukta bilişim bilgisinin toplanması, geliştirilmesi ve aktarılmasıdır. ">
<meta name="keywords" content="ERÜ, BM, Bilgisayar Mühendisliği, Erciyes Üniversitesi, Kayseri, Türkiye, Bilgisayar, Yazılım, Test, Bilim, Mühendislik, Mühendisliği, Erciyes, Üniversite, Üniversitesi">
<meta name="language" content="Turkish" /
@ceylanb
ceylanb / alexaTurkey40000.csv
Created April 2, 2019 14:43
Alexa Türkiye ilk 40000
We can't make this file beautiful and searchable because it's too large.
google.com
youtube.com
google.com.tr
facebook.com
sahibinden.com
ensonhaber.com
kizlarsoruyor.com
memurlar.net
live.com
n11.com