- Install Termux on android device.
- Find Termux username.
-
Install "Syntax Highlighting for Code" plugin: https://ankiweb.net/shared/info/1463041493
-
In the plugin's options (
Tools > Syntax Highlighting Options
), set:- Line numbers
- Center code fragments
- Use CSS classes
-
Enter following HTML and CSS templates in
Tools > Manage Note Types > Cards
$ pacman -S xprintidle xdotool iw | |
$ while true; do idle=`xprintidle`; print `date` ' | ' 'Idle:' "$((idle/1000))s" ' | ' `xdotool getactivewindow getwindowname`; sleep 10; done | |
$ iw dev wlp2s0 info |
[ | |
{ | |
"id": 1, | |
"province": "آذربایجان شرقی", | |
"cities": [ | |
{ | |
"name": "آبش احمد", | |
"phonetic": "Ābešahmad", | |
"longitude": "47.3171388", | |
"latitude": "39.04429447" |
source: http://www.simonkrueger.com/2015/05/27/logging-django-apps-to-syslog.html
Django conf:
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format': '%(levelname)s - [%(asctime)s] - %(name)s.%(funcName)s:%(lineno)s - %(message)s'
If you're aiming for a seamless Arch Linux installation in UEFI mode, follow along as this guide will walk you through the process step by step. We'll be using LUKS (Linux Unified Key Setup) and LVM (Logical Volume Manager) partitions on LUKS to achieve full disk encryption.
Note: I have updated this doc for UEFI mode. For those with BIOS/MBR systems, you can refer to the previous version, but keep in mind that it might be outdated and no longer accurate.
If you're only interested in installing Linux and not setting up dual boot with Windows, feel free to skip the Windows-related sections.
var jsep = require('jsep'); | |
(function (root) { | |
var COMPOUND = 'Compound', | |
IDENTIFIER = 'Identifier', | |
MEMBER_EXP = 'MemberExpression', | |
LITERAL = 'Literal', | |
THIS_EXP = 'ThisExpression', | |
CALL_EXP = 'CallExpression', |
#!/bin/bash | |
# Usage: | |
# ./upvpn.sh "VPN Connection Name" | |
VPN="$1" | |
trap "exit 0" SIGINT SIGTERM | |
while true; do |
<?xml version="1.0" encoding="utf-8"?> | |
<colorTheme id="28852" name="IceDream" modified="2014-07-23 15:43:53" author="Mohammad Javad Naderi"> | |
<searchResultIndication color="#DDDDDD" /> | |
<filteredSearchResultIndication color="#DDDDDD" /> | |
<occurrenceIndication color="#DDDDDD" /> | |
<writeOccurrenceIndication color="#DDDDDD" /> | |
<findScope color="#BCADAD" /> | |
<deletionIndication color="#9b5656" bold="false" /> | |
<sourceHoverBackground color="#EEEEEE" /> | |
<singleLineComment color="#BBBBBB" italic="true" /> |
style "gtkcompact" { | |
# font_name="Liberation 8" | |
GtkButton::defaultborder={0,0,0,0} | |
GtkButton::defaultoutsideborder={0,0,0,0} | |
GtkButtonBox::childminwidth=0 | |
GtkButtonBox::childminheigth=0 | |
GtkButtonBox::childinternalpadx=0 | |
GtkButtonBox::childinternalpady=0 | |
GtkMenu::vertical-padding=0 | |
GtkMenuBar::internalpadding=0 |