Skip to content

Instantly share code, notes, and snippets.

View gist:0480212289e969e65ca3562ce7982189
smtpd_recipient_restrictions =
permit_sasl_authenticated,
#check_client_access hash:/etc/postfix/lists/whitelist,
# same use as above for whitelisting, but CIDR for convenience:
#check_client_access cidr:/etc/postfix/lists/cidrwhitelist,
#check_recipient_access hash:/etc/postfix/recipients,
reject_invalid_hostname,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
@cwage
cwage / coronavirus.md
Last active Mar 5, 2020
Coronavirus: an email to my family (JULIANA GRANT, MD MPH)
View coronavirus.md

From https://www.julianagrant.com/blog/2020/2/29/coronavirus:

Notes: I originally wrote this to share with my family and close friends. It’s now getting passed around so I’m posting it publicly. I have revised the language slightly a few times. This is the most current version.

Hi folks,

A number of you have asked me what I think is going to happen with coronavirus (COVID-19) and what we should be doing to prepare. I have a few thoughts about what’s likely to happen and what you can do about it. For those of you who don’t know me well, I am a preventive medicine physician and infectious disease epidemiologist. I graduated from the CDC’s Epidemic Intelligence Service and have over 17 years of experience in the field, most of that with CDC.

Wishing everyone good health,

View gist:5b77cb6777fe7bd2341cfb8191ac9c8c
CREATE FUNCTION rot13(stringIn VARCHAR(500)) RETURNS VARCHAR(500)
BEGIN
DECLARE v1 INT DEFAULT 1;
DECLARE stringOut VARCHAR(200) DEFAULT '';
DECLARE str VARCHAR(1) DEFAULT '';
WHILE v1 <= LENGTH(stringIn) DO
SET str = SUBSTR(stringIn,v1,1);
CASE BINARY str
WHEN 'A' THEN SET stringOut = CONCAT(stringOut , 'N');
View gist:fd03edbde68293454f294c8a16faec88
[2018-09-15 22:09:00] ************************************************************
[2018-09-15 22:09:00] * Begin calibration of flat frames
[2018-09-15 22:09:00] ************************************************************
[2018-09-15 22:09:00]
[2018-09-15 22:09:00] * Searching for a master dark frame with exposure time = 0.1s -- best match is 20s
[2018-09-15 22:09:00] * Master bias: /home/cwage/bestpics/pleiades/output/master/bias-BINNING_1.xisf
[2018-09-15 22:09:00] * Master dark: /home/cwage/bestpics/pleiades/output/master/dark-BINNING_1-EXPTIME_20.xisf
[2018-09-15 22:09:00]
[2018-09-15 22:09:00] ImageCalibration: Global context
[2018-09-15 22:09:00]
View gist:7b113ecd356e7a3f842e3ea571af0a41
cwage@portaplotz:~/Downloads/M81$ ls
Calibrated-Color-T3-dougggg-M81-20160117-035255-Color-BIN1-W-120-001.fit Calibrated-Color-T3-dougggg-M81-20160117-041312-Color-BIN1-W-120-006.fit Calibrated-Color-T3-dougggg-M81-20160131-000826-Color-BIN1-E-120-002.fit
Calibrated-Color-T3-dougggg-M81-20160117-035741-Color-BIN1-W-120-002.fit Calibrated-Color-T3-dougggg-M81-20160118-024806-Color-BIN1-W-120-001.fit Calibrated-Color-T3-dougggg-M81-20160131-001129-Color-BIN1-E-120-003.fit
Calibrated-Color-T3-dougggg-M81-20160117-040046-Color-BIN1-W-120-003.fit Calibrated-Color-T3-dougggg-M81-20160118-025409-Color-BIN1-W-120-002.fit Calibrated-Color-T3-dougggg-M81-20160131-001417-Color-BIN1-E-120-004.fit
Calibrated-Color-T3-dougggg-M81-20160117-040521-Color-BIN1-W-120-004.fit Calibrated-Color-T3-dougggg-M81-20160118-025900-Color-BIN1-W-120-003.fit Calibrated-Color-T3-dougggg-M81-20160131-001707-Color-BIN1-E-120-005.fit
Calibrated-Color-T3-dougggg-M81-20160117-041006-Color-BIN1-W-120-005.fit Calibrated-Color-T3-dougggg-M
View init.sql
create database namelayer character set latin1;
grant all privileges on namelayer.* to namelayer@localhost identified by 'changethis';
create database citadel character set latin1;
grant all privileges on citadel.* to citadel@localhost identified by 'changethis';
create database castlegates character set latin1;
grant all privileges on castlegates.* to castlegates@localhost identified by 'changethis';
create database exilepearl character set latin1;
grant all privileges on exilepearl.* to exilepearl@localhost identified by 'changethis';
create database jukealert character set latin1;
grant all privileges on jukealert.* to jukealert@localhost identified by 'changethis';
View gist:094fb7883c4efab54207f2743cac76b7
boolean disableNether = config.getBoolean("disable_nether", false);
if (disableNether) {
plugin.getServer().getPluginManager()
.registerEvents(new NetherPortalListener(), plugin);
}
View lsd
cwage@portaplotz:~/bin$ cat lsd.sh
#!/bin/sh
while true; do
ls | nc -l 12345
done
You can’t perform that action at this time.