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
class MailTruck | |
attr_accessor :driver, :route | |
def initialize( driver, route ) | |
@driver, @route = driver, route | |
end | |
end | |
m = MailTruck.new( "Harold", ['12 Corrigan Way', '23 Antler Ave'] ) | |
m.instance_variable_set('@speed', 45) |
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
require 'net/http' | |
require 'csv' | |
require 'json' | |
class HaproxyStats | |
NAMES = { | |
pxname: 'Proxy Name', | |
svname: 'Service name', | |
qcur: 'Current queue', | |
qmax: 'Maximum queue', |
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
Citrix Receiver on ubuntu-18.04 | |
There's a bug in icaclient_13.9.1.6_amd64.deb when you are trying to connect to the desktop. You'll get something like: | |
Cannot connect to "0.0.0.2-Remote Desktop_" | |
No such file or directory. Verify you connection settings and try again. | |
It looks like this: https://askubuntu.com/questions/1033685/cannot-connect-to-remote-desktop-with-citrix-receiver | |
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
component = require("component") | |
sides = require("sides") | |
colors = require("colors") | |
rs = component.proxy("66f08be3-347e-4828-9aa4-b7ef47826227") | |
pool = component.proxy("f4743c6f-128d-4fe7-903f-9450cf82f10a") | |
pres = component.proxy("f393c3c2-5f9d-4504-b552-f097cf5a5e8d") | |
dropper = component.proxy("2734b56a-e57f-4485-b731-4bf2e7ba79b4") | |
sdropper = sides.south -- the side where the dropper is located |
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
0417331a1caa3b74022ad00a8b6478343b8fa137eff39281271a399c0ad9b88c9e75dd59ab08c7b15835d721feb3411cada47038b2fa5e293a697c6068532ea7d7 |
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
$ php artisan schedule:daemon | |
[2018-01-07 12:11:24] Starting schedule:daemon | |
[2018-01-07 12:11:24] Waiting for next minute | |
[2018-01-07 12:12:00] running main loop | |
Running scheduled command: App\Jobs\CreateSnapshot | |
[2018-01-07 12:13:00] running main loop | |
Running scheduled command: App\Jobs\CreateSnapshot | |
[2018-01-07 12:14:00] running main loop | |
Running scheduled command: App\Jobs\CreateSnapshot | |
[2018-01-07 12:15:00] running main loop |
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
#!/bin/bash | |
inputfiles=(*.mp4) | |
declare -a outputfiles | |
for file in "${inputfiles[@]}" | |
do | |
outputfiles+=("${file%.*}.test.${file##*.}") | |
done |
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
root@pollux:/etc/powerdns/bind# cat 0.168.192.ip-addr.arpa.zone | |
$ORIGIN 0.168.192.in-addr.arpa. ; start of this zone file in the name space, not necessary if included from named.conf | |
$TTL 1d ; default expiration time of all resource records without their own TTL value | |
@ IN SOA ns.example.com postmaster.example.com. ( ; @ is replaced with . in email address | |
2014022602 ; serial number of this zone file | |
1d ; slave refresh (1 day) | |
2h ; slave retry time in case of a problem (2 hours) | |
4w ; slave expiration time (4 weeks) | |
1h ; minimum caching time in case of failed lookups (1 hour) |
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
# SNIPPET FROM MY MODULE # | |
user { 'myuser': | |
require => Package["bla"], | |
name => 'myuser', | |
password => '$6$OszcHZZq$/PLagjQvt3jG/zfM1S/vU5vF4dMEXzdrPcc2.Iih01TxhN8004sQIKJpXQd5K7JySWIHSGwTHnY0mKrqFQd3H1', | |
ensure => present, | |
home => '/opt/myuser', | |
comment => 'myuser agent user (managed by puppet)', | |
managehome => true, | |
shell => '/bin/bash', |
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
using System; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using MyNamespace; | |
namespace MyNamespaceTests | |
{ | |
[TestClass] | |
public class EncryptionTests | |
{ | |
[TestMethod] |
NewerOlder