Skip to content

Instantly share code, notes, and snippets.

View mishudark's full-sized avatar
:octocat:
Rocking

mishudark mishudark

:octocat:
Rocking
View GitHub Profile
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@mishudark
mishudark / README-Template.md
Created July 21, 2019 08:36 — forked from ramantehlan/README-Fancy.md
README template I use for most of my projects.

Introduction

  • Add your project logo.
  • Write a short introduction to the project.
  • If you are using badges, add them here.

📒 Index

# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# The analysis_options.yaml file at the repository root is the source of truth,
# and the other analysis_options.yaml files in the experiences repo
# mere copies of it.
analyzer:
exclude:
- '**/generated/**'
linter:
@mishudark
mishudark / presentations
Created June 12, 2019 08:10
Rust + fuchsia
https://drive.google.com/open?id=1M4X5RYPOnzKeg0P3qK4hRhPCD3cv605N
https://drive.google.com/open?id=1Q6Hj0o04fUjT-aZSZbJtUpgHb1wtSvW3
# Copyright 2018 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
local_repository(
name = "fuchsia_sdk",
path = "./",
)
@mishudark
mishudark / BUILD
Last active January 16, 2019 10:16
bazel gazelle
load("@io_bazel_rules_go//go:def.bzl", "gazelle")
gazelle(
name = "gazelle",
prefix = "github.com/google/go-github",
)
const html = `<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color:#000;
}
.video-foreground,
.video-background iframe {
position: absolute;
redred
Especially in things like Ryzen where every core can talk to any other core arbitrarily
09:58 travisg
ryzen is not special at all
travisg
it's the definition of a symmetric multiprocessing system: each cpu is equal
redred
Really? AFAIK with intel core to core communication goes through a ringbus
developerhdf
travisg: So the real upside though is security and being able to update an os separately from its drivers? ie reduce fragmentation and increase the lifespan of devices?
@mishudark
mishudark / pacman.sh
Created May 29, 2017 01:38
pacman on terminal
#!/bin/zsh
initializeANSI()
{
esc="$(echo -en '\e')"
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
@mishudark
mishudark / Dockerfile
Created May 12, 2017 20:49
Go multistage static linked
FROM golang:alpine
WORKDIR /go/src/github.com/mishudark/hello
RUN mkdir -p cmd/hello
COPY main.go cmd/hello/
RUN CGO_ENABLED=0 GOOS=linux go install -ldflags "-s" -a -installsuffix cgo ./cmd/...
FROM alpine:latest
RUN apk --no-cache add ca-certificates