Skip to content

Instantly share code, notes, and snippets.

View molcay's full-sized avatar

M. Olcay Tercanlı molcay

View GitHub Profile
@molcay
molcay / create_ap.md
Last active November 29, 2019 06:40
The basic installation script with dependencies for 'create_ap'

Install create_ap

Basic installation script for create_ap

Usage (Script):

  1. Save the install_create_ap.sh file in your system (for example /home folder).
  • Give the execute permission to the file:
    • chmod +x install_create_ap.sh
  • Run the script:
  • ./install_create_ap.sh
@molcay
molcay / install_themes.sh
Created November 25, 2016 12:30
Themes from Noobslab.com
#!/bin/bash
sudo add-apt-repository ppa:noobslab/themes
sudo add-apt-repository ppa:noobslab/icons
sudo add-apt-repository ppa:ravefinity-project/ppa
sudo add-apt-repository ppa:snwh/pulp
sudo apt-get update
sudo apt-get install humanitary-gtk-theme
sudo apt-get install humanitary-icon-theme
@molcay
molcay / Dna2Protein.pl
Last active May 6, 2019 15:49
Perl Notes
my $DNA = <STDIN>;
chomp $DNA;
$protein = myfunc2($DNA);
print "Protein Sequence:\n";
print($protein, "\n");
sub myfunc2 {
my %aacode = (
TTT => "F", TTC => "F", TTA => "L", TTG => "L",
@molcay
molcay / Linux CLI Commands.md
Last active August 24, 2024 20:01
Linux Commands
  • cat: concatenate files and print on the standard output
    • cat > a.txt: start a file creation
    • cat a.txt: show file content
    • cat a.txt b.txt: show files content respectively
    • cat a.txt b.txt > c.txt: create a file which contains a.txt and b.txt
  • chmod: change file mode bits
    • chmod +x a.txt: All users and groups have the execute permission
    • chmod $u$g$o a.txt: Give specific user permission
      • $u -> current user permission number
      • $g -> current user's group permission number
@molcay
molcay / Javascript Notes.md
Last active November 21, 2016 09:13
Javascript Notes

This gist is about Javascript perpective from Programming Language Consept.

@molcay
molcay / Python Notes.md
Last active November 21, 2016 09:12
Python Notes

This gist is about Python perpective from Programming Language Consept.

@molcay
molcay / Assignment4.md
Last active November 13, 2016 22:22
CENG 4541 Advanced Computer Network Course Assignment 4 Codes
  • Topology drawn
  • Subnetting

to set up VTP Server and Clients

  • In SW2 (vtp server):
     enable
     conf t
     vtp mode server
    
@molcay
molcay / Network Notları.txt
Last active October 13, 2021 06:40
Computer Network Course: Cisco Packet Tracer
Network Setup !!!!! kaydetmek için -> copy running-config startup-config -> komutunu yazmayý unutma !!!!!
Router> -> exec modunu temsil eder
Router>enable
Router# -> privilage_exec modunu temsil eder
Router# configure terminal
Router(config)# -> global configure modunu temsil eder
Router(config)#hostname R1 -> router in adýný deðiþtirmeye yarar
R1(config)#line vty 0 4 -> bu satýr telnet de maksimum 5 baðlantýya izin verir
R1(config-line)#password YENI_PAROLA -> YENI_PAROLA diye bi parola belirlemeye yarar. (telnet connection için)
R1(config-line)#login -> login olma yeteneði kazandýrmak için
@molcay
molcay / get_file_list.py
Last active November 21, 2016 08:23
This script can list all files and subfolders. Actually, 'du -h' command do the jobs the other part includes timestamp to the text file.
#!/usr/bin/python
import datetime
import os
import sys
now = datetime.datetime.now()
# print now.year, now.month, now.day, now.hour, now.minute, now.second
filename = "{}-{}-{}-{}-{}-{}".format(now.year, now.month, now.day, now.hour, now.minute, now.second)
suffix = "FileList"
@molcay
molcay / Format Sonrası.md
Last active November 21, 2016 09:15
Format Sonrası Yapılacak Listesi

Installation and Settings after new setup of Linux installation (Linux Mint 17 - 18)

  • Update & Upgrade from GUI:
sudo apt-get update
sudo apt-get upgrade
  • Install Boot-Repair for GRUB: