Skip to content

Instantly share code, notes, and snippets.

View m1m1s1ku's full-sized avatar
🌀

Léonard. m1m1s1ku

🌀
View GitHub Profile
@rhukster
rhukster / _README.md
Created August 19, 2020 22:15 — forked from oleq/_README.md
A2DP audio streaming using Raspberry PI (Raspbian Jessie)

What is this all about?

This tutorial will turn your Raspberry PI into a simple Bluetooth audio receiver, which plays music through connected speakers. It's like a regular car audio system, but it can be used anywhere and it's a good value.

   Audio source (i.e. smartphone) 
                |
                v
 (((  Wireless Bluetooth Channel  )))
 |
@yzgyyang
yzgyyang / build_chromium_os.sh
Last active December 1, 2022 09:20
Build Chromium OS from Ubuntu curl -fsSL URL_HERE | sh
#!/bin/sh
set -xe
sudo apt-get install git-core gitk git-gui subversion curl lvm2 thin-provisioning-tools python-pkg-resources python-virtualenv python-oauth2client
# install depot tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
PATH=$PATH:/path/to/depot_tools
# Making sudo a little more permissive
server {
location ~* (serviceworker\.js)$ {
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
expires off;
proxy_no_cache 1;
}
}
@vlucas
vlucas / encryption.js
Last active June 7, 2024 04:27
Stronger Encryption and Decryption in Node.js
'use strict';
const crypto = require('crypto');
const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bits (32 characters)
const IV_LENGTH = 16; // For AES, this is always 16
function encrypt(text) {
let iv = crypto.randomBytes(IV_LENGTH);
let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv);
@ruario
ruario / intro-latest-widevine.md
Last active January 29, 2024 07:53
Fetches the latest Linux Widevine binary so that it can be used by Vivaldi.

With the release of Vivaldi 2.2, this page is now obsolete and unmaintained. Widevine is fetched automatically on post install of our official packages. The information below and the script are left for historical reasons but will not be updated.

If you are using something newer than Vivaldi 2.2, you should not be using this script as there is simply no need. Any need you think you have for it would be a bug IMHO and thus should be logged in a bug report. Before you do so however, you should also checkout the Vivaldi help page on Widevine, on Linux


Summary

A bunch of people asked how they could use this script with pure Chromium on Ubuntu. The following is a quick guide. Though I still suggest you at least try Vivaldi. Who knows, you might like it. Worried about proprietary componants? Remember that libwidevinecdm.so is a b

Chromium OS ft. Docker

Chromium OS is cool. Chromium OS with crouton is cooler. Chromium OS with Docker is even cooler. This is specifically a guide for the HP Chromebook 13 G1 (aka HP Spyder Chromebook), but I can't think of any reason it wouldn't work with other devices. The Chromebook Pixel 2 (2015), for example...as you'll notice, the guide this was forked from assumed that machine.

  1. Create a build environment
  2. Customize the kernel
  3. Build Chromium OS
  4. Flash Chromium OS to USB
  5. Install Chromium OS
@leg0ffant
leg0ffant / chromebook-dev.md
Last active November 23, 2021 13:23
Informatique sous Chromebook et codeurs

Configuration -- Chromebook dev -- Anthony Le Goff -- Alpharatz Consulting


#CHROMEBOOK & DEVELOPPEUR Débuter chromebook et apprendre langage informatique

Utiliser un chromebook comme machine de travail pour l'apprentissage du code est un choix de paradigme, méthode de travail orienté web et cloud computing, ici pas de maintenance PC, système d'exploitation minimal.

@copyfun
copyfun / flash_win10IoT_onto_sdcard_OSX.sh
Last active September 15, 2023 10:21
Install Windows 10 IoT core on Raspberry Pi 2 using OS X
# download iot core iso file
# curl http://go.microsoft.com/fwlink/?LinkId=616847
curl http://download.microsoft.com/download/8/C/B/8CBE5D09-B5C5-462B-8043-DAC64938FDAC/IOT%20Core%20RPi.ISO > IOT-Core-RPi.iso
# install p7zip for decompress *.iso and *.msi files
sudo port install p7zip
# decompress files
7z x IOT-Core-RPi.ISO
7z x Windows_10_IoT_Core_RPi2.msi
@anatol
anatol / config.txt
Last active August 5, 2019 19:26
Building ChromeOS kernel without chroot
earlyprintk=ttyS0,115200n8
console=tty1
console=ttyS0,115200n8
loglevel=7
init=/sbin/init
cros_secure
oops=panic
panic=-1
root=PARTUUID=%U/PARTNROFF=1
rootwait