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...
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...
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....
Python to Generate Random Strong Passwords
import os, random, stringrnd = random.SystemRandom()chars = string.ascii_letters + string.dig...
zAllStatus.sh
zAllStatus.sh #!/bin/shEscape="\033";Reset="${Escape}[0m";BlackF="${Escape}[30m"; RedF="${Escape...
https://web.whatsapp.com XPaths
https://web.whatsapp.com XPaths for parsing informations You can test it with:XPath Helperhttps:...
MongoDB Restore from Zip File
. zMongoRestore.sh CRM CRM.zip #!/bin/shEscape="\033";Reset="${Escape}[0m";BlackF="${Escape}...
MongoDB BackUp as Zip
Tested on 2.6.0 . zMongoBackUp.sh CRM #!/bin/shEscape="\033";Reset="${Escape}[0m";BlackF="${Esc...
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:$...
/bin/custom/zzGetStatus.sh - Get process running status
/bin/custom/zzGetStatus.sh #!/bin/sh#!/bin/bash# Daha fazla bilgi icin / For more information:# ...
/bin/custom/zzGetProperties.sh - Bash Read Properties File Key
/bin/custom/zzGetProperties.sh #!/bin/sh#!/bin/bash# Daha fazla bilgi icin / For more informat...
Tomcat Unix init.d Script (start,stop,status,restart,kill...)
#!/bin/bash # description: $zTomcatName Start Stop Restart # processname: $zTomcatName ...
Get index of a list
Get list's index #index>>> S = [1,30,20,30,2]>>> for index, elem in enumerate(...
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...
UUID
>>> import uuid>>> uuid.uuid4()UUID('5361a11b-615c-42bf-9bdb-e2c3790ada14')
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 #...
ArrayList sorting/sıralama
// Arraylist sorting/sıralama List<Fruit> fruits = new ArrayList<Fruit>();Fruit f...
File info
// File typefileType = Files.probeContentType( new File("/path/to/file/ahmet.txt").toPath() );/...
sudoers
To add and edit sudoers run command visudovim /etc/sudoers root ALL=(ALL:ALL) ALL...
CentOS SELinux Settings
Security-Enhanced Linux (SELinux) settings [[email protected] ~]# setsebool -P antivirus_can_sc...