A simple guide to install PyQt5 on Mac OS X 10.9 (Maverick) and use python 3.4 on a virtualenv.
- xcode 5.1.1
- python 3.4.0
- Qt libraries 5.2.1
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"os" | |
) |
For symmetic encryption, you can use the following: | |
To encrypt: | |
openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt | |
To decrypt: | |
openssl aes-256-cbc -salt -a -d -in encrypted.txt -out plaintext.txt | |
For Asymmetric encryption you must first generate your private key and extract the public key. |
function onOpen(e) { | |
DocumentApp.getUi().createAddonMenu() | |
.addItem("Shorten Links", 'displayLinks') | |
.addToUi(); | |
} | |
function onInstall(e) { | |
onOpen(e); | |
} |
using Microsoft.Extensions.Configuration; | |
using System; | |
namespace CoreConsole { | |
public interface ICustomService { | |
} | |
public class CustomService : ICustomService { | |
public CustomService(IConfigurationRoot config) { |
The current kernel/drivers of Fedora 24 do not support the Wifi chip used on my Mac Book Pro. Proprietary Broadcom drivers are packaged and available in the rpmfusion repo.
Verify that your card is a Broadcom using: lspci -vnn -d 14e4:
Sample output:
02:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)
Install the rpmfusion repo, note only "nonfree" is required, as the Broadcom Driver is proprietry: http://rpmfusion.org/
Last updated March 13, 2024
This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
1. Install oh-my-zsh | |
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" | |
2. Clone necessary plugins. | |
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
3. Add plugins to ~/.zshrc as | |
plugins = ( [plugins...] zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting) |
// buildMagic.cpp | |
// juanfc 2018-01-17 | |
// Using Siamese method fill a Magic Square Matrix, | |
// odd fixed size. | |
// We have used a big square matrix, but used | |
// an extra parameter to restrict to that size | |
// | |
// Testing it building magic matrices up to a size | |
// checking they really are magic and printing them | |
// https://gist.github.com/6db44e77b75d3aacdfa70bdfb7972ef1 |
// 04.pattern.cpp | |
// juanfc 2018-02-06 | |
// | |
#include <iostream> | |
#include <array> | |
using namespace std; | |
const int PATLENGTH = 5; | |
const int NNONREPWORDS = 100; |