An animated cheatsheet for smartparens using the example configuration specified here by the smartparens author. Inspired by this tutorial for paredit.
C-M-f | sp-forward-sexp |
C-M-b | sp-backward-sexp |
XZ Backdoor symbol deobfuscation. Updated as i make progress |
# Use systemd for managing NVIDIA driver suspend in drivers ====>>> PRIOR to version 470 <<<===== | |
# https://download.nvidia.com/XFree86/Linux-x86_64/450.66/README/powermanagement.html | |
# https://forums.developer.nvidia.com/t/unable-to-set-nvidia-kernel-module-parameters/161306 | |
# Please note: In Fedora Linux you may need to just install the xorg-x11-drv-nvidia-power pakage | |
# as sugested by @goombah88 in the comments below. | |
TMP_PATH=/var/tmp | |
TMPL_PATH=/usr/share/doc/nvidia-driver-460/ | |
echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=${TMP_PATH}" | sudo tee /etc/modprobe.d/nvidia-power-management.conf |
function walk(node) { | |
// I stole this function from here: | |
// http://is.gd/mwZp7E | |
var child, next; | |
var tagName = node.tagName ? node.tagName.toLowerCase() : ""; | |
if (tagName == 'input' || tagName == 'textarea') { | |
return; | |
} |
An animated cheatsheet for smartparens using the example configuration specified here by the smartparens author. Inspired by this tutorial for paredit.
C-M-f | sp-forward-sexp |
C-M-b | sp-backward-sexp |
/* | |
MIT License | |
Copyright (c) 2018 Jonas Balsfulland | |
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 | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all |
# Extended the class to address previous comments: a) redundant inserts, b) delete method | |
class Node: | |
def __init__(self, val): | |
self.val = val | |
self.parent = None | |
self.__left = None | |
self.__right = None | |
self.code = 3 | |
# First we cut the video in how many parts we want | |
# Step 1. cut the first part of the video and cut it to a separate file | |
ffmpeg.exe -ss 00:00:00.000 -t 00:02:18.00 -i recording-full.flv -c:v copy -c:a copy recording-full-part1.flv | |
# Step 2. cut the second part from original video | |
ffmpeg.exe -ss 00:03:47.000 -i recording-full.flv -c:v copy -c:a copy recording-full-part2.flv | |
# Step 3. create a file with your cut parts to concat into one video with these contents and name it whatever (i.e. videos.txt): | |
file 'C:\Path\To\recording-full-part1.flv' |
Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):