Skip to content

Instantly share code, notes, and snippets.

# https://forum.mikrotik.com/viewtopic.php?t=119469#
:local DHCPtag
:set DHCPtag "#DHCP"
:if ( [ :len $leaseActIP ] <= 0 ) do={ :error "empty lease address" }
:if ( $leaseBound = 1 ) do=\
{
:local ttl
:local domain
-----------------------------------------------------: timestamp=2023-02-21T11:12:38.270Z
2023-02-21T11:12:41.082Z [INFO] provider.terraform-provider-vault_v3.13.0_x5: 2023/02/21 11:12:41 [DEBUG] Vault API Request Details:
---[ REQUEST ]---------------------------------------
PUT /v1/sys/managed-keys/pkcs11/myhsm HTTP/1.1
Host: 10.0.2.35:8200
User-Agent: Go-http-client/1.1
Content-Length: 317
X-Vault-Request: true
X-Vault-Token: hmac-sha256:df97255982c942e33a34c994f46477d71bfd9fd7f4cd5c4d954583c08d2d5e92
Accept-Encoding: gzip
@Cylindric
Cylindric / vagrant.log
Created February 27, 2018 10:50
Vagrant log output
INFO global: Vagrant version: 2.0.2
INFO global: Ruby version: 2.4.3
INFO global: RubyGems version: 2.6.14
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-2.0.2/bin/vagrant"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_LOG="debug"
INFO global: resolv replacement has been enabled!
INFO global: Plugins:
[2017-01-17T08:39:16+00:00] DEBUG: Sleeping for 0 seconds
[2017-01-17T08:39:16+00:00] DEBUG: Running Ohai with the following configuration: {:log_location=>#<IO:<STDOUT>>, :log_level=>:debug, :chef_server_url=>"https://chefserver/organizations/mycompany", :validation_client_name=>"mycompany-validator", :file_cache_path=>"c:/chef/cache", :file_backup_path=>"c:/chef/backup", :cache_options=>{:path=>"c:/chef/cache/checksums", :skip_expires=>true}, :node_name=>"ca-app02.local", :ssl_verify_mode=>:verify_none, :force_logger=>false, :force_formatter=>false, :profile_ruby=>false, :color=>true, :override_runlist=>[#<Chef::RunList::RunListItem:0x00000004af6578 @version=nil, @type=:recipe, @name="mycompany-7zip">], :config_file=>"C:/chef/client.rb", :specific_recipes=>[]}
[2017-01-17T08:39:16+00:00] INFO: *** Chef 12.15.19 ***
[2017-01-17T08:39:16+00:00] INFO: Platform: x64-mingw32
[2017-01-17T08:39:16+00:00] INFO: Chef-client pid: 31552
[2017-01-17T08:39:16+00:00] DEBUG: Chef-client request_id: f2ce8781-570d-45e2-affa
$character = $this->Characters->find()
->contain(['Training'])
->where(['Characters.id' => $char_id])
->matching('Training', function ($q) use ($skill_id) {
return $q->where(['Training.skill_id' => $skill_id]);
});
$character = $this->Characters
->find()
->contain(['Training'])
->where(['id' => $char_id])
->andWhere(['training.skill_id' => $skill_id]);
@ECHO OFF
setlocal EnableDelayedExpansion
FOR /F "skip=1 tokens=1-6" %%A IN ('WMIC Path Win32_LocalTime Get Day^,Hour^,Minute^,Month^,Second^,Year /Format:table') DO (
if "%%B" NEQ "" (
SET /A FDATE=%%F*10000+%%D*100+%%A
SET /A YEAR=%%F
SET /A MONTH=100+%%D
)
)
@Cylindric
Cylindric / Slic3r_config_bundle.ini
Last active August 29, 2015 14:21
Slic3r issue configuration
# generated by Slic3r 1.2.7 on Wed May 27 11:51:28 2015
avoid_crossing_perimeters = 0
bed_shape = 0x0,200x0,200x200,0x200
bed_temperature = 0
before_layer_gcode =
bottom_solid_layers = 3
bridge_acceleration = 0
bridge_fan_speed = 100
bridge_flow_ratio = 1
bridge_speed = 60
# generated by Slic3r 1.2.6 on Mon May 4 22:56:23 2015
[filament:PLA Faberdashery]
bed_temperature = 60
bridge_fan_speed = 100
cooling = 1
disable_fan_first_layers = 3
extrusion_multiplier = 1
fan_always_on = 0
fan_below_layer_time = 60
[profile]
layer_height = 0.2
wall_thickness = 1
retraction_enable = True
solid_layer_thickness = 0.6
fill_density = 20
nozzle_size = 0.35
print_speed = 30
print_temperature = 210
print_temperature2 = 0