Skip to content

Instantly share code, notes, and snippets.

View kikislater's full-sized avatar
🏄‍♂️

Sylvain POULAIN kikislater

🏄‍♂️
View GitHub Profile
@kikislater
kikislater / eMotion_3.5_for_ebee_classic.pol
Last active September 3, 2022 07:53
Sensefly eMotion 3.5 for ebee classic running in Linux with wine under PlayOnLinux
#!/bin/bash
# Last revision : (2021-04-12)
# Tested : Manjaro Linux
# Author : Sylvain POULAIN
# Script licence : GPLv3
# This script is designed for PlayOnLinux and PlayOnMac.
# CHANGELOG
# [Sylvain POULAIN] (2021-04-12)
# Script creation : using wine 4.0
@kikislater
kikislater / better_surfline.js
Created October 14, 2020 05:02 — forked from samtay/better_surfline.js
Reveal more forecast data
// ==UserScript==
// @name Free Surfline Forecasts
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Unblurr restricted forecast data. They are dumb enough to actually put the real data in the DOM.
// @author samtay
// @match http*://www.surfline.com/*
// @grant none
// ==/UserScript==
@kikislater
kikislater / Git force pull to overwrite local files
Created September 26, 2020 05:35
Git clean and force pull to overwrite local files
# Git clean and force pull to overwrite local files
git reset --hard HEAD
git clean -f -d ## -n to get it interactive
git pull
@kikislater
kikislater / Manjaro gpg key errors
Last active January 21, 2024 10:09
Manjaro gpg error
sudo rm -R /etc/pacman.d/gnupg/
sudo rm -R /root/.gnupg/ # only if the directory exists
sudo gpg --refresh-keys
sudo pacman-key --init
sudo pacman-key --populate
# add keyserver to gpg.conf
echo 'keyserver hkp://keys.openpgp.org' | sudo tee -a /etc/pacman.d/gnupg/gpg.conf
sudo pacman-key --refresh-keys
sudo pacman -S archlinux-keyring manjaro-keyring
sudo rm /var/cache/pacman/pkg/*.sig
@kikislater
kikislater / userContent.css
Created August 11, 2020 18:50
userContent.css
* {
-moz-animation: none !important;
animation: none !important;
}
@kikislater
kikislater / powertop.service
Created July 25, 2020 14:21
powertop.service
[Unit]
Description=Powertop tunings
[Service]
Type=oneshot
ExecStart=/usr/bin/powertop --auto-tune
[Install]
WantedBy=multi-user.target
#
# ~/.bashrc
#
[[ $- != *i* ]] && return
colors() {
local fgc bgc vals seq0
printf "Color escapes are %s\n" '\e[${value};...;${value}m'
# ------------------------------------------------------------------------------
# tlp - Parameters for power saving
# See full explanation: https://linrunner.de/en/tlp/docs/tlp-configuration.html
# Notes:
# - Some parameters are disabled, remove the leading '#' to enable # them;
# shown values are suggestions not defaults
# - Default *: intrinsic default that is effective when the parameter is missing
# or disabled by a leading '#'; use PARAM="" to disable intrinsic defaults for
# parameters with text string values
@kikislater
kikislater / mprime-phc-setup.sh
Created March 9, 2020 07:35
Script to auto find undervolt CPU with PHC method : https://wiki.archlinux.org/index.php/PHC
#!/bin/bash
# Find lowest vids for PHC so that mprime doesn't find errors.
# Shouldn't crash the computer, but might.
#####################################
# Parameters.
# short_test_length should be between 15 and 60 s.
# Use a longer length to avoid crashing during the test.
@kikislater
kikislater / comment.sh
Last active January 22, 2020 06:47 — forked from haisum/script.sh
comment and uncomment lines in bash script via sed
sed -i '/<pattern>/s/^/#/g' file #comment
sed -i.bak '/argtypes/s/^/#/' file #comment and backup
sed -i '/<pattern>/s/^#//g' file #uncomment