Run this in the console:
document.querySelectorAll('span.Details-content--closed').forEach((e)=>{e.click()})
From the creator of: unzip.dev 🚀
#!/bin/bash | |
#stash all changes except for the staged ones | |
git stash push --keep-index --include-untracked -m "phpcs pre-commit stash" | |
#run phpcs on the staged files and store the exit code | |
vendor/bin/phpcs --filter=gitstaged | |
result=$? | |
#restore to the previous configuration |
Run this in the console:
document.querySelectorAll('span.Details-content--closed').forEach((e)=>{e.click()})
From the creator of: unzip.dev 🚀
Run the following in the terminal:
Install the gcc-7 packages:
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-7 -y
Set it up so the symbolic links gcc
, g++
point to the newer version:
1 - install GPG tools : https://gpgtools.org/
2 - Create new key for your github email
3 - Add key to git on your local machine: git config --global user.signingkey YOURKEY
4 - configure git to sign all commits: git config --global commit.gpgsign true
5 - add to the bottom of ~/.gnupg/gpg.conf
: (create the file if it not exists)
This python script is intended to automate the extraction of embedded certificates and keys from OpenVPN config files.
Unfortunately the GNOME Network-Manager is not able to automatically import OpenVPN config files with embedded certificates and keys. A workaround is to manually extract these and store them in separate files (e.g. see https://naveensnayak.wordpress.com/2013/03/04/ubuntu-openvpn-with-ovpn-file/).
Instructions:
Make shure all the required packages are installed. For example on Ubuntu and Debian run:
$ sudo apt-get install python3 network-manager-openvpn-gnome
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
curl -# -F file=@"foo.mov" http://192.168.0.38:8888/upload.json >/dev/null |
# Bash-Completion script for PHPUnit | |
# | |
# Created by Henrique Moody <[email protected]> | |
# | |
_phpunit() | |
{ | |
COMPREPLY=() | |
local cur="${COMP_WORDS[COMP_CWORD]}" | |
local prev="${COMP_WORDS[COMP_CWORD-1]}" |