2024-04-04 Raphaël Doursenaud [email protected]
This a collection of notes and files used in my quest to create "Reboot to Windows" and "Reboot to Linux" scripts (and desktop shortcuts) for Linux and Windows respectively that automatically reboot my system and instruct rEFInd to auto-select the appropriate OS entry.
The key for achieving this is to modify the EFI Variable PreviousBoot
with GUID 36d08fa7-cf0b-42f5-8f14-68df73ed3740
, which rEFInd uses to store the last entry selected in the menu and, if using the +
default entry, will be used to select the default OS. By doing this, we trick rEFInd into booting the OS we choose without having to be physically there to press the keyboard.
This file contains 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
# Maintainer : Raphaël Doursenaud <[email protected]> | |
# Previous Maintainer : kuri <sysegv at gmail dot com> | |
# Contributor : Kevin C <kiven at kiven dot fr> | |
# Contributor: Alex 'AdUser' Z | |
pkgname=fusioninventory-agent | |
_pkgname="FusionInventory-Agent" | |
pkgver=2.4.0 | |
_pkgver=2.4 | |
pkgrel=1 | |
pkgdesc="An application for keeping track of the hardware and software" |
This file contains 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
#!/usr/bin/env python2.7 | |
# encoding=utf8 | |
# | |
# Copyright 2007 Google Inc. | |
# Copyright 2016 Raphaël Doursenaud | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
This file contains 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
#!/bin/sh | |
# Copyright (C) 2016 Raphaël Doursenaud | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
I hereby claim:
- I am rdoursenaud on github.
- I am rdoursenaud (https://keybase.io/rdoursenaud) on keybase.
- I have a public key ASCsNpaBh2xvtMNUop2jBO2Ga1LjKg_gOrMjHWHtfXoiGQo
To claim this, I am signing this object:
This file contains 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
<?php | |
// Run with PHP 5.x and 7.x to see the differences. | |
// SETUP | |
class Test { | |
var $property = 1; | |
} | |
$array = [ | |
0 => 'property' |
This file contains 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
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
This file contains 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
colorscheme:dolibarr | |
bright:1 | |
cs_re:yellow,red:.*EMERG.* | |
cs_re:white,red:.*ALERT.* | |
cs_re:green,red:.*CRIT.* | |
cs_re:red:.*ERR.* | |
cs_re:white,yellow:.*WARNING.* | |
cs_re:green,yellow:.*NOTICE.* | |
cs_re:green:.*INFO.* | |
cs_re:white:.*DEBUG.* |
NewerOlder