Skip to content

Instantly share code, notes, and snippets.

@overnew
overnew / br2.conf
Created February 5, 2024 14:04
br2.conf
conf t
int f0/1
ip add 10.3.3.3 255.255.255.0
no shut
exit
int s1/0
ip add 1.1.100.10 255.255.255.252
@overnew
overnew / br1.conf
Created February 5, 2024 14:04
br1.conf
conf t
int f0/1
ip add 10.2.2.2 255.255.255.0
no shut
exit
int s1/0
ip add 1.1.100.6 255.255.255.252
@overnew
overnew / ISP.conf
Created February 4, 2024 06:01
ISP conf
//step 1: IP 세팅
conf t
interface Serial1/0
ip address 1.1.100.1 255.255.255.252
no sh
interface Serial1/1
ip address 1.1.100.13 255.255.255.252
no sh
@overnew
overnew / VPN_Branch2.conf
Created February 4, 2024 06:00
VPN_Branch2 conf
//step 1: IP 세팅
conf t
interface Serial1/0
ip address 1.1.100.10 255.255.255.252
no sh
interface Loopback0
ip address 10.3.3.3 255.255.255.0
@overnew
overnew / VPN_Branch1.conf
Created February 4, 2024 06:00
VPN_Branch1 conf
//step 1: IP 세팅
conf t
interface Serial1/0
ip address 1.1.100.6 255.255.255.252
no sh
interface Loopback0
ip address 10.2.2.2 255.255.255.0
@overnew
overnew / HQ.conf
Created February 4, 2024 05:59
HQ conf
//step 1: IP 세팅
conf t
interface Serial1/1
ip address 10.1.12.6 255.255.255.252
no sh
interface Serial1/0
ip address 10.1.12.2 255.255.255.252
no sh
@overnew
overnew / VPN_HQ2.conf
Created February 4, 2024 05:58
VPN_HQ2 conf
//step 1: IP 세팅
conf t
interface Serial1/1
ip address 10.1.12.7 255.255.255.252
no sh
interface Serial1/0
ip address 1.1.100.14 255.255.255.252
no sh
@overnew
overnew / VPN_HQ1.conf
Created February 4, 2024 05:56
VPN_HQ1 conf
//step 1: IP 세팅
conf t
interface Serial1/1
ip address 10.1.12.1 255.255.255.252
no sh
interface Serial1/0
ip address 1.1.100.2 255.255.255.252
no sh
@overnew
overnew / mariadb_search.php
Created February 2, 2024 00:06
mariadb_search example
<?php
$db = new mysqli('192.168.56.3', 'root', 'root', 'team1');
if($db->connect_error){
die('Not Connected : ' . $db->connect_error);
}
//team list 출력
{
echo '<p>' . "team1" . '</p>';
echo "-------------------------------------------------------";
@overnew
overnew / ElasticSearch_search_after_query.py
Created December 13, 2023 14:35
ElasticSearch_search_after_query example
paging_data = ['score 값','두번째 값']
def get_contain_keyword_paging(self, paging_data, keyword_form: str, conditions=[]):
ret = self.client.search(index=self.__union_index_name, size=self.max_size_searched_post, sort=[
{"_score": {"order": "desc"}},
{"두번째_sorting_field": {"order": "asc"}}
], query=self.__make_score_query(keyword_form, filter_conditions=conditions)
, search_after=paging_data) #페이징 데이터 넘기기