Skip to content

Instantly share code, notes, and snippets.

mlgrm's run ubuntu in crostini

this gist is out of date and remains here only for reference

This is just a modification of this reddit to minimize copying and pasting, make it less interactive, and to allow creation of a username of your choice instead of the default google email address.

# #How to run Ubuntu with full Chrome OS Integration
# Here's a post that shows in detail how to make the default penguin container run Ubuntu instead of Debian:
# [Introduction to Crostini - Part 3: Using Ubuntu by default](https://linuxiumcomau.blogspot.com/2018/08/introduction-to-crostini-part-3-using.html)
Ok(evt) => match evt {
slack::Event::Message(msg) => match msg {
slack::Message::Standard{ text, .. } => match text {
Some(x) => self.process_message(x),
_ => {},
},
_ => {},
},
_ => {}
},
### Keybase proof
I hereby claim:
* I am cilquirm on github.
* I am cilquirm (https://keybase.io/cilquirm) on keybase.
* I have a public key whose fingerprint is B864 809B D36E D7C7 DB81 7FDB EB27 BF92 BD46 ACCF
To claim this, I am signing this object:
@cilquirm
cilquirm / gist:31dad05e44af3b89c9c2
Last active September 24, 2015 14:18
try example
Try.of( () -> somePotentiallyFatalOperation() )
.recover( (x) -> { logger.error("oops:",x); throw x; })
.orElse("Boo");
import groovy.json.*
def structure = '''
{
"name": "Unit 1 Keyname",
"structuralName": "unit",
"businessKey": "8a9d81d54017c6b1014017c6d4250021",
"revision": 0,
"meta": {
"type": "UNIT"
import groovy.json.*
def structure = '''
{
"name": "Unit 1 Keyname",
"structuralName": "unit",
"businessKey": "8a9d81d54017c6b1014017c6d4250021",
"revision": 0,
"meta": {
"type": "UNIT"
@cilquirm
cilquirm / gist:6185210
Created August 8, 2013 14:45
server names
authoring.content.prd.currdc.net
authoring-stg.content.poc.currdc.net
authoring-demo.content.poc.currdc.net
cms.content.prd.currdc.net
cms-stg.content.poc.currdc.net
module M
module N
class C
def say(str)
puts str
end
end
end
end
self.guid = Digest::SHA2.new.tap do |d|
d << (self.name || "NULL")
d << (self.key || "NULL")
d << (self.infogroup_id || "NULL")
d << (self.street || "NULL")
d << (self.city || "NULL" )
d << (self.state || "NULL")
end
And I press "Save" # features/step_definitions/web_steps.rb:52
private method `gsub!' called for nil:NilClass (NoMethodError)
./app/models/rewards/reward_creator.rb:8:in `create'
./app/models/rewards/new_reward_form.rb:49:in `save'
./app/controllers/admin/rewards_controller.rb:18:in `create'
./lib/e20/rack/locale.rb:10:in `call'
./lib/e20/rack/program_detector.rb:13:in `call'
./lib/e20/middleware/integration_test/exception_checker.rb:21:in `call'
./lib/e20/rack/campaign_redirecter.rb:25:in `_call'
./lib/e20/rack/campaign_redirecter.rb:13:in `call'