Skip to content

Instantly share code, notes, and snippets.

{
"scripts": {
"pretest": "exit 1",
"test": "exit 1",
"posttest": "echo post-test"
}
}
zypper if -- $(sudo fgrep '|remove |' /var/log/zypp/history | awk -F'|' '{print $3}' | sort --unique) | grep -B 8 'Installed : Yes'
sudo fgrep '|install|' /var/log/zypp/history | awk -F'|' '{print $3}' | sort | uniq --count | sort --human-numeric-sort
zypper --installroot /mnt in -t pattern base enhanced_base fonts kde_plasma
@awerlang
awerlang / Win10-VM
Last active February 19, 2022 01:42
unzip MSEdge*.zip
tar xf MSEdge*.ova
touch Win10.qcow2
chattr +C Win10.qcow2
qemu-img convert -O qcow2 MSEdge*.vmdk Win10.qcow2
https://www.spice-space.org/download.html
https://leduccc.medium.com/improving-the-performance-of-a-windows-10-guest-on-qemu-a5b3f54d9cf5
https://unix.stackexchange.com/questions/47082/how-to-improve-windows-perfomance-when-running-inside-kvm
@awerlang
awerlang / fix-intel_wifi_aer-avell_g1513_fire_v3
Created July 31, 2020 19:06 — forked from Brainiarc7/ fix-intel_wifi_aer-avell_g1513_fire_v3
Temporary fix for AER's excessive `severity=Corrected` logging for Intel Wireless (Avell G1513 Fire V3) (Arch Linux)
silly gist hack, why do we need you? :(
@awerlang
awerlang / bwrap-sample
Created May 18, 2020 03:20
Sample bubblewrap script
#!/usr/bin/env bash
# Use bubblewrap to run /bin/sh reusing the host OS binaries (/usr), but with
# separate /tmp, /home, /var, /run, and /etc. For /etc we just inherit the
# host's resolv.conf, and set up "stub" passwd/group files. Not sharing
# /home for example is intentional. If you wanted to, you could design
# a bwrap-using program that shared individual parts of /home, perhaps
# public content.
#
# Another way to build on this example is to remove --share-net to disable
# networking.
@awerlang
awerlang / clientrc.example
Last active May 14, 2020 22:34 — forked from streetturtle/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
# copy to ~/.config/spotify/clientrc and fill these settings
# generate from https://developer.spotify.com/dashboard/applications
SP_CLIENT_ID=""
SP_CLIENT_SECRET=""
@awerlang
awerlang / README
Last active February 22, 2024 01:24
A zypper wrapper that maximizes network throughput
zypper-download
===============
Downloads packages using any amount of available openSUSE mirrors.
Installation
------------
Copy both files to the following locations:
@awerlang
awerlang / bash-cheatsheet.sh
Created March 30, 2020 21:55 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@awerlang
awerlang / config.md
Created January 15, 2020 19:21 — forked from 0XDE57/config.md
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable.

I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

@awerlang
awerlang / lambda.js
Created April 7, 2018 18:18
aws lambda node.js
'use strict';
var net = require('net');
var repl = require('repl');
var util = require('util');
var awslambda = require('./build/Release/awslambda');
const BASE_CONTEXT = Object.freeze({
logGroupName : process.env['AWS_LAMBDA_LOG_GROUP_NAME'],
logStreamName : process.env['AWS_LAMBDA_LOG_STREAM_NAME'],
functionName : process.env['AWS_LAMBDA_FUNCTION_NAME'],