install packages first:
yay -S xl2tpd strongswan networkmanager-l2tp
ref: https://wiki.archlinux.org/index.php/Openswan_L2TP/IPsec_VPN_client_setup
sudo systemctl enable bluetooth.service | |
sudo systemctl start bluetooth.service | |
bluetoothctl | |
[bluetooth]# power on | |
[bluetooth]# agent on | |
[bluetooth]# default-agent | |
[bluetooth]# scan on | |
[bluetooth]# pair 7C:9A:1D:B3:57:BA | |
[bluetooth]# connect 7C:9A:1D:B3:57:BA |
install packages first:
yay -S xl2tpd strongswan networkmanager-l2tp
ref: https://wiki.archlinux.org/index.php/Openswan_L2TP/IPsec_VPN_client_setup
#!/usr/bin/env python | |
import i3ipc | |
# Create the Connection object that can be used to send commands and subscribe | |
# to events. | |
i3 = i3ipc.Connection() | |
def change_titles(windows): | |
if len(windows) > 1: |
#Принудительно меняем раскладу для Konsole и kitty | |
#Для телеграм меняем на Русский | |
#Для всего остального меняю на английский | |
from i3ipc import Connection, Event | |
import subprocess,os | |
#!/usr/bin/env python3 | |
import i3ipc | |
from i3ipc import Event | |
from i3ipc.events import IpcBaseEvent, Event | |
i3 = i3ipc.Connection() | |
# callback for when workspace focus changes | |
def on_workspace(i3, e:IpcBaseEvent): | |
print(e.__dict__) |
import macros, strutils | |
type | |
TokenKind = enum | |
FInt, FString, Text | |
Token = object | |
case kind: TokenKind | |
of FInt, FString: nil | |
of Text: c: String |
#!/usr/bin/env python | |
import argparse | |
import bson | |
import datetime | |
import struct | |
import sys | |
INDENT_SPACES = ' ' | |
def read_bson_file(file, as_class=dict, tz_aware=True, uuid_subtype=bson.OLD_UUID_SUBTYPE): |
""" | |
The MIT License (MIT) | |
Copyright (c) 2015 Mat Leonard | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
# writing c1 class definition to module mod1 | |
cs = """ | |
class c1(object): | |
att = 1 | |
def m1(self): | |
self.__class__.att += 1 | |
# printing class name, class-id, and the id of the class, which happens to be its memory address | |
print "uno:", self.__class__, "class-id:", id(self.__class__), "att:", self.__class__.att | |
""" |