Skip to content

Instantly share code, notes, and snippets.

View loannaflip's full-sized avatar

loannaflip loannaflip

View GitHub Profile
#!/usr/bin/busybox sh
# Created by Jacob Hrbek <kreyren@rixotstudio.cz> under GPLv3 <https://www.gnu.org/licenses/gpl-3.0.en.html> with the help in freenode.net/#bash in 28/05/2020 11:09 CET
# shellcheck shell=sh
set -e
die() {
case "$2" in
*) printf 'FATAL: %s\n' "$3 $1"
@Kreyren
Kreyren / gist:3e55e9a754e58956e1690e38b1888de7
Last active March 20, 2020 10:44
HELP-WANTED: blackscreen on amdgpu load after bootloader

After bootloader i'm getting blackscreen

monitor outputing eqvivalent of no input message

i belive that this is being triggered on initialization of amdgpu since it's happening at the point where display usually changes the resolution and adding amdgpu.si_support=0 radeon.si_support=0 in kerneli cli allows me to boot and use GUI.

This is also happening on systemrescuecd with image that worked before on this system

This issue appeared suddenly while playing witcher2 after debian sandbox update

@rkitover
rkitover / make.conf
Created August 20, 2019 10:11
gentoo make.conf
# Based on Trademark's make.conf 1.3
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
USE=${CPU_FLAGS_X86}" -bindist X alsa gnome-keyring bash-completion bluetooth cups curl cxx dbus dri fontconfig git gpm gtk gtk2 gtk3 gtk4 inotify introspection ios ipod ipv6 javascript jit joystick kde lua luajit modules mono mmap networkmanager offensive opengl openmp plasma posix postgres ppds pulseaudio qt4 qt5 rdp readline samba session sharedmem smp sound spell sqlite sasl suid systemd sysvipc tcmalloc threads truetype udev unicode upnp upnp-av usb user-session vim-syntax wayland wifi webkit wxwidgets xcb xft -sddm lightdm gles truetype type1 cleartype corefonts avahi zeroconf mdnsresponder-compat libsecret opencl"
PYTHON_TARGETS="python2_7 python3_6 python3_7"
PYTHON_SINGLE_TARGET="python3_6"
RUBY_TARGETS="ruby25 ruby26"
@xnumad
xnumad / plasmashell-autostart.md
Created August 4, 2019 01:40
KDE Plasma login doesn't automatically start plasmashell

Problem

  • Plasmashell doesn't start automatically after log-in
  • [optional] Windows of applications of previous sessions are restored which indicates that kwin loads/starts and is working automatically.
  • Condition: Manually executing kstart5 plasmashell works as intended. If this is not the case, the solution will very likely not help you!

Solution

Open "System Settings -> Startup and Shutdown -> Autostart -> Add Program" and add plasmashell (manually write it into the text field in the dialog window). (File saved in ~/.config/autostart)

Cause

The old autostart file only had the content

@praeludiumOrbis
praeludiumOrbis / whitecat-skins.md
Last active February 20, 2022 14:27
WhiteCat Skins
@s0dyy
s0dyy / Exherbo-Linux-Install.md
Last active June 27, 2024 12:10
Exherbo Linux Install (ESP / XBOOTLDR / BTRFS ON LUKS / SYSTEMD-BOOT / DRACUT)
  ________   ___    _ ______ _____  ____   ____       _____ _   _  _____ _______       _      _      
 |  ____\ \ / / |  | |  ____|  __ \|  _ \ / __ \     |_   _| \ | |/ ____|__   __|/\   | |    | |     
 | |__   \ V /| |__| | |__  | |__) | |_) | |  | |______| | |  \| | (___    | |  /  \  | |    | |     
 |  __|   > < |  __  |  __| |  _  /|  _ <| |  | |______| | | . ` |\___ \   | | / /\ \ | |    | |     
 | |____ / . \| |  | | |____| | \ \| |_) | |__| |     _| |_| |\  |____) |  | |/ ____ \| |____| |____ 
 |______/_/ \_\_|  |_|______|_|  \_\____/ \____/     |_____|_| \_|_____/   |_/_/    \_\______|______|

NVME / ESP / XBOOTLDR / BTRFS ON LUKS / SYSTEMD-BOOT / DRACUT

This guide is based on several documentations

@stevekinney
stevekinney / electron-fem-v2.md
Last active November 6, 2023 12:25
Frontend Masters: Electron Workshop (December, 2018)

Frontend Masters: Electron (Version 2)

You'll need a recent version of Node.js installed on your computer with administrative access. Yarn is not required, but Electron Forge uses it, so it would be helpful to install beforehand.

Please make sure you're using a supported platform. This is particularly important if you're running Linux.

Important note: If you're using Windows, make sure you're not using the Windows Subsystem for Linux. This will confuse Electron to thinking you're running on a Linux machine when you're really not.

We'll be using working through the following repositories over the course of the workshop:

@bryanwieger
bryanwieger / openra.md
Last active July 20, 2024 21:17
Setting up openra on aws ec2

To set up openra on AWS EC2

Disclaimer: This is not the best architected solution, so no guarantees on up-time

PreReqs:

  • Have an AWS account
  • Know basics of ssh and bash

Setting up the EC2 Server:

  1. Launch an EC2 with a Ubuntu OS. I used ami-059e7901352ebaef8 on a t2.micro
@LannyRipple
LannyRipple / rubiks-cube.md
Last active June 22, 2023 13:28
Solving a Rubik's Cube