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 May 24, 2024 08:00
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 March 10, 2023 12:44
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)
@parthpower
parthpower / !WhatsApp On Web Monitor.md
Last active January 19, 2024 14:14
Simple JS to monitor offline and online time of a contact.

WhatsApp On Web Monitor

What It does

It gives notifications when someone goes online or offline or typing. Open chat of the contact you want to monitor and start script.

Simple Way

@msankhala
msankhala / laravel-multiple-env-setup.php
Last active February 29, 2024 04:53
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.