This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdbool.h> | |
#include <stddef.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <emscripten.h> | |
#define SCREEN_W 64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import selectors | |
import socket | |
from ctypes import BigEndianStructure, Structure, c_int32, c_int64, c_uint16 | |
from enum import IntEnum | |
from functools import partial | |
EV_KEY = 1 | |
EV_KEY_VALUE = {0: '\x1b[31mreleased\x1b[0m', | |
1: '\x1b[32mdepressed\x1b[0m', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# proxychains shotcut | |
proxy-command-line() { | |
[[ -z $BUFFER ]] && zle up-history | |
[[ $BUFFER == sudo\ * ]] && LBUFFER="sudo proxychains ${LBUFFER/sudo /}" | |
[[ $BUFFER != proxychains\ * ]] && [[ $BUFFER != sudo\ proxychains\ * ]] && LBUFFER="proxychains $LBUFFER" | |
} | |
zle -N proxy-command-line | |
# Defined shortcut keys: [Esc] [Esc] [p] | |
bindkey "\e\ep" proxy-command-line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import selectors | |
from ctypes import Structure, c_int32, c_int64, c_uint16 | |
EV_KEY = 1 | |
EV_KEY_VALUE = {0: '\x1b[31mreleased\x1b[0m', | |
1: '\x1b[32mdepressed\x1b[0m', | |
2: '\x1b[33mrepeated\x1b[0m'} | |
EV_KEY_VALUE_UNKNOWN = '\x1b[37;41;5munknown\x1b[0m' | |
EV_DEVICE = "/dev/input/event5" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/config/yakuake.kcfg b/app/config/yakuake.kcfg | |
index 1d19d21..392c632 100644 | |
--- a/app/config/yakuake.kcfg | |
+++ b/app/config/yakuake.kcfg | |
@@ -85,6 +85,11 @@ | |
</entry> | |
</group> | |
<group name="Appearance"> | |
+ <entry name="Blur" type="Bool"> | |
+ <label context="@label">Blur</label> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Lib/shutil.py b/Lib/shutil.py | |
index 6cfe3738f6..9b3c007596 100644 | |
--- a/Lib/shutil.py | |
+++ b/Lib/shutil.py | |
@@ -844,14 +844,29 @@ def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0, | |
return archive_name | |
-def _make_zipfile(base_name, base_dir, verbose=0, dry_run=0, logger=None): | |
+def _make_zipfile(base_name, base_dir, compress="zlib", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# vim: set nu rnu fdm=indent ts=2 sts=2 shiftwidth=2 sr nowrap : | |
TODAY=$(date +%Y%m%d) | |
echo "Running on $(sed -nE '/PRETTY_NAME/{s/PRETTY_NAME="([^"]+)"/\1/p}' /etc/os-release)..." | |
cat <<EOF | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::env; | |
use std::io::{self, Write}; | |
use std::path::Path; | |
use std::process::{Command, Stdio, Child}; | |
fn main() { | |
loop { | |
print!("> "); | |
io::stdout().flush().unwrap(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
node_activate() { | |
local _DIRNAME=${PWD##*/} | |
if ! grep -qi $_DIRNAME <<< $PS1; then | |
_OLD_PS1=$PS1 | |
export PS1="($_DIRNAME) $PS1" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LxHTSOcR7IewRyBMMEJMD0iT2oNhLZ-2P8JDLvHwfYKFDXQzvh~DcaDXrejRsxmzzhAuz47IY5f2JnXoGy~N-61GRm31PSqj5DfOd1RTtySzg19UHTV~AvtEBMDoJoUD-~TEzfrH35oRkKSSHPdTyj6nnfD44zGJqBL4ckDRcztkywWQ7LH9IFX0Xm4qPxPnXNxJGhfqQXJPyZKHGJYaWRE4cuSIvWF-a0TkAFiYd6rswsOOMRuHopHv-r4gu7olW8PNPfQWllZos5uyrtE7kMGaeT9Ua8LA0I12cB~nKsp-uBKhVBznHPTIlgdl2NsEBs1ibDaSwCvU8MChtRM-~gj7G3MSd86JxYXISzOJU1nOq1DbCMcFEUu6DybUhP2~gvSj3vEy8C5U6Wsu6YDr7WilmFUQZ2nLKvn29GoQ3gSh9FjZCzNsn2zXgahT-3JT8CXUkDASL~TQsvQSj1yHE3T4pSAzx9KzX133ELkPrMXUXXAsc5u1NmqNUMOla3l573EYrw4gJ-kat5wUJutE3YxMREHwnt954lXPYNU9W4qZZtkx4Y-I7aHMjrbju~vLzpa9O5iKHBYNOVOJWhyxSt9JzGw6Wr7~mkL8rFGXpZJfg7~8b19CTUi82W8wmqlzp5q3CzuhTMCHzjGU2k3NQ8gbWPDUNXwauXZQ2psHJdh-1-24lDuvH2bGltOgPVSLDY7JvyspE1xIHzJDlpQgRDHSJ4tEhTeNRu1BMIuIjH4vudX9o8qur9g8LOeV4rPLM0UXrhEnagngldYza03HERk1p7khJYGIAocU3dkETmjdeqPXhKa3wDOrhoeALQy8simNQ3GcSPqEuJ8Dbv2UtUVG4Ef8AATbbvU4LxdUpCn1IyT4DS1tYv1S4RXI3ZrXJIL89gPupkPncKsXKV0SQvaM7bmSJ0Bg4J8nlrGsuPa-BF4nRGjsQfqL5ZnoIw8bDR5H-jjzZqs61zahcXVVMM2OW-w~1Re~7HGxFDefZzFyks68KmM706YZN~N179Xt |
NewerOlder