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
:set langmap=йq,цw,уe,кr,еt,нy,гu,шi,щo,зp,х[,ї],фa,іs,вd,аf,пg,рh,оj,лk,дl,ж\\;,є',ґ\\,яz,чx,сc,мv,иb,тn,ьm,ю.,./,ЙQ,ЦW,УE,КR,ЕT,НY,НY,ГU,ШI,ЩO,ЗP,Х{,Ї},ФA,ІS,ВD,АF,ПG,РH,ОJ,ЛK,ДL,Ж\\:,Є\\",Ґ<bar>,ЯZ,ЧX,СC,МV,ИB,ТN,ЬM,Б\\<,Ю>,№# |
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
conky.config = { | |
background = no, | |
format_human_readable = yes, | |
out_to_console = yes, | |
temperature_unit = celsius, | |
total_run_times = 0, | |
update_interval = 1, | |
use_spacer = none, |
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/sh | |
let loop=0 | |
while true; do | |
if [[ $loop%300 -eq 0 ]]; then | |
weather=$(curl wttr.in/Lviv,Ukraine?format=1) | |
let loop=0 | |
fi | |
xsetroot -name " $weather | $(date '+%b %d %a') | $(date '+%H:%M:%S') " | |
let loop=$loop+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
#!/bin/sh | |
set -e | |
DIRECTORY="$HOME/Pictures/Screenshots/" | |
[ ! -d "$DIRECTORY" ] && mkdir $DIRECTORY | |
ls ${DIRECTORY%\s\/}*.png >/dev/null 2>&1 && mv ${DIRECTORY%s/}*.png $DIRECTORY && echo "Screenshots successfully moved in a separate folder" || echo "No new screenshots" |
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/sh | |
DIR=/home/bebyx/CI/ | |
inotifywait -m -e close_write "$DIR" | while read file; do | |
pkill java | |
sudo cp -R /home/bebyx/CI/eschool.jar /home/bebyx/eSchool/target/eschool.jar | |
sudo java -jar /home/bebyx/eSchool/target/eschool.jar --spring.config.location=file:///home/bebyx/eSchool/src/main/resources/application.properties > /home/bebyx/eschool2.log &2>/home/bebyx/eschool2err.log & | |
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
#!/usr/bin/env python3 | |
# Python script to create directories: python hw1.py path dir_name number_of_dirs dir_mode(e.g. 700) | |
import os, sys | |
try: | |
for i in range(int(sys.argv[3])): | |
os.mkdir(os.path.join(sys.argv[1], sys.argv[2] + str(i + 1)), int(sys.argv[4], 8)) | |
except OSError: |
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 | |
curl http://www.linuxfromscratch.org/lfs/view/stable/chapter03/packages.html | grep -e "\.tar\..\{2,3\}\"" | sed 's/^\s*\"\(\(https\?\|ftp\).\+\.tar\.\S\{2,3\}\)\".*/\1/g' > dlinks | |
while read LINE; do | |
wget -nc "$LINE" | |
done < dlinks | |
rm ./dlinks |
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
#include <stdio.h> | |
int fibonacci(int num); | |
int main() { | |
int i; | |
printf("Enter number:\n"); | |
int result = scanf("%d", &i); | |
if (result == 0) { |
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
#include <stdio.h> | |
#include <string.h> | |
char* define_animal(char *noise); | |
int main() { | |
// Lions say 'Grr', Tigers say 'Rawr', Snakes say 'Ssss', and Birds say 'Chirp' | |
char noise[50]; | |
char *token, *tmp; | |
const char delimiter[2] = " "; |
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
#include <stdio.h> | |
#include <string.h> | |
char* latinize(char *word); | |
int main() { | |
char sentence[100]; | |
char *token, *word; | |
const char delimiter[2] = " "; | |
fgets(sentence, 100, stdin); |
OlderNewer