Skip to content

Instantly share code, notes, and snippets.

@phackwer
phackwer / README-convert-properties-to-json-using-jq.md
Created August 23, 2022 09:37 — forked from drmalex07/README-convert-properties-to-json-using-jq.md
Convert properties to JSON using jq. #properties $json #jq

README

Say we have a properties file at foo.properties.

First, clean-up whitespace and empty lines, store in foo-1.properties:

cat foo.properties | \
    sed 's/[[:space:]]*=[[:space:]]*/=/' | \
    sed 's/[[:space:]]*$//' | \

sed '/^$/d' > foo-1.properties

1. Create a new directory;
mkdir Apple\ Enterprise
cd Apple\ Enterprise
2. Generate a certificate signing request
openssl req -nodes -newkey rsa:2048 -keyout ios_enterprise.key -out CertificateSigningRequest.certSigningRequest
Note: If you want to password-protect the .pem key, ditch the -nodes switch on step 2:
openssl req -newkey rsa:2048 -keyout ios_enterprise.key -out CertificateSigningRequest.certSigningRequest
@phackwer
phackwer / touchpad-fix
Created December 5, 2021 01:12 — forked from v-dimitrov/touchpad-fix
touchpad fn key fix
#!/bin/sh
# toggle touch pad
device=`xinput list --name-only | grep -i touchpad`
isOn=`xinput list-props "$device" | grep -i enabled | tail -c 2`
iconEnabled='input-touchpad-symbolic'
iconDisabled='touchpad-disabled-symbolic'
case "$isOn" in
0)
@phackwer
phackwer / XGH - en.txt
Created April 1, 2019 13:21 — forked from banaslee/XGH - en.txt
eXtreme Go-Horse Process
eXtreme Go Horse (XGH) Process
Source: http://gohorseprocess.wordpress.com
1. I think therefore it's not XGH.
In XGH you don't think, you do the first thing that comes to your mind. There's not a second option as the first one is faster.
2. There are 3 ways of solving a problem: the right way, the wrong way and the XGH way which is exactly like the wrong one but faster.
XGH is faster than any development process you know (see Axiom 14).
@phackwer
phackwer / Rancher.md
Created September 12, 2018 17:06 — forked from lmmendes/Rancher.md
Running Rancher locally (with two hosts) using MacOS Docker and VirtualBox

Rancher

Rancher is an open source project that provides a complete platform for operating Docker in production. It provides infrastructure services such as multi-host networking, global and local load balancing, and volume snapshots.

This documentation describes how to run Rancher localy for development and evaluation propuses.

I'm using Docker for OSX (native) but even for this to work you will need to install VirtualBox.

Launching Management Rancher Server

@phackwer
phackwer / gist:a2d56b0824c091509f5555112de785b4
Created November 5, 2017 09:56 — forked from bluefuton/gist:1468061
OS X: replace tabs with spaces in all files using expand
find . -name "*.php" | while read line; do expand -t 4 $line > $line.new; mv $line.new $line; done
@phackwer
phackwer / 0 - Instalação Ubuntu Gnome - by Phackwer (easy use)
Last active November 29, 2017 13:36 — forked from adlerluiz/0 - Instalação Ubuntu Gnome - by Phackwer (easy use)
Instalação Ubuntu Gnome 16.04 - by Phackwer (easy use)
Este guia tem por objetivo facilitar a minha vida para ter o meu ambiente restaurado ou construído do zero, mas pode ser utilizado por qualquer outra pessoa que goste de um ubuntu ainda mais fácil para utilizar no desenvolvimento de aplicações PHP com repositórios Git. Não estão colocados aqui detalhes sobre instalação de banco de dados, e o hardwar alvo é um macbook pro 17" i7 com HD SSD.
COLOCANDO UM SAY COMO DO MAC NO LINUX
sudo apt-get install gnustep-gui-runtime
say "hello"
1 - Install Ubuntu Unity LTS - Update and upgrade
2 - Install Nvidia driver and reboot
3 - Install Gnome Desktop over Ubuntu
0 - instalar o build-essential:
sudo apt-get install build-essential
1 - instalar o nodejs e o npm:
sudo apt-get install node;
sudo apt-get install npm;
2 - instalar o gearman:
sudo apt-get install gearman