Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
Herewith is an example of encoding to and from base64 using OpenSSL's C library. Code presented here is both binary safe, and portable (i.e. it should work on any Posix compliant system e.g. FreeBSD and Linux).
The MIT License (MIT)
Copyright (c) 2013 Barry Steyn
-- mysql 行转列, 一个字段转成多行记录 | |
-- 使用了辅助表 mysql.help_topic | |
SELECT | |
id, b.help_topic_id, SUBSTRING_INDEX( SUBSTRING_INDEX(id,',', b.help_topic_id+1),',',-1) | |
FROM | |
( SELECT "1,2,3,4,5" AS id ) a | |
JOIN mysql.help_topic b ON b.help_topic_id < ( LENGTH( a.id ) - LENGTH( REPLACE ( a.id, ',', '' ))+ 1 ); |
cmake_minimum_required(VERSION 3.15) | |
project(learning_demos C) | |
set(CMAKE_C_STANDARD 11) | |
include_directories("/usr/local/Cellar/ffmpeg/4.2.1_1/include") | |
link_directories("/usr/local/Cellar/ffmpeg/4.2.1_1/lib") | |
find_package(sdl2) | |
include_directories(${SDL2_INCLUDE_DIRS}) |
tell application "Finder" | |
set visible of every process whose visible is true and name is not "Finder" to false | |
set the collapsed of windows to true | |
end tell |
# Install tmux 2.8 on Centos | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
curl -LOk https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz | |
tar -xf libevent-2.1.8-stable.tar.gz | |
cd libevent-2.1.8-stable | |
./configure --prefix=/usr/local |
#!/bin/sh | |
DOWNLOAD_DIR="${HOME}/MiniDLNA" | |
CONFIG_DIR="${HOME}/.aria2" | |
RPC_TOKEN="changeIt" | |
RPC_PORT="6800" | |
change_apt_source(){ | |
if [ -f /etc/apt/sources.list ]; then | |
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak |