Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name New script - evasionmoto34.com
// @namespace Violentmonkey Scripts
// @match https://forum.evasionmoto34.com/
// @grant none
// @version 1.0
// @author -
// @description 08/02/2021 à 10:07:59
// ==/UserScript==
document.querySelector('[data-categoryid="22"]').style.display = 'none';
@flohw
flohw / asus c201.md
Created September 16, 2021 08:57 — forked from jcs/asus c201.md
Disabling SPI write protection, reflashing, and unbricking an Asus Chromebook C201

####Disabling SPI write protection

Put the Chromebook in developer-mode:

  • With machine powered off, hold down Esc and Refresh(F3) while hitting power button
  • At warning prompt, hit Control+D, then Enter at prompt about enabling developer mode
  • Machine will format itself

Now remove the write-protect screw to enable flashrom to flash new Coreboot/Libreboot.

Flip powered-off machine over and remove 8 philips-head screws. 2 are located under rubber feet.

resolve(route: ActivatedRouteSnapshot): Observable<T> | Promise<T> | T {
return this.list.get(route.paramMap.get('id'))
.pipe(catchError((err: HttpErrorResponse) => {
if (err.status === 404) {
this.flashes.danger('Élément non trouvé', 'L\'élément que vous cherchez n\'exsite pas.');
this.router.navigate([this.redirectTo]);
return EMPTY;
}
@flohw
flohw / annimation.js
Last active May 13, 2020 07:02
THREE.js Image Transition
// https://codepen.io/zadvorsky/pen/PNXbGo
window.onload = init;
console.ward = function() {}; // what warnings?
function init() {
var root = new THREERoot({
createCameraControls: !true,
antialias: (window.devicePixelRatio === 1),
fov: 80
@flohw
flohw / Controller.php
Last active November 6, 2019 12:05
Regrouper des annotations Symfony
<?php
namespace App\Controller;
use App\Rest\Annotations\PaginationParams;
use FOS\RestBundle\Controller\Annotations as FOSRest;
use FOS\RestBundle\Request\ParamFetcherInterface;
class ArticleListController extends AbstractFOSRestController
{
@flohw
flohw / 0-Chromebook.md
Last active May 28, 2019 19:28
Chromebook configuration

See some of the configuration files bellow

Complete file name should be added at the top of the file in comment.

@flohw
flohw / Install arch linux chromebook
Last active January 23, 2022 12:55
Archlinux on chromeos
https://gist.github.com/flohw/34d67952027690203323cd04016a9089 # only the material part
-------
-- THEN
-------
sudo /usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification --partition 2
sudo /usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification --partition 4
reboot
@flohw
flohw / 00-install.md
Last active January 23, 2022 14:31
ArchLinux installation

ArchLinux installation

Keyboard

loadkeys fr-latin1 # Select fr-latin1 keymap

Installation process

Partitioning

@flohw
flohw / index.css
Created November 16, 2017 07:25
Notation étoiles CSS
body {
background: #FDFDFD;
font-family: "Segoe WP","Segoe UI", Helvetica, Arial, sans-serif;
text-align:center;
}
h1, h2 {
color: #888;
margin:0;
font-weight:normal;
}
@flohw
flohw / config.yml
Last active October 25, 2017 08:37
Générer des PDF grâce à wkhtml avec docker
framework:
assets:
base_urls:
- 'http://%assets.request_context.host%'
- 'https://%assets.request_context.host%'