P2P VPNs allow you to connect two or more hosts together and do some stuff like play games or test out services just like you were on one real physical local network (LAN). Even when you are on different continents.
{ config, lib, pkgs, ... }: | |
{ | |
imports = [ | |
<nixpkgs/nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix> | |
]; | |
nixpkgs = { | |
crossSystem.system = "armv7l-linux"; | |
}; |
import argparse | |
import importlib | |
import logging | |
import os | |
import sys | |
def main(args=None): | |
scriptname = os.path.basename(__file__) | |
parser = argparse.ArgumentParser(scriptname) | |
levels = ('DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL') |
#! /usr/bin/env python3 | |
""" | |
List all Firefox tabs with title and URL | |
Supported input: json or jsonlz4 recovery files | |
Default output: title (URL) | |
Output format can be specified as argument | |
""" |
How to use matrix.org and vector.im as an IRC client
Join the room #freenode_<#channel>:matrix.org
, replacing <#channel>
with the name of the IRC channel. For example, in order to join the #prometheus
IRC channel, join the room #freenode_#prometheus:matrix.org
on matrix.org.
In vector.im, rooms can be joined with the directory symbol on the bottom left.
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just
From This other answer on the same thread
Based on Chris Johnsen's answer:
I added this line to the [alias]
section of my git config file (~/.gitconfig
):
squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f"
See comments section for more up-to-date versions of the script. The original script is from 2014 and will not work as is.
- Open news feed preferences on your Facebook menu (browser)
- Click people or pages
- Scroll down (or click see more) until your full list is loaded
- Run the script in your browser console
Facebook will block this feature for you while you use it, depending on how much entities you try to unfollow. It automatically unblocks in a couple of hours and you will be able to continue.
#compdef insync-headless insync-portable insync | |
if [[ $CURRENT == 2 ]] | |
then | |
_values 'commands' \ | |
'accept_all_new_shares[Accept all new shares file to given account]' \ | |
'accept_share[Accept shared file to given account]' \ | |
'add_account[Add account to Insync]' \ | |
'force_sync[Force sync item]' \ | |
'get_account_information[Show information for connected acounts]' \ |
#!python | |
"""See main.__doc__""" | |
import os | |
import logging | |
import glob | |
import unittest | |
import sys |