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.io.{File, FileInputStream, FileOutputStream} | |
import java.sql.{Connection, DriverManager} | |
object JdbcBlobExample { | |
def main(args: Array[String]) { | |
val driver = "com.teradata.jdbc.TeraDriver" | |
val url = "jdbc:teradata://mytdhost/TMODE=ANSI,CHARSET=UTF8" | |
val username = "myusername" | |
val password = "mypassword" |
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
version: 2 | |
jobs: | |
build: | |
working_directory: ~/my-multi-module-mvn-prj | |
docker: | |
- image: circleci/openjdk:8-jdk-stretch | |
steps: | |
- checkout |
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
call plug#begin('~/.vim/plugged') | |
Plug 'scrooloose/nerdtree' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'pearofducks/ansible-vim' |
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
use framework "Foundation" | |
use scripting additions | |
set statusText to "working remotely" | |
set statusEmoji to ":house_with_garden:" | |
-- legacy token is available at https://api.slack.com/custom-integrations/legacy-tokens | |
set token to "super-secret-token" | |
-- |
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
-- turn on Dark Mode on macOS | |
tell application "System Events" | |
tell appearance preferences | |
set dark mode to true | |
end tell | |
end tell | |
-- turn on Dark Palette on OmniFocus | |
tell application "OmniFocus" | |
set value of preference id "OFIColorPaletteIdentifier" to "builtin:OmniFocus Dark" | |
end tell |
- Использовать MDM (Mobile Device Management, комплекс управления носимыми устройствами), если таковой предоставляет компания.
- Выключить беспарольный вход, включить требования пароля после засыпания/выключения экрана.
- Выбрать хороший пароль для основной учетной записи в операционной системе, менять раз в три месяца.
- Блокировать компьютер при оставлении его даже на короткое время.
- Включить шифрование диска, для передачи корпоративной информации использовать флэшки с зашифрованными партициями.
- Включить firewall.
- Выключить гостевого пользователя и удалить всех ненужных пользователей.
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<property> | |
<name>jobTracker</name> | |
<value>master.saekiyoshiyasu.org:8021</value> | |
</property> | |
<property> | |
<name>nameNode</name> | |
<value>hdfs://master.saekiyoshiyasu.org:8020</value> | |
</property> |
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
# | |
# Simple playbook to create passwordless sudo user with pubkey authentication for future ansible use | |
# This assumes you know some other user login/pass | |
# | |
# Three simple steps: | |
# 1. Create some public key: ssh-keygen -t rsa -C "[email protected]" | |
# 2. Add some inventory into inventory file | |
# 3. Run playbook: ansible-playbook -i inventory create_user.yml -e "createuser=myuser pubkey_file=~/.ssh/my_pubkey.pub" -u someotheruser -k | |
# | |
--- |
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
# Creating a local git server | |
mkdir -p git_show/git_server | |
cd git_show/git_server | |
git init --bare | |
# Initiating the repo with first commit | |
cd ../ |
NewerOlder