Recently Created Pages

Java 8 Create Parent Folder and Writing/Reading File

Java 8 Create Folder and Writing/Reading File  public class CreateFolderAndWrite { public stati...

Created 6 years ago by Ahmet Faruk Bişkinler
Last updated 6 years ago by Ahmet Faruk Bişkinler
Java
Page is not in a chapter

Download and add YUM Repo in one command

Download and add YUM Repo in one command wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.r...

Created 6 years ago by Ahmet Faruk Bişkinler
Last updated 6 years ago by Ahmet Faruk Bişkinler
Linux
Page is not in a chapter

Write more then one file at single command using cat

Write more then one file at single command using cat cat > .npmrc <<EOFproxy=http://10....

Created 6 years ago by Ahmet Faruk Bişkinler
Last updated 6 years ago by Ahmet Faruk Bişkinler
Linux
Page is not in a chapter

Python to Generate Random Strong Passwords

  import os, random, stringrnd = random.SystemRandom()chars = string.ascii_letters + string.dig...

Created 7 years ago by Ahmet Faruk Bişkinler
Last updated 7 years ago by Ahmet Faruk Bişkinler
Python
Page is not in a chapter

zAllStatus.sh

zAllStatus.sh #!/bin/shEscape="\033";Reset="${Escape}[0m";BlackF="${Escape}[30m"; RedF="${Escape...

Created 7 years ago by Ahmet Faruk Bişkinler
Last updated 7 years ago by Ahmet Faruk Bişkinler
Linux
Page is not in a chapter

https://web.whatsapp.com XPaths

https://web.whatsapp.com XPaths for parsing informations You can test it with:XPath Helperhttps:...

Created 7 years ago by Ahmet Faruk Bişkinler
Last updated 7 years ago by Ahmet Faruk Bişkinler
HTML
Page is not in a chapter

MongoDB Restore from Zip File

  . zMongoRestore.sh CRM CRM.zip #!/bin/shEscape="\033";Reset="${Escape}[0m";BlackF="${Escape}...

Created 7 years ago by Ahmet Faruk Bişkinler
Last updated 7 years ago by Ahmet Faruk Bişkinler

MongoDB BackUp as Zip

Tested on 2.6.0 . zMongoBackUp.sh CRM #!/bin/shEscape="\033";Reset="${Escape}[0m";BlackF="${Esc...

Created 7 years ago by Ahmet Faruk Bişkinler
Last updated 7 years ago by Ahmet Faruk Bişkinler
Linux
Page is not in a chapter

RegEx Find: day.month.year Replace: year_month_day

RegEx Find: day.month.year Replace: year_month_day   Find: (\d{2}).(\d{2}).(\d{4}) Replace:$...

Created 8 years ago by Ahmet Faruk Bişkinler
Last updated 8 years ago by Ahmet Faruk Bişkinler

/bin/custom/zzGetStatus.sh - Get process running status

/bin/custom/zzGetStatus.sh #!/bin/sh#!/bin/bash# Daha fazla bilgi icin / For more information:# ...

Created 8 years ago by Ahmet Faruk Bişkinler
Last updated 8 years ago by Ahmet Faruk Bişkinler

/bin/custom/zzGetProperties.sh - Bash Read Properties File Key

 /bin/custom/zzGetProperties.sh #!/bin/sh#!/bin/bash# Daha fazla bilgi icin / For more informat...

Created 8 years ago by Ahmet Faruk Bişkinler
Last updated 8 years ago by Ahmet Faruk Bişkinler

Tomcat Unix init.d Script (start,stop,status,restart,kill...)

  #!/bin/bash # description: $zTomcatName Start Stop Restart # processname: $zTomcatName ...

Created 8 years ago by Ahmet Faruk Bişkinler
Last updated 8 years ago by Ahmet Faruk Bişkinler
Java
Page is not in a chapter

Get index of a list

Get list's index #index>>> S = [1,30,20,30,2]>>> for index, elem in enumerate(...

Created 8 years ago by Ahmet Faruk Bişkinler
Last updated 8 years ago by Ahmet Faruk Bişkinler
Python
Page is not in a chapter

Write base64 encoded image Data from DB to local file

Write base64 encoded image Data from DB to local file fh = open("imageToSave.png", "wb")fh.write...

Created 8 years ago by Ahmet Faruk Bişkinler
Last updated 8 years ago by Ahmet Faruk Bişkinler
Python
Page is not in a chapter

UUID

  >>> import uuid>>> uuid.uuid4()UUID('5361a11b-615c-42bf-9bdb-e2c3790ada14')

Created 8 years ago by Ahmet Faruk Bişkinler
Last updated 8 years ago by Ahmet Faruk Bişkinler
Python
Page is not in a chapter

Python rename all files in a folder from a reference file.

Python to rename file in a folder occurding to a tab seperated settings file. rename_files.py #...

Created 8 years ago by Ahmet Faruk Bişkinler
Last updated 8 years ago by Ahmet Faruk Bişkinler

ArrayList sorting/sıralama

// Arraylist sorting/sıralama List<Fruit>  fruits = new ArrayList<Fruit>();Fruit f...

Created 8 years ago by Ahmet Faruk Bişkinler
Last updated 8 years ago by Ahmet Faruk Bişkinler
Java
Page is not in a chapter

File info

 // File typefileType = Files.probeContentType( new File("/path/to/file/ahmet.txt").toPath() );/...

Created 8 years ago by Ahmet Faruk Bişkinler
Last updated 8 years ago by Ahmet Faruk Bişkinler
Java
Page is not in a chapter

sudoers

To add and edit sudoers run command visudovim /etc/sudoers root        ALL=(ALL:ALL) ALL...

Created 8 years ago by Ahmet Faruk Bişkinler
Last updated 8 years ago by Ahmet Faruk Bişkinler

CentOS SELinux Settings

Security-Enhanced Linux (SELinux) settings [[email protected] ~]# setsebool -P antivirus_can_sc...

Created 8 years ago by Ahmet Faruk Bişkinler
Last updated 8 years ago by Ahmet Faruk Bişkinler
Back to top