View mock-update.md

更新

  • api后跟版本号(当前为1

api/MODEL/READ变成api/1/MODEL/READ

api/user/find变成api/1/user/find

  • 不再支持通过传参方式指定app_key或签名,只可通过headers传递应用及签名。
View several_instances_wildfly.sh
#!/bin/bash
server=$1
command=$2
function getBaseDir(){
case "$1" in
server1) echo "z:\wildfly-1.2.3.Final\standalone-1" ;;
server2) echo "z:\wildfly-1.2.3.Final\standalone-2" ;;
*)
View is it divisible
function isDivisible(divisee, divisor) {
return divisee % divisor === 0;
}
// test
function testIsDivisible() {
if (isDivisible(10, 2) && !isDivisible(11, 2)) {
console.log('SUCCESS: `isDivisible` is working');
View Volatility_Plugins.md

Supported Plugin Commands:

            amcache         Print AmCache information
            apihooks        Detect API hooks in process and kernel memory
            atoms           Print session and window station atom tables
            atomscan        Pool scanner for atom tables
            auditpol        Prints out the Audit Policies from HKLM\SECURITY\Policy\PolAdtEv
            bigpools        Dump the big page pools using BigPagePoolScanner
            bioskbd         Reads the keyboard buffer from Real Mode memory
            cachedump       Dumps cached domain hashes from memory
View horseshoe_print.py
import sys
def calculate(text=''):
'''
Calculate numeric value from formula string. Warning: insecure because of eval usage!
:param text: Simple formula text. Don't push on horse!
:return: Numeric value of formula as string or pffr! Don't try to fool the counting horse!
'''
try:
View centos7_kernel_update.md
Install the ELRepo and GPG key
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
yum install -y http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
Enable kernel updates from elrepo
yum-config-manager --enable elrepo-kernel
View stringtest.c
#include <stdio.h>
int main(void){
char str[20];
scanf("%*c%s",str);
printf("%s\n",str);
}
View mirth_setup.md

Mirth Server Setup

First create ec2 Ubuntu instance. This can be 14.04 now on MirthConnect 3.2 and above. Hurray!

Great thanks for the original guide: https://tourmongolian.mn/?product=jgautsch/9157402

# Update Ubuntu
sudo aptitude update

# Safe upgrade of Ubuntu
sudo aptitude safe-upgrade
View Center Google Re-captcha Toolset Forms
@media only screen and (min-width: 320px) {
#recaptcha_cred_form_10_1_recaptcha.g-recaptcha {
position: relative;
width: 100%;
padding-top: 1.5em
}
#recaptcha_cred_form_10_1_recaptcha.g-recaptcha iframe {
position: absolute;
View playground.rs
use std::error::Error;
fn main() {
let a: Result<u32, Box<Error>> = "1".parse().map_err(|e| Box::new(e) as Box<Error>);
println!("{:?}", a);
}