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
function git_clean_untracked_safely { | |
TO_REMOVE=`git clean -f -d -n`; | |
TO_REMOVE_LINES=`git clean -f -d -n | wc -l`; | |
if [ "$TO_REMOVE_LINES" -ne "0" ]; then | |
echo "Cleaning"; | |
printf "\n$TO_REMOVE\n\n"; | |
echo "Proceed?"; | |
select result in Yes No; do | |
if [[ "$result" == "Yes" ]]; then | |
echo "Cleaning in progress..." |
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
#!/bin/bash | |
function git_clean_local_branches { | |
TO_REMOVE=`git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}'`; | |
TO_REMOVE_LINES=`git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | wc -l` | |
if [ "$TO_REMOVE_LINES" -ne 0 ]; then | |
echo "Removing branches..." | |
printf "\n$TO_REMOVE\n\n"; | |
echo "Proceed?"; |
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
$MOD52 | |
ORG 00H | |
JMP START | |
ORG 0BH | |
CALL PRZERW | |
reti | |
ORG 1BH | |
CALL PRZERW2 |
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
$MOD52 | |
ORG 00H | |
JMP START | |
ORG 03H | |
CALL DELAY | |
CPL TR0 |
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
select * from pracownicy; | |
select * from zespoly; | |
select NAZWISKO, PLACA_POD * 12 as "placa roczna" from pracownicy; | |
select ID_ZESP, NAZWA, ADRES from zespoly order by NAZWA; | |
select distinct ETAT from pracownicy; | |
select * from pracownicy where etat = 'ASYSTENT'; | |
select * from pracownicy where ID_ZESP in ('30', '40') order by PLACA_POD desc; | |
select * from pracownicy where PLACA_POD > 300 and PLACA_POD < 800; | |
select * from pracownicy where NAZWISKO like '%SKI'; | |
select * from pracownicy where PLACA_POD > 1000 and not ID_SZEFA is NULL; |
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
--select nazwisko | |
-- from pracownicy | |
-- where etat != 'asystent' | |
-- order by PLACA_POD desc | |
-- ; | |
-- | |
--6 | |
--select nazwisko, zatrudniony, | |
-- zatrudniony - EXTRACT (YEAR FROM DATE '2000-01-01') as staz_w_2000 |
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
5.1 | |
select nazwisko, etat, id_zesp, nazwa | |
from pracownicy join zespoly using (id_zesp) | |
; | |
5.2 | |
select nazwisko, etat, id_zesp, nazwa | |
from pracownicy join zespoly using (id_zesp) | |
where adres = 'PIOTROWO 3A' |
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
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |
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
while inotifywait -e close_write myfile.py; do ./myfile.py; done |
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 s3 bucket | |
aws s3api create-bucket --bucket <bocket-name> --create-bucket-configuration LocationConstraint=eu-central-1 |
OlderNewer