🏋️♂️
This file contains hidden or 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
# | |
# A fatal error has been detected by the Java Runtime Environment: | |
# | |
# SIGSEGV (0xb) at pc=0x00007fbddfd00632, pid=1, tid=203 | |
# | |
# JRE version: OpenJDK Runtime Environment (17.0.5+8) (build 17.0.5+8-Ubuntu-2ubuntu120.04) | |
# Java VM: OpenJDK 64-Bit Server VM (17.0.5+8-Ubuntu-2ubuntu120.04, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) | |
# Problematic frame: | |
# V [libjvm.so+0xae2632] | |
# |
This file contains hidden or 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
package mongouuid | |
import ( | |
"fmt" | |
"github.com/google/uuid" | |
"go.mongodb.org/mongo-driver/bson/bsontype" | |
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore" | |
) |
This file contains hidden or 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
set nocompatible " don't try to be compatible with vi | |
syntax enable | |
set number " show line numbers | |
set noerrorbells " no sound on error | |
set visualbell | |
set encoding=utf-8 | |
set wrap | |
set expandtab " spaces instead of tabs | |
set tabstop=4 " 1 tab = 4 spaces | |
set history=1000 |
This file contains hidden or 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
package mycrypto | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/base64" | |
"io" | |
"time" | |
) |
This file contains hidden or 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
const flattenArray = input => { | |
if (!Array.isArray(input)) { | |
throw new Error("Input must be an array") | |
} | |
let result = [] | |
for (let element of input) { | |
if (Array.isArray(element)) { | |
result = result.concat(flattenArray(element)) | |
} else { |
This file contains hidden or 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
package main | |
import ( | |
"sync" | |
"fmt" | |
"time" | |
) | |
func main() { | |
lock := sync.Mutex{} |
This file contains hidden or 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
package main | |
// Here's a simple example to show how to properly terminate multiple go routines by using a context. | |
// Thanks to the WaitGroup we'll be able to end all go routines gracefully before the main function ends. | |
import ( | |
"context" | |
"fmt" | |
"math/rand" | |
"os" |
This file contains hidden or 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
'atom-text-editor': | |
'ctrl-d': 'editor:delete-line' | |
'ctrl-y': 'editor:duplicate-lines' | |
'ctrl-w': 'core:close' |
This file contains hidden or 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
sudo apt install alien -y | |
sudo alien --scripts bluejeans_1.28.9-2_amd64.rpm # or whatever is the file you downloaded from the bluejeans website | |
sudo dpkg -i bluejeans_1.28.9-2_amd64.deb | |
cd /lib/x86_64-linux-gnu | |
sudo ln -s libudev.so libudev.so.0 | |
# now you can launch bluejeans | |
/opt/bluejeans/bluejeans-bin |
This file contains hidden or 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
/** | |
* Once this is running open your browser and hit http://localhost | |
* You'll see that the request hits the proxy and you get the HTML back | |
*/ | |
'use strict'; | |
const net = require('net'); | |
const http = require('http'); |
NewerOlder