Skip to content

Instantly share code, notes, and snippets.

View sailfish009's full-sized avatar

sailfish009

  • freelancer
  • South Korea
View GitHub Profile
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
#! /bin/sh
echo "Start time :"
date
python main.py -a resnet18 /some_dir
echo "End time :"
date
https://globalhealthnewswire.com/2019/10/28/researchers-find-protein-scaffolding-for-repairing-dna-damage/
https://www.nature.com/articles/s41586-019-1659-4
https://thomasnyberg.com/cpp_extension_modules.html
#! /bin/sh
sudo ufw default allow outgoing
sudo ufw reload
#! /bin/sh
sudo ufw default deny outgoing
sudo ufw reload
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#! /bin/bash
ls -lR | grep ^d | wc -l
#! /bin/sh
# Count number of files within a directory in Linux:
# https://stackoverflow.com/questions/20895290/count-number-of-files-within-a-directory-in-linux
ls -l . | egrep -c '^-'
find . -name "*_true" -print0 | xargs --null -I{} sh -c 'cp "$1"/* "../out_true"' -- {}