Skip to content

Instantly share code, notes, and snippets.

View imme-emosol's full-sized avatar
😱
sto der skjælvende av angst – og følte et stort uendelig skrik gjennom naturen

immeëmosol imme-emosol

😱
sto der skjælvende av angst – og følte et stort uendelig skrik gjennom naturen
View GitHub Profile
@marmarek
marmarek / control-keyboard-color.sh
Last active February 17, 2022 22:32
Control keyboard color based on active qube label
#!/bin/sh
# vim: et sw=4 ts=4
# Requires https://github.com/MatMoul/g810-led installed in sys-usb (compile it and put into /usr/local/bin for example)
#
# Usage: run in dom0:
# qvm-run --localcmd=./control-keyboard-color.sh --pass-io -- sys-usb 'xargs -n1 g810-led -a'
# in Qubes 4.0, the command from qvm-run argument is ignored with --localcmd
# and we get raw qubes.VMShell, so echo the command on the first line
@hencjo
hencjo / gist:0710d51c5ba51e0aeb2d905f1e3a38f3
Created February 13, 2018 13:27
Xorg: Two keyboards with different keyboard layout.
# Use xinput to find your keyboards.
$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=11 [slave pointer (2)]
⎜ ↳ TPPS/2 IBM TrackPoint id=12 [slave pointer (2)]
⎜ ↳ Logitech Performance MX id=14 [slave pointer (2)]
⎜ ↳ E-Signal USB Gaming Keyboard id=16 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
@jcgregorio
jcgregorio / urlreflector.js
Created August 15, 2017 04:54
StateTools
this.StateTools = this.StateTools || {};
(function(sr) {
"use strict";
// A Promise that resolves when DOMContentLoaded has fired.
sr.DomReady = new Promise(function(resolve, reject) {
if (document.readyState != 'loading') {
// If readyState is already past loading then
// DOMContentLoaded has already fired, so just resolve.
resolve();
@adrolter
adrolter / qubes-sysmon.sh
Last active February 5, 2021 07:58
Qubes OS System Monitor for Lenovo ThinkPads
#!/usr/bin/sh
# qubes-sysmon.sh – Qubes OS System Monitor for Lenovo ThinkPads
# Copyright (c) 2017 Adrian Günter
#
# @Authors Adrian Günter <adrian|gntr/me>
# @URL https://gist.github.com/adrianguenter/f55958ad27de2c341a4dbc490978dd40
# @License http://opensource.org/licenses/MIT
# @Shells Bash >=4.4, Dash >=0.5
# @Usage [WATCHARGS=d] qubes-sysmon.sh <timeout-secs>
#
@dhimmel
dhimmel / 2017-04-14_richard-stallman-animal-rights.mp4
Last active November 12, 2017 10:28
Richard Stallman debates animal rights activist at Penn: https://youtu.be/eG4HrOpzQXY
This file has been truncated, but you can view the full file.
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active January 8, 2026 15:29
Hyperlinks in Terminal Emulators
@eyecatchup
eyecatchup / huawei-ascend-y300-firmware.md
Last active December 10, 2017 14:50
Huawei Ascend Y300 - Official Firmware Image B209

B209 firmware update for Huawei Ascend Y300

B209 was a regional firmware update for Germany & other European countries, officially released by Huawei in July 2014.

It fixed the dangerous Heartbleed bug and brought some other minor optimizations (e.g. improved RAM- and battery usage).

It's official package name is Y300-0100 V100R001C00B209_Firmware_West European_Channel-Others_Android 4.1_EMUI 1.0_05011KYP.

Download

@mrizvic
mrizvic / auth.py
Last active June 15, 2024 11:11
Static password and OTP authentication for OpenVPN in with custom python scripts
#!/usr/bin/env python3
import os
import sys
import datetime
import pyotp
import hashlib
### TO ALLOW ACCSSS CALL sys.exit(0)
### TO DENY ACCESS CALL sys.exit(1)
@msankhala
msankhala / laravel-multiple-env-setup.php
Last active January 7, 2026 09:57
Setup Multiple Environment for Laravel 5 Developers Way
<?php
/*
|--------------------------------------------------------------------------
| Follow this instructions:
|--------------------------------------------------------------------------
|
| Laravel takes a dead simple approach to your application environments
| so you can just specify a machine name for the host that matches a
| given environment, then we will automatically detect it for you.
@Arty2
Arty2 / tabs_to_bottom.css
Last active November 5, 2023 19:58
Firefox CSS to move tabs and adress bar to bottom of window. Use with userChrome.css (works with Firefox 71+)
This script has moved to https://github.com/Arty2/userstyles