This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# vars | |
BACKUP_DIR=~/odoo_backups | |
ODOO_DATABASE=db1 | |
ADMIN_PASSWORD=superadmin_passwd | |
# create a backup directory | |
mkdir -p ${BACKUP_DIR} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import shutil | |
home_path = os.getcwd() | |
print("\t [+] Welcome in organize.py script - happy clean folder ;) \n") | |
images = 0 | |
Code = 0 | |
Docs = 0 | |
archive = 0 | |
for file in os.listdir(home_path): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Our .tmux.conf file | |
# Setting the prefix from C-b to C-a | |
set -g prefix C-a | |
# Free the original Ctrl-b prefix keybinding | |
unbind C-b | |
#setting the delay between prefix and command | |
set -sg escape-time 1 | |
# Ensure that we can send Ctrl-A to other apps | |
bind C-a send-prefix | |
# Set the base index for windows to 1 instead of 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Suppose you give the following list of 8 items which is | |
in ascending order and we want to search for the value 25 | |
""" | |
matrix = [0,11,16,18,25,29,32,35] # Create matrix | |
def binary_search(m, matrix): | |
first =1 # Determine the starting first value |