Skip to content

Instantly share code, notes, and snippets.

# cpuid -1
Disclaimer: cpuid may not support decoding of all cpuid registers.
CPU:
vendor_id = "GenuineIntel"
version information (1/eax):
processor type = primary processor (0)
family = Intel Pentium Pro/II/III/Celeron/Core/Core 2/Atom, AMD Athlon/Duron, Cyrix M2, VIA C3 (6)
model = 0xd (13)
stepping id = 0x3 (3)
extended family = 0x0 (0)
p `route print 0.0.0.0`.scan(/(\d+\.\d+\.\d+\.\d+)\s+\d+\n/)[0][0]
File.basename(Dir.getwd)
[ENV['COMPUTERNAME'].downcase] * 2 * ('-' + File.basename(Dir.getwd) + '.')
@ECHO OFF
@REM $Id$
SETLOCAL
IF "%1" == "" EXIT
SET TT_HOME=C:\Program Files (x86)\teraterm
SET TT_OPTS=/KR=UTF8 /KT=UTF8 /DS
@yoshikaw
yoshikaw / configure.yml
Created February 12, 2017 10:27
Ansible実践ガイド 4-2のKeepalivedの起動確認のタスクは、portを指定しないとtaimuautoまで待ってしまうのではないか?それにlocal_actionのwait_forではbecomeは不要なのでは。 https://gitlab.com/shkitayama/ansible_practical_guide/blob/master/effective_ansible/sec4/roles/keepalived/tasks/configure.yml#L38
- name: configure / Wait for keepalived reload
become: no
local_action:
module: wait_for
host: "{{ item.address }}"
port: "{{ item.port }}"
delay: 5
timeout: 60
with_items: "{{ keepalived_vip_interfaces }}"
run_once: True
var xhr = new XMLHttpRequest();
xhr.addEventListener('loadend', function(){
if (xhr.status !== 200) return;
eval('(function(){'
+ xhr.response.replace(/exit;/g, 'return;')
+ '}())');
});
xhr.open('GET', 'https://raw.githubusercontent.com/inoue-katsumi/misc/master/docOraJE.js');
xhr.send();
<html lang="ja">
<head>
<link href="https://fonts.googleapis.com/earlyaccess/nikukyu.css" rel='stylesheet' type='text/css' />
<style type="text/css">
.wf-nikukyu {font-family: "Nikukyu"; }
.font-weight-100 {font-size: 100; }
</style>
</head>
<body>
<div class="wf-nikukyu font-weight-100">ぐにゅう すくりーん</div>
def map = [:]
map["fuga"] = {
stage('fuga') {
node {
sh "echo 'fuga'"
}
}
}
def map = [:]
for (int i = 1; i <= 5; i++) {
map["p00${i}"] = {
node {
sh "echo ${i}; date +'%Y/%m/%d %H:%M:%S'"
}
}
}