Skip to content

Instantly share code, notes, and snippets.

View beriberikix's full-sized avatar
🐶
I have no idea what I'm doing

Jonathan Beri beriberikix

🐶
I have no idea what I'm doing
View GitHub Profile
@beriberikix
beriberikix / Dockerfile
Last active July 22, 2019 02:16
Docker environment for developing with Unikraft (http://unikraft.org/)
# Run the "hello world" app:
# cd apps/helloworld/
# make menuconfig
# Go to "Platform Configuration" and select `Linux user space`
# Go to "Library Configuration" and select `ukschedcoop` and Save
# `make` to build and `./build/helloworld_linuxu-x86_64` to run
FROM ubuntu:latest
RUN apt-get update && \
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
Well hey there!!!
</body>
</html>
const { app, BrowserWindow } = require('electron');
// Handle creating/removing shortcuts on Windows when installing/uninstalling.
if (require('electron-squirrel-startup')) { // eslint-disable-line global-require
app.quit();
}
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow;
@beriberikix
beriberikix / package.json
Created February 18, 2019 04:37
electron tl;dr
{
"name": "electron-tldr",
"productName": "electron-tldr",
"version": "1.0.0",
"description": "My Electron application description",
"main": "src/index.js",
"scripts": {
"start": "electron-forge start",
"package": "electron-forge package",
"make": "electron-forge make",
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Main Process",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"windows": {
@beriberikix
beriberikix / index.js
Created January 21, 2019 22:34
webpack tl;dr blog post
import _ from 'lodash';
import printMe from './print.js';
import './style.css';
import Icon from './icon.png';
function component() {
let element = document.createElement('div');
var btn = document.createElement('button');
element.innerHTML = _.join(['Hello', 'webpack'], ' ');

Keybase proof

I hereby claim:

  • I am beriberikix on github.
  • I am jonathanberi (https://keybase.io/jonathanberi) on keybase.
  • I have a public key ASAwpcbuRFqezDsD1tdQzkfzzsG0F_84iykAuzvKOt4PRAo

To claim this, I am signing this object:

@beriberikix
beriberikix / keybase.md
Created September 22, 2017 23:28
keybase.md

Keybase proof

I hereby claim:

  • I am beriberikix on github.
  • I am jonathanberi (https://keybase.io/jonathanberi) on keybase.
  • I have a public key ASDLgsLgyVgDQggMeGSdqvDwPkJgL3ojEV0IqXwQ59UR8wo

To claim this, I am signing this object:

export PS1="\h:\W 🚀 $ "
alias git=hub
export PATH="/Users/jberi/bin/gcc-arm/switch-gcc-arm:$PATH"
export PATH="/Users/jberi/bin/gcc-arm/gcc-arm-bin:$PATH"
export PATH="/users/jberi/library/android/sdk/platform-tools"
@beriberikix
beriberikix / osx_bootstrap.sh
Last active August 30, 2017 02:04 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - simplify3d.com