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
$name = "mytomcat" | |
$service = Get-Service $name | |
$waitsec = New-Timespan -seconds 20 | |
$desktop = "$Env:HOMEDRIVE$Env:HOMEPATH\Desktop" | |
$webapp = "$desktop\tomcat-base\webapps" | |
$war = "$desktop\ROOT.war" | |
if ($service.Status -ne "Stopped") { | |
"Stopping $name..." |
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
FROM base/archlinux:latest | |
RUN set -x && \ | |
pacman -Syu --noconfirm && \ | |
pacman -S --needed --noconfirm --noprogressbar \ | |
tigervnc \ | |
python \ | |
python2-xdg \ | |
archlinux-xdg-menu \ | |
openbox \ |
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
import os | |
import smtplib | |
from email.mime.text import MIMEText | |
from email.mime.multipart import MIMEMultipart | |
dotenv = os.path.join(os.path.dirname(__file__), '.env') | |
with open(dotenv) as f: | |
exec(f.read(), None, os.environ) | |
from_addr = os.environ['FROM_ADDR'] |
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
extern crate simd; | |
fn main() { | |
let (c1, c2, c3, c4) = (0b0011, 0b0101, 0b0001, 0b1001); | |
let val = simd::u8x16::new( | |
c1, c2, c3, c4, | |
c1, c2, c3, c4, | |
c1, c2, c3, c4, | |
c1, c2, c3, c4); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Async Iterator</title> | |
</head> | |
<body> | |
<pre></pre> | |
<script src="script.js"></script> |
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/env python3 | |
import os | |
from smtplib import SMTP | |
from email.message import EmailMessage | |
def main(): | |
api_key = os.environ['api_key'] | |
# my addr -> spam, 'uso@dummy.ko' -> not spam |
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
220 SG ESMTP service ready at ismtpd0008p1hnd1.sendgrid.net | |
[EHLO] | |
250-smtp.sendgrid.net | |
250-8BITMIME | |
250-PIPELINING | |
250-SIZE 31457280 | |
250-STARTTLS | |
250-AUTH PLAIN LOGIN | |
250 AUTH=PLAIN LOGIN |
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] | |
name = "pipeterminal" | |
version = "0.1.0" | |
authors = ["yskszk63 <yskszk63@gmail.com>"] | |
edition = "2018" | |
license = "MIT or Apache-2.0" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] |
OlderNewer