This file contains 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
#!/usr/bin/env bash | |
# Welcome message: | |
echo " " | |
echo "Opera Session Converter, v.0.1." | |
echo "Will convert all your Opera session files in the current folder to" | |
echo "plain text files with URLs only." | |
echo "Old files will be preserved and new files with" | |
echo "a .win.txt extension will be created." | |
echo "Input files must be without spaces!" |
This file contains 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
CREATE TRIGGER calculate_vat_insert AFTER INSERT ON inventory | |
BEGIN | |
UPDATE inventory SET PRICE_VAT = new.PRICE/100*20+new.PRICE WHERE id = new.id; | |
END; | |
CREATE TRIGGER calculate_vat_update UPDATE OF PRICE ON inventory | |
BEGIN | |
UPDATE inventory SET PRICE_VAT = new.PRICE/100*20+new.PRICE WHERE id = old.id; | |
END; |
This file contains 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
#!/usr/bin/perl -w | |
use strict; | |
use warnings; | |
my $FOLDER_TO_OPEN = $ARGV[0]; | |
opendir (my $directory_handle, $FOLDER_TO_OPEN) or die $!; | |
my $output_directory_name = "converted-images"; |
This file contains 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
#! /usr/bin/python | |
############################################################################### | |
# URL Tester | |
# Version 0.2 | |
# | |
# Usage: | |
# python check-urls.py CREDITS.md | |
# | |
# CREDITS |
This file contains 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
#!/usr/bin/perl | |
use Net::OpenSSH; | |
my $ssh = Net::OpenSSH->new('[email protected]', key_path => '/path/to/private_key'); | |
$ssh->error and die "Couldn't establish SSH connection: ".$ssh->error; | |
my ($stdin, $stdout, $stderr, $pid) = $ssh->open3("ls -l"); | |
my @output = <$stdout>; |
This file contains 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
#!/usr/bin/perl | |
# Linux RSS Memory Meter version 2.0. | |
# MIT 2019 Dimitar D. Mitov | |
# https://github.com/ddmitov | |
# Linux RSS Memory Meter can measure | |
# the combined RSS memory usage of several processes | |
# together with their child processes | |
# providing every second a total in megabytes. |
This file contains 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
#!/usr/bin/python3 | |
# Turtle Chessboard v.1.0 | |
# by Dimitar D. Mitov | |
# https://github.com/ddmitov | |
# This is free and unencumbered software released into the public domain. | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled |
This file contains 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
#!/usr/bin/python3 | |
# Initials Maker v.1.0 | |
# by Dimitar D. Mitov | |
# https://github.com/ddmitov | |
# This is free and unencumbered software released into the public domain. | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled |
This file contains 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
#!/usr/bin/python3 | |
import os | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
chrome_options = Options() | |
chrome_options.add_argument('--headless') | |
chrome_options.add_argument('--window-size=1920x1080') |
This file contains 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
#!/usr/bin/env python3 | |
# Snake Works 2020. | |
# https://github.com/ddmitov/ | |
# | |
# /^\/^\ | |
# _| O| O| | |
# \/ / \_/\_/ \ | |
# \____|____ \ | |
# \_______ \ ______ |
OlderNewer