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 | |
# Использование Case | |
case "$variable" in | |
abc) echo "$variable = abc" ;; | |
xyz) echo "$variable = xyz" ;; | |
esac |
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
--Переменные с типами, указанными выше | |
v_var Table_1; | |
v_id sch_name; | |
v_idname sch_name; | |
--Создание таблиц с помощью конструкторов на основе объявленных выше типов: | |
--Создадим таблицу на основе Table_1 с одним элементом: | |
v_tab1 Table_1:=Table_1(-12); | |
--Создадим таблицу на основе sch_name с пятью элементами: | |
v_tab2 Table_1:=Table_1(1,2,3,4,5); |
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 | |
r=1 | |
for r in {0..31} | |
do | |
array[$r]="fuck" | |
echo $r | |
let r=$r+1 | |
done | |
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
package java_core.io.raw; | |
import java.io.*; | |
/** | |
* | |
* @author AARomanov1985 | |
*/ | |
public class DataIO { |
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/sh | |
mkdir out | |
for f in *.avi *.mkv *.mp4; | |
do | |
ffmpeg -i "$f" -vn -ar 44100 -ac 2 -ab 192k -f mp3 out/"${f%.*}".mp3 | |
done |
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
set -0 vi |
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
public List<Record> getResult(String query) { | |
List<Record> out = new ArrayList<>(); | |
try (Statement statement = connection.createStatement()) { | |
logConnect(query); | |
ResultSet result = statement.executeQuery(query); | |
while (result.next()) { | |
Record record = new Record(); | |
try { | |
for (int i = 1;; i++) { | |
record.addValue(result.getString(i)); |
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 java.util.Properties; | |
import javax.mail.Folder; | |
import javax.mail.Message; | |
import javax.mail.MessagingException; | |
import javax.mail.NoSuchProviderException; | |
import javax.mail.Session; | |
import javax.mail.Store; | |
public class CheckingMail { |
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
# Игнор-лист файлов проекта | |
# Игнорировать ВСЕ файлы и директории, включая поддиректории и файлы в них | |
* | |
# ---- ФАЙЛЫ ---- | |
# Игнорирование по типу файла, будут игнорироваться в АБСОЛЮТНО всех директориях | |
# Например /files/data.zip, /server.log, /uploads/users/data/info.xls | |
*.zip | |
*.log | |
*.xls |
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
sudo add-apt-repository ppa:mc3man/trusty-media | |
sudo apt-get update | |
sudo apt-get install ffmpeg x264 |
OlderNewer