Skip to content

Instantly share code, notes, and snippets.

View frenck's full-sized avatar
🌱
Please, think about the environment 🌎

Franck Nijhof frenck

🌱
Please, think about the environment 🌎
View GitHub Profile
@frenck
frenck / hassio_ubuntu_install_commands.sh
Last active February 1, 2023 05:38
Simple install command for installing Hass.io on a Generic Ubuntu/Debian machine
Unbuntu is no longer support by the Home Assistant project.
The installation commands previous listed here, are not up 2 date, not recommended, not supported and, therefore, removed.
---
image: docker:latest
variables:
ADDON_GITHUB_REPO: frenck/addon-example
ADDON_SLUG: example
ADDON_TARGET: example
DOCKER_DRIVER: overlay2
DOCKER_HUB_ORG: frenck
#!/usr/bin/env bash
###########################################################
###########################################################
## ##
## THIS SCRIPT SHOULD ONLY BE RUN ON GENERIC LINUX ##
## ##
###########################################################
###########################################################
set -o errexit # Exit script when a command exits with non-zero status
set -o errtrace # Exit on error inside any functions or sub-shells
git clone https://github.com/bigwoof/home-assistant.github.io.git bigwoof
cd bigwoof
git remote add upstream git@github.com:home-assistant/home-assistant.github.io.git
git fetch upstream
git checkout next
git pull upstream next
git checkout patch-4
git rebase --onto next patch-4~1
git push -f
@frenck
frenck / dabblet.css
Last active October 18, 2017 12:04 — forked from Potherca/README.md
Badges for Project Stages
/**
* Badges for Project Stages
*
* @see: http://result.dabblet.com/gist/a2ae67caa3863a299ba0
* @see: http://bl.ocks.org/potherca/raw/a2ae67caa3863a299ba0
*/
@import url(https://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans+Mono);
@import url(https://pother.ca/CssBase/css/base.css);
@import url(https://pother.ca/CssBase/css/created-by-potherca.css);
@frenck
frenck / keybase.md
Created October 25, 2016 06:31
keybase.md

Keybase proof

I hereby claim:

  • I am frenck on github.
  • I am frenck (https://keybase.io/frenck) on keybase.
  • I have a public key ASATDtNXVY6wperHfHgghkHJwS3NcD1cSdLgNO5dabMhAwo

To claim this, I am signing this object:

@frenck
frenck / gist:3c83d64f6819c0a3be116d32f8333f59
Created August 3, 2016 07:33
Install Ruby nokogiri gem on OSX 10.11
gem install nokogiri -- \
--with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 \
--use-system-libraries
@frenck
frenck / cleanImages.php
Created March 6, 2016 10:00 — forked from peterjaap/cleanImages.php
Script to clean up the images tables in a Magento installation. Removes references to non-existing images, removes duplicate images, sets correct default image and deletes orphaned images from the filesystem.
<?php
/*
* This script deletes duplicate images and imagerows from the database of which the images are not present in the filesystem.
* It also removes images that are exact copies of another image for the same product.
* And lastly, it looks for images that are on the filesystem but not in the database (orphaned images).
*
* This script can most likely be optimized but since it'll probably only be run a few times, I can't be bothered.
*
* Place scripts in a folder named 'scripts' (or similar) in the Magento root.
@frenck
frenck / autoexec.cfg
Last active January 8, 2022 09:34
Frenck's CS:GO Autoexec.cfg
///////////////////////////
// Frenck's Configs
//////////////////////////
// Netcode
rate "104000"
cl_cmdrate "128"
cl_updaterate "128"
cl_interp "0"
cl_interp_ratio "1"