Skip to content

Instantly share code, notes, and snippets.

eval $(xdotool getmouselocation --shell)
while :; do
XOLD=$X
YOLD=$Y
eval $(xdotool getmouselocation --shell)
[ $(( XOLD - X )) -gt 10] && echo "Down swipe"
sleep 0.1
done
# Generated by iptables-save v1.6.2 on Mon Jul 9 10:34:48 2018
*nat
:PREROUTING ACCEPT [1742:117923]
:INPUT ACCEPT [1740:117217]
:OUTPUT ACCEPT [32:2676]
:POSTROUTING ACCEPT [32:2676]
COMMIT
# Completed on Mon Jul 9 10:34:48 2018
# Generated by iptables-save v1.6.2 on Mon Jul 9 10:34:48 2018
*raw
pub mod text;
use text::zip::fromString;
use text::zip::toString;
fn main() {
println!("{}", fromString("a").toString())
}
pub fn toString(&self) -> String {
self.up.push(& self.cur);
self.up.extend(self.down.into_iter());
self.up.join("\n")
}
use std::cmp;
/// Position within a line
pub type Pos = usize;
/// Text zipper
pub struct Zip<'a> {
/// Lines before the current line
prev: Vec<&'a str>,
use std::cmp;
use std::mem;
/// Position within a line
pub type Pos = usize;
/// Text zipper
pub struct Zip<'a> {
/// Lines before the current line
prev: Vec<&'a str>,
let (Just requestVerification) = loginPage ^. responseBody
. to parseTags
. to (find (~== "<input name='__RequestVerificationToken'>"))
& mapped
%~ fromAttrib "__RequestVerificationToken"
ncurses = (pkgs.ncurses.overrideAttrs (oldAttrs: {
configureFlags = oldAttrs.configureFlags ++
pkgs.lib.optionals pkgs.targetPlatform.isMinGW [
"--enable-sp-funcs"
"--enable-term-driver"
];
preFixup = pkgs.lib.optionalString (!pkgs.hostPlatform.isCygwin && !enableStatic) ''
rm "$out"/lib/*.a
'';
{ pkgs, ... }:
{
imports = [ /etc/nixos/hardware-configuration.nix ];
boot = {
kernelParams = [ "quiet" "splash" "acpi_osi=Linux" ];
loader = {
systemd-boot.enable = true;
{ pkgs, ... }:
_:
[]