This file contains 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' | |
services: | |
imap: | |
image: antespi/docker-imap-devel:latest | |
container_name: imap | |
ports: | |
- "25:25" | |
- "143:143" | |
- "993:993" |
This file contains 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 main | |
import ( | |
"fmt" | |
"net/url" | |
"os" | |
"os/exec" | |
) | |
func main() { |
This file contains 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
.text | |
.cstring | |
lC1: | |
.ascii "%lf\12\0" | |
.text | |
.globl _main | |
_main: | |
LFB1: | |
pushq %rbp | |
LCFI0: |
This file contains 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
# -*- coding: utf-8 -*- | |
import os | |
base_path = os.path.abspath("./") | |
def move_out(path, target_path): | |
dirs = os.listdir(path) | |
for file in dirs: |
This file contains 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
$.getScript('https://cdn.bootcss.com/FileSaver.js/2014-11-29/FileSaver.min.js', function() { | |
const table_rows = $('#manualArrangeCourseTable').children('tbody')[0].children | |
let course_result = [] | |
for (let i = 0; i < 12; i++) { | |
const row = table_rows[i] | |
for (let j = 0; j < 8; j++) { | |
const block = row.children[j] | |
if (block && block.hasAttribute('title')) { | |
const data = /(.*)\s([^ \(]*)\(.*(\d+)\-(\d+)\,(.*)\)/.exec(block.title) | |
course_result.push({ |
This file contains 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
systemctl stop plexmediaserver | |
cd '/var/lib/plex/Plex Media Server/Plug-ins' | |
git clone https://github.com/ZeroQI/Hama.bundle.git | |
chown -R plex:plex '/var/lib/plex/Plex Media Server/Plug-ins/Hama.bundle' | |
chmod 775 -R '/var/lib/plex/Plex Media Server/Plug-ins/Hama.bundle' | |
mkdir -p '/var/lib/plex/Plex Media Server/Scanners/Series' | |
wget -O '/var/lib/plex/Plex Media Server/Scanners/Series/Absolute Series Scanner.py' https://raw.githubusercontent.com/ZeroQI/Absolute-Series-Scanner/master/Scanners/Series/Absolute%20Series%20Scanner.py | |
chown -R plex:plex '/var/lib/plex/Plex Media Server/Scanners' | |
chmod 775 -R '/var/lib/plex/Plex Media Server/Scanners' |
This file contains 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
// | |
// Created by helloqiu on 2017/3/18. | |
// | |
#ifndef LIST_LIST_H | |
#define LIST_LIST_H | |
struct list_head { | |
struct list_head *next, *prev; | |
}; |
This file contains 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
# -*- coding: utf-8 -*- | |
import networkx | |
import matplotlib.pyplot as plt | |
import random | |
import json | |
l = dict() | |
c = dict() |
This file contains 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 | |
max_space_user(){ | |
du -s /home | sort -nr | head -1 | |
} | |
max_file(){ | |
find -type f -exec stat -c "%s %n" {} \; | sort -nr | head -1 | |
} |
This file contains 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
#!/usr/bin/perl | |
=pod | |
=head1 NAME | |
apt-mirror - apt sources mirroring tool | |
=head1 SYNOPSIS |
NewerOlder