Skip to content

Instantly share code, notes, and snippets.

Avatar
💙
https://npm.im/twitter-lite

Dan Dascalescu dandv

💙
https://npm.im/twitter-lite
View GitHub Profile
View package-lock.json
{
"name": "website-gatsby",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@apollo/react-common": {
"version": "3.1.4",
"resolved": "https://registry.npmjs.org/@apollo/react-common/-/react-common-3.1.4.tgz",
"integrity": "sha512-X5Kyro73bthWSCBJUC5XYQqMnG0dLWuDZmVkzog9dynovhfiVCV4kPSdgSIkqnb++cwCzOVuQ4rDKVwo2XRzQA==",
@dandv
dandv / 00 - README.md
Last active Apr 7, 2020
Ubuntu locks up, trying to investigate why
View 00 - README.md

My Ubuntu 18.04 system is locking up every few minutes as described in this AskUbuntu question. This gist serves to upload various diagnostics.

@dandv
dandv / dmesg.txt
Created Dec 9, 2018
Lenovo ThinkPad X1 Carbon 6th gen touchpad and trackpoint not working
View dmesg.txt
dandv@X1C:~$ dmesg
[ 0.000000] Linux version 4.15.0-42-generic (buildd@lgw01-amd64-023) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #45-Ubuntu SMP Thu Nov 15 19:32:57 UTC 2018 (Ubuntu 4.15.0-42.45-generic 4.15.18)
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.15.0-42-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=1
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
@dandv
dandv / npm logs
Created Nov 10, 2018
Squoosh npm start fails on Chrome 70
View npm logs
dandvexternal@penguin:~$ git clone https://github.com/GoogleChromeLabs/squoosh.git
Cloning into 'squoosh'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 3042 (delta 5), reused 7 (delta 2), pack-reused 3023
Receiving objects: 100% (3042/3042), 33.59 MiB | 5.04 MiB/s, done.
Resolving deltas: 100% (1798/1798), done.
dandvexternal@penguin:~$ cd squoosh/
dandvexternal@penguin:~/squoosh$ npm install; npm run build; npm run build; npm start
@dandv
dandv / Keybase proof
Created Aug 22, 2018
'cuz someone took dandv
View Keybase proof
### Keybase proof
I hereby claim:
* I am dandv on github.
* I am dandvd (https://keybase.io/dandvd) on keybase.
* I have a public key ASBlikcLl2oBaENzk_laoLz8xlmgKcKBOUTqpLS80q3UWwo
To claim this, I am signing this object:
@dandv
dandv / imagecapture.js
Created Jul 10, 2017
Babel output for imagecapture.js
View imagecapture.js
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports'], factory);
} else if (typeof exports !== "undefined") {
factory(exports);
} else {
var mod = {
exports: {}
};
factory(mod.exports);
@dandv
dandv / mybb2discourse-topic-ids.map
Created Oct 16, 2015
Nginx map of MyBB topic ids to Discourse topic IDs for the Quantified Self Forum
View mybb2discourse-topic-ids.map
/thread-quantified-self-forum-launched /t/quantified-self-forum-launched/51 ;
/thread-best-intro-to-quantified-self-articles /t/best-intro-to-quantified-self-articles/52 ;
/thread-reaction-time-app-for-android /t/reaction-time-app-for-android/53 ;
/thread-qs-forum-ideas-for-starting-off-on-the-right-foot /t/qs-forum-ideas-for-starting-off-on-the-right-foot/54 ;
/thread-using-and-enjoying /t/using-and-enjoying/55 ;
/thread-split-todo-reorganize-the-qs-subforums /t/split-todo-reorganize-the-qs-subforums/59 ;
/thread-todo-make-the-custom-profile-fields-display-on-the-registration-page /t/todo-make-the-custom-profile-fields-display-on-the-registration-page/64 ;
/thread-how-will-you-use-the-green-goose-stickers /t/how-will-you-use-the-green-goose-stickers/65 ;
/thread-data-analysis-software /t/data-analysis-software/66 ;
/thread-registration-agreement-notice-about-health-advice /t/registration-agreement-notice-about-health-advice/67 ;
@dandv
dandv / mybb.rb-core-dump.txt
Last active Oct 15, 2015
Discourse MyBB importer mysql2 gem v0.3.20 crashes
View mybb.rb-core-dump.txt
discourse@localhost-app:/var/www/discourse/script/import_scripts$ RAILS_ENV=production ruby mybb.rb.1
loading existing groups...
loading existing users...
loading existing categories...
loading existing posts...
loading existing topics...
creating users
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rack-mini-profiler-0.9.7/lib/patches/db/mysql2.rb:6: [BUG] Segmentation fault
ruby 2.0.0p647 (2015-08-18 revision 51631) [x86_64-linux]
View mybb.rd-core-dump.txt
discourse@localhost-app:/var/www/discourse/script/import_scripts$ RAILS_ENV=production ruby mybbtopics.rb
loading existing groups...
loading existing users...
loading existing categories...
loading existing posts...
loading existing topics...
creating topics and posts
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rack-mini-profiler-0.9.7/lib/patches/db/mysql2.rb:6: [BUG] Segmentation fault
ruby 2.0.0p647 (2015-08-18 revision 51631) [x86_64-linux]
View alert.js
alert('This is the external script executing');
You can’t perform that action at this time.