Skip to content

Instantly share code, notes, and snippets.

View ashusvnath's full-sized avatar

Suhas Vishwanath ashusvnath

View GitHub Profile
@ashusvnath
ashusvnath / sample output
Created February 16, 2020 17:06
Go tour crawler implementation sample output
~/Documents/code/play/crawler |master U:2 ✗|
→ go clean -x && go build && ./crawler
cd /Users/vhasus/Documents/code/play/crawler
rm -f crawler crawler.exe crawler.test crawler.test.exe caching_fetcher caching_fetcher.exe crawler crawler.exe fake_fetcher fake_fetcher.exe fetcher fetcher.exe log log.exe main main.exe
Crawl output:
found at https://golang.org/: "The Go Programming Language"
not found: https://golang.org/cmd/
found at https://golang.org/pkg/: "Packages"
found at https://golang.org/pkg/fmt/: "Package fmt"
found at https://golang.org/pkg/: "Packages"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
int isDebug = 0;
void debug(const char *format, ...){
va_list args;
if(isDebug){
va_start(args, format);
@ashusvnath
ashusvnath / .xsession-errors
Created October 14, 2018 12:05
Errors when starting sugar desktop manager on pinebook
openConnection: connect: No such file or directory
cannot connect to brltty at :0
conky: desktop window (25d) is root window
conky: drawing to desktop window
conky: forked to background, pid is 5613
[6173:6173:1014/172143.358666:ERROR:sandbox_linux.cc(379)] InitializeSandbox() called with multiple threads in process gpu-process.
[6127:6127:1014/172144.808104:ERROR:gpu_process_transport_factory.cc(1007)] Lost UI shared context.
[1:1:1014/172145.299613:ERROR:webthread_impl_for_utility_thread.cc(19)] Not implemented reached in virtual blink::ThreadScheduler *blink::scheduler::WebThreadImplForUtilityThread::Scheduler() const
[1:1:1014/172242.810606:ERROR:webthread_impl_for_utility_thread.cc(19)] Not implemented reached in virtual blink::ThreadScheduler *blink::scheduler::WebThreadImplForUtilityThread::Scheduler() const

Keybase proof

I hereby claim:

  • I am vhasus on github.
  • I am vhasus (https://keybase.io/vhasus) on keybase.
  • I have a public key ASCsSZ-aLuWaQveHy6AazByEVCHCdZHEPLYu4Rr7Cc2ehwo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am vhasus on github.
* I am vhasus (https://keybase.io/vhasus) on keybase.
* I have a public key ASCsSZ-aLuWaQveHy6AazByEVCHCdZHEPLYu4Rr7Cc2ehwo
To claim this, I am signing this object:
@ashusvnath
ashusvnath / gist:6998709
Created October 15, 2013 21:09
Faulty agent host
using internal journal
Adding 499992k swap on /dev/xvdc1. Priority:-1 extents:1 across:499992k SS
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
ip6_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (3917 buckets, 15668 max)