- Update & Upgrade from GUI:
sudo apt-get update
sudo apt-get upgrade
- Install
Boot-Repairfor GRUB:
| import random # başlangıç noktası her seferinde rasgele olarak seçilecek. | |
| N = 8 # satranc tahtasının büyüklüğü. 5 den büyük olmalı | |
| move_list = [] # satranç tahtası üzerinde hangi noktalara basıldığını tutacak | |
| def gen_pos_moves(x,y): # bu fonksiyon olası hareket listesini döndürecek | |
| offset = [-1, -2, 1, 2] | |
| # possible = [ (x+a, y+b) for (a,b) in [ (-2,1), (-1,2), (1,2), (2,1), (2,-1), (1,-2), (-1, -2), (-2, -1)] ] | |
| possible = [ (x+a, y+b) for a in offset for b in offset if abs(a) != abs(b)] | |
| return [ (a,b) for (a,b) in possible if 0<=a<N and 0<=b<N and (a,b) not in move_list] |
| public class NQueen { | |
| public static int[] olustur(int N) { | |
| int kalan = N % 12; | |
| System.out.println(kalan); | |
| int[] yeniDizi = new int[N]; | |
| int indeks = 0;//yeni dizinin indeks ine pointer olacak. | |
| int baslangic = (kalan != 3 && kalan != 9) ? 2 : 4; | |
| for (int i = baslangic; i <= N; i += 2) { |
| # -*- coding: utf-8 -*- | |
| import os | |
| import json | |
| import io | |
| __basedir__ = os.getcwd() | |
| categories = os.listdir(__basedir__) | |
| files_content = [] |
| #!/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" |
| 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 |
This gist is about Python perpective from Programming Language Consept.
This gist is about Javascript perpective from Programming Language Consept.
cat: concatenate files and print on the standard output
cat > a.txt: start a file creationcat a.txt: show file contentcat a.txt b.txt: show files content respectivelycat a.txt b.txt > c.txt: create a file which contains a.txt and b.txtchmod: change file mode bits
chmod +x a.txt: All users and groups have the execute permissionchmod $u$g$o a.txt: Give specific user permission