nmtui
Edit a connection
ens160
DNS servers <Add...>
111.111.111.111
222.222.222.222
<OK>
<BACK>
QUIT
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
;; .emacs | |
;; Keybindings | |
(define-key global-map "\C-h" 'delete-backward-char) | |
(define-key global-map "\C-z" 'undo) | |
;; Disable auto saving and backuping | |
(setq make-backup-files nil) | |
(setq auto-save-default nil) |
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
$candidates = @( | |
'A', | |
'B', | |
'C', | |
'D', | |
'E', | |
'F' | |
) | |
$winners = @() |
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
@echo off | |
set targets=mssecsvc.exe tasksche.exe .WNCRYT .WNCRY | |
for %%i in (%targets%) do ( | |
for %%j in (%*) do ( | |
echo search %%j in *%%i | |
start /B where /R %%j *%%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
... | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<configuration> | |
<archive> | |
<manifest> | |
<mainClass>org.sample.Main</mainClass> | |
</manifest> | |
</archive> | |
<descriptorRefs> |
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 sample; | |
import java.util.Arrays; | |
import java.util.Date; | |
import java.util.Properties; | |
import org.apache.kafka.clients.consumer.ConsumerConfig; | |
import org.apache.kafka.clients.consumer.ConsumerRecord; | |
import org.apache.kafka.clients.consumer.ConsumerRecords; | |
import org.apache.kafka.clients.consumer.KafkaConsumer; | |
import org.apache.kafka.clients.producer.KafkaProducer; |
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 kafka | |
from kafka import TopicPartition | |
from kafka.structs import OffsetAndMetadata | |
KAFKA_SERVER = '__KAFKA_SERVER__:9092' | |
GROUP_ID = 'our-group' | |
TOPIC_NAME = 'our-topic' | |
PARTITION_NUMBER = 0 | |
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
wget http://central.maven.org/maven2/org/eclipse/jetty/jetty-distribution/8.2.0.v20160908/jetty-distribution-8.2.0.v20160908.tar.gz | |
tar -zxvf jetty-distribution-8.2.0.v20160908.tar.gz | |
mv jetty-distribution-8.2.0.v20160908 /opt/jetty | |
sudo sh -c 'echo JETTY_HOME="/opt/jetty" > /etc/default/jetty' | |
sudo sh -c 'echo "TMPDIR=/opt/jetty/temp" >> /etc/default/jetty' | |
mv myapp.war /opt/jetty/webapps/ | |
/opt/jetty/bin/jetty.sh start | |
# verify | |
wget localhost:8080/myapp/ |
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
Get-WMIObject Win32_QuickFixEngineering | where { $_.HotFixId -match '4025337|4025341' } |
-
yum -y install chrony
-
nano /etc/chrony.conf
server 111.111.111.111 iburst #server 0.centos.pool.ntp.org iburst #server 1.centos.pool.ntp.org iburst #server 2.centos.pool.ntp.org iburst #server 3.centos.pool.ntp.org iburst