Skip to content

Instantly share code, notes, and snippets.

@tuxarch
tuxarch / DI.m3u
Created January 30, 2017 08:20 — forked from sim642/DI.m3u
Digitally Imported premium streams
#EXTM3U
#EXTINF:-1,Digitally Imported - Ambient
http://pub1.diforfree.org:8000/di_ambient_hi
#EXTINF:-1,Digitally Imported - Big Room House
http://pub1.diforfree.org:8000/di_bigroomhouse_hi
#EXTINF:-1,Digitally Imported - Breaks
http://pub1.diforfree.org:8000/di_breaks_hi
@tuxarch
tuxarch / pacaur_install.sh
Created November 15, 2017 08:06 — forked from tadly/pacaur_install.sh
A simple shell script to quickly / easily install "pacaur" on archlinux
#!/bin/sh
# If you are new to arch, I encourage you to at least read and understand what
# this script does befor blindley running it.
# That's why I didn't make a one-liner out of it so you have an easier time
# reading and understanding it :)
#
# This scripts purpose is purly to save you a few seconds on your new installation.
#
# Enjoy your time on an awesome system. Arch FTW!
@tuxarch
tuxarch / dnscrypt-setup.sh
Created November 20, 2017 03:24 — forked from Thermionix/dnscrypt-setup.sh
quick setup for dnscrypt + dnsmasq on arch
#!/bin/bash
## chose a provider from;
# less /usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv
sudo pacman -Sy --noconfirm dnscrypt-proxy dnsmasq dnsutils
cat <<-'EOF' | sudo SYSTEMD_EDITOR=tee systemctl edit dnscrypt-proxy.service
[Service]
ExecStart=
@tuxarch
tuxarch / rofi-gpaste.sh
Created November 26, 2017 17:32 — forked from tadly/rofi-gpaste.sh
rofi + gpaste
#!/usr/bin/env bash
#
# Use rofi to select an entry from gpaste
#
# Requirements:
# rofi, gpaste
#
line=`gpaste-client --oneline | rofi -dmenu -i -p gpaste: $@`
index=`echo $line | cut -d ':' -f1`
#!/bin/bash
# Retrieves the installed `pacman` package lists and syncs them with my remote git repo
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@tuxarch
tuxarch / switch_drivers.sh
Created December 2, 2017 22:40
switch drivers in arch(nvidia,nouveau)
#!/bin/bash
BRANCH=-340xx # Enter a branch if needed, i.e. -340xx or -304xx
NVIDIA=nvidia${BRANCH} # If no branch entered above this would be "nvidia"
NOUVEAU=xf86-video-nouveau
# Replace -R with -Rs to if you want to remove the unneeded dependencies
if [ $(pacman -Qqs ^mesa-libgl$) ]; then
pacman -S $NVIDIA ${NVIDIA}-libgl # Add lib32-${NVIDIA}-libgl and ${NVIDIA}-lts if needed
# pacman -R $NOUVEAU
elif [ $(pacman -Qqs ^${NVIDIA}$) ]; then

Keybase proof

I hereby claim:

  • I am tuxarch on github.
  • I am ponyashka (https://keybase.io/ponyashka) on keybase.
  • I have a public key whose fingerprint is 3951 2601 6EE7 33FE 17C8 B35C 8CC0 E7C5 9263 B6B3

To claim this, I am signing this object:

server: /etc/ssh/sshd_config
X11Forwarding yes
client: /etc/ssh/ssh_config
Host *
ForwardX11 yes
А если это не помогает, и в syslog'е "Failed to allocate internet-domain X11"
Значит sshd запутался в IPv6, и sshd надо запускать с ключом -4
@tuxarch
tuxarch / custom_archlinux_live_USB.md
Created April 17, 2019 13:32 — forked from satreix/custom_archlinux_live_USB.md
Custom Arch Linux live USB

Custom Arch Linux live USB

Setup

Install the dependencies for the archiso package:

(root): pacman -S make squashfs-tools libisoburn dosfstools patch lynx devtools git

I recommend archiso getting them from git, there is a package in the repositories, however, at this time of writing, it will not work with the instructions below. So, grab the most recent version from git and install it:

(user): git clone git://projects.archlinux.org/archiso.git && cd archiso

@tuxarch
tuxarch / pacman-upgrades-graph.py
Created May 30, 2019 20:24 — forked from aswild/pacman-upgrades-graph.py
Script to visualize the most-upgraded packages on a pacman based system
#!/usr/bin/env python3
"""
pacman-upgrades-graph.py: a script to visualize the most-upgraded packages on an pacman-based system.
"""
import argparse, os, re, shutil, subprocess, sys
parser = argparse.ArgumentParser()
parser.add_argument('-w', '--width', type=int, default=-1,
help='Max total width of graph. Defaults to terminal size, ' +