Skip to content

Instantly share code, notes, and snippets.

View evie404's full-sized avatar

Evelyn Pai evie404

View GitHub Profile
@evie404
evie404 / synology_disk_benchmark.sh
Last active November 26, 2020 14:49 — forked from gxfxyz/synology_disk_benchmark.sh
A simple script to test Synology NAS disk speed with hdparm, dd and fio
#!/usr/bin/env bash
# =======================================================================================
#
# A simple script to test Synology NAS disk speed with hdparm, dd and fio.
#
# How to use:
#
# 1. Save synology_disk_benchmark.sh and xfio.conf to your Synology NAS
# 2. Make it executable: chmod +x synology_disk_benchmark.sh
@evie404
evie404 / gist:fd577a8f0bfbb19246bff0d497a93239
Created June 15, 2019 05:34 — forked from technoweenie/gist:1072829
.netrc file so you can push/pull to https git repos without entering your creds all the time
machine github.com
login rickypai
password SECRET
machine api.github.com
login rickypai
password SECRET
@evie404
evie404 / server.py
Last active September 14, 2016 00:07 — forked from ibeex/foo.log
Flask logging example
import logging
from logging.handlers import RotatingFileHandler
from flask import Flask
app = Flask(__name__)
@app.route('/')
def foo():
paifor x in range(0, 3):
//1. Create a variable called test of type boolean and assign the variable the value true.
boolean test = true;
//2.Create a variable called a of type int and assign the variable the value 5.
int a = 5;
/*3.Type in an if statement that adds 1 to a if test has value true and subtracts 1 from a if test has value false.
Helpful hint: The DrJava interactions pane will evaluate an expression after you hit the return key if what you have typed in is a valid expression. To keep the interactions pane from evaluating your if statement prematurely, either type the entire statement in one line or place the statement inside braces { }*/
if (test == true) {
a + 1;
}
else {