javascript:(function(){
allowCopyAndPaste = function(e){
e.stopImmediatePropagation();
return true;
};
document.addEventListener('copy', allowCopyAndPaste, true);
document.addEventListener('paste', allowCopyAndPaste, true);
document.addEventListener('onpaste', allowCopyAndPaste, true);
})(); | # Based on CentOS7 fork of @smartmadsoft: https://gist.github.com/moneytoo/ab3f34e4fddc2110675952f8280f49c5 | |
| # "6" for CentOS6 or Amazon Linux, "7" for CentOS7 | |
| CENTVER="6" | |
| OPENSSL="openssl-1.1.0-pre5" | |
| NGINX="nginx-1.13.0-1" | |
| #yum clean all | |
| # Install epel packages (required for GeoIP-devel) |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| {"collected":["glasses-1","glasses-2","glasses-3","glasses-4","hat-1","hat-2","hat-3","hat-4","hat-5","hat-6","hat-7","hat-8","toy-1","toy-2","toy-3","toy-4","toy-5","toy-6","toy-7","toy-8"],"active":{"hat":"hat-8","toy":"toy-3","glasses":"glasses-3"},"unseen":[],"shuffle":false} |
| #!/usr/bin/env python3 | |
| from os import path, makedirs | |
| from PIL import Image | |
| import image2gif | |
| def splitImage_2x2(image): | |
| w, h = image.size | |
| assert((w % 2, h % 2) == (0, 0)) |
Update 04.04.2020: Please take a look at many of the forks of this gist or comments, where people have updated or improved upon the code. I have not needed this in a long time, which is why the original document has not been updated and the code probably does not work. Stay secure and only copy and paste code that you trust.
There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.
Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes (beware, thro
| # Config for GNU GRand Unified Bootloader (GRUB) (2) | |
| # /boot/grub2/grub.cfg | |
| # or | |
| # /boot/grub/grub.cfg | |
| # Mostly only 'legacy' CSM/BIOS boot methods currently. | |
| # Unable to boot loop entries with Secure Boot | |
| # Notes: | |
| # Description: | |
| # This grub.cfg file was created by Lance http://www.pendrivelinux.com |
| @Grab(group="org.codehaus.groovy.modules.http-builder", module="http-builder", version='0.5.2') | |
| import groovyx.net.http.RESTClient | |
| import groovy.util.slurpersupport.GPathResult | |
| import groovy.json.* | |
| keystone = new RESTClient( 'http://10.0.1.49:5000/v2.0/' ) | |
| resp = keystone.post( path : 'tokens', | |
| body : [auth:[passwordCredentials:[username: "admin", password:"stack"], tenantId: "2ba2d60c5e8d4d1b86549d988131fe48"]], |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| Set-PSReadlineOption -BellStyle None | |
| # Clone `https://github.com/dahlbyk/posh-git.git` to C:\Gits | |
| Import-Module 'C:\Gits\posh-git\src\posh-git.psd1' | |
| set-executionpolicy Unrestricted process | |
| $baseDir = Split-Path -parent $MyInvocation.MyCommand.Definition | |
| #. "$baseDir\hand.ps1" | |
| # General actions | |
| function edit ($file) { & "${env:ProgramFiles(x86)}\Notepad++\notepad++.exe" $file } |