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
du -h --max-depth=1 |
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 docker exec -t e564422f1f57 pg_dumpall -c -U postgres > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql |
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
mount -t cifs -o vers=2.0,username=admin,password=pass,iocharset=utf8 //192.168.50.51/homes /mnt/homes/ |
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 interact from "interactjs"; | |
import React, { useEffect, useState } from "react"; | |
export default function Draggable() { | |
const [positionX, setPositionX] = useState(0); | |
// This issue has to do with the following combination: | |
// - add interactjs event listeners inside useEffect | |
// - set react useEffect dependency list as [] | |
// - call react setState method inside event listeners |
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
cat $BIN_FILE | tr -d '\0' > $NEW_FILE |
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
xargs -n 1 curl -O -L --retry 5 --retry-max-time 60 -C - < ./mp3-urls-unique-id-fix.txt |
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 | |
# bash for loop | |
for i in $(seq 10 $END); do | |
echo $i | |
done | |
# 1.Iterate over collection | |
for i in a b c; do | |
echo $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
#!/bin/bash | |
echo INFO: host: red hat 9.0 with all packages in installation CDs installed. | |
echo INFO: target: armv4tl Linux 2.6.12-h1940 libc 2.3.2 | |
echo INFO: all operations are executed under root | |
#build mode | |
INSTALL_CROSSTOOL="" | |
COPY_LIBS="" | |
COMPILE_QT="" |
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
Date: 2018-09-25 16:29:58 | |
Weather: Cloudy | |
Demo diary post 1 | |
Date: 2018-09-26 19:05:07 | |
Weather: Mostly Cloudy Day | |
Demo diary post 2 |
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"?> | |
<opml version="1.0"> | |
<head> | |
<title>Subscriptions - RSS</title> | |
</head> | |
<body> | |
<outline htmlUrl="http://newworldinteractive.com" title="Blog – New World Interactive" xmlUrl="http://newworldinteractive.com/blog/feed/" type="rss" text="Blog – New World Interactive"/> | |
<outline htmlUrl="http://www.steampowered.com/" title="New On Steam" xmlUrl="https://store.steampowered.com/feeds/newreleases.xml" type="rss" text="New On Steam"/> | |
<outline htmlUrl="https://goooooouwa.github.io/" title="Shunfa’s Blog" xmlUrl="https://goooooouwa.github.io/feed.xml" type="rss" text="Shunfa’s Blog"/> | |
<outline title="test" xmlUrl="tag/test" type="rss" text="test"/> |