Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Building the new IKEA

Carl Sutton dogmatic69

🎯
Building the new IKEA
View GitHub Profile
View error.log
2020-03-08T14:25:15.481Z [DEBUG] plugin.terraform-provider-google_v3.11.0_x5:
2020-03-08T14:25:15.481Z [DEBUG] plugin.terraform-provider-google_v3.11.0_x5: -----------------------------------------------------
2020-03-08T14:25:15.481Z [DEBUG] plugin.terraform-provider-google_v3.11.0_x5: 2020/03/08 14:25:15 [DEBUG] Google API Request Details:
2020-03-08T14:25:15.481Z [DEBUG] plugin.terraform-provider-google_v3.11.0_x5: ---[ REQUEST ]---------------------------------------
2020-03-08T14:25:15.481Z [DEBUG] plugin.terraform-provider-google_v3.11.0_x5: POST /apis/domains.cloudrun.com/v1/namespaces/project-id-xxxxxxxxxx/domainmappings?alt=json HTTP/1.1
2020-03-08T14:25:15.481Z [DEBUG] plugin.terraform-provider-google_v3.11.0_x5: Host: europe-west1-run.googleapis.com
2020-03-08T14:25:15.481Z [DEBUG] plugin.terraform-provider-google_v3.11.0_x5: User-Agent: HashiCorp Terraform/0.12.13 (+https://www.terraform.io) Terraform Plugin SDK/1.4.0 terraform-provider-google/3.11.0
2020-03-08T14:25:15.481Z [DEBUG] plugin.terra
View advent-2019-1-a.js
const inputs = ['116860','130144','79347','120725','137692','139037','72089','133224','102168','100679','122298','132969','109196','85162','66316','68461','87608','108091','71061','85477','97748','105766','141169','94553','98932','134376','69822','104858','102584','59682','52092','105784','144100','83695','130436','105447','133102','82770','68684','103878','136774','71462','96828','74743','127523','124145','148013','103862','80052','74095','130394','125589','137576','111299','69311','63144','119014','136084','94348','109511','102493','117791','76202','138442','72724','104579','80285','56847','145460','132255','58264','60460','98995','63343','51207','133619','126155','130707','105010','104589','128527','67715','71823','82517','74115','135483','82230','127410','128969','140127','59133','145973','109430','103608','113203','133402','123971','71761','114178','52940'];
const fuel = (weight) => Math.floor(weight / 3) - 2;
const test = (input, expected) => {
const actual = fuel(input);
if (expected !== actu
View foo.c
void fn004017A0()
{
fn004017A0_entry:
esp = fp
l004017A0:
esp = esp - 0x04
Mem0[esp:word32] = ebp
ebp = esp
esp = esp - 0x04
Mem0[esp:word32] = esi
View load.java
private Object loadClass(String className, Object arg) {
Class classToLoad = null;
try {
classToLoad = Class.forName(className);
} catch (ClassNotFoundException e) {
Debugger.out(e);
return null;
View foo.js
// method works
let asyncForEach = (iterator, fn, cb) => {
// code here
};
module.exports = asyncForEach;
// method does not work
module.exports = (iterator, fn, cb) => {
// code here
View gist:ebc43b6c978e32984189c6ac04b82964
$ lspci
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:01.1 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x8 Controller (rev 06)
00:14.0 USB controller: Intel Corporation 9 Series Chipset Family USB xHCI Controller
00:16.0 Communication controller: Intel Corporation 9 Series Chipset Family ME Interface #1
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection (2) I218-V
00:1a.0 USB controller: Intel Corporation 9 Series Chipset Family USB EHCI Controller #2
00:1b.0 Audio device: Intel Corporation 9 Series Chipset Family HD Audio Controller
00:1c.0 PCI bridge: Intel Corporation 9 Series Chipset Family PCI Express Root Port 1 (rev d0)
View $q.js
console.log($q);
function asyncGreet(name) {
return $q(function(resolve, reject) {
console.log("timeout starts");
setTimeout(function() {
console.log("resolving");
console.log("resolve: ", resolve);
console.log(resolve('Hello, ' + name + '!'));
}, 2000);
});
View gist:89a8956e4b5f62a051623ecbc124aef1
pgweb:
image: sosedoff/pgweb:latest
links:
- "postgresql:db"
environment:
DATABASE_URL: "postgres://postgres:postgres@db:5432/postgres"
View keybase.md

Keybase proof

I hereby claim:

  • I am dogmatic69 on github.
  • I am dogmatic69 (https://keybase.io/dogmatic69) on keybase.
  • I have a public key whose fingerprint is 57CD 94AF F90D 1C18 C9AD B8C4 C616 7B02 CD5D 8480

To claim this, I am signing this object:

@dogmatic69
dogmatic69 / calling.php
Created Feb 2, 2016
make calling shitty methods with too many parameters much better.
View calling.php
<?php
class Foo {
function bar($a, $b, $c) {
echo '$a - $b - $c :: ' . implode(' - ', func_get_args());
}
}
function angular($callable, $args) {
$reflection = new ReflectionMethod($callable[0], $callable[1]);
$params = array();