Skip to content

Instantly share code, notes, and snippets.

View kilip's full-sized avatar
🏠
In Search of Enlightenment

Anthonius Munthi kilip

🏠
In Search of Enlightenment
View GitHub Profile
@kilip
kilip / gpg-import-and-export-instructions.md
Created November 15, 2018 12:03 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

@kilip
kilip / release-log.txt
Last active November 23, 2018 03:14
Yawik Release Log
Releasing Yawik into v0.32.0-RC1 version.
-----------------------------------------
Releasing v0.32.0-RC1 to ~> cross-solution/YAWIK repo
CMD git checkout release-0.32.0
ERR Already on 'release-0.32.0'
CMD git pull origin release-0.32.0
ERR fatal: Couldn't find remote ref release-0.32.0
CMD git tag -s v0.32.0-RC1 -m "Release v0.32.0-RC1 version"
  • SimpleImport
  • Orders
  • CompanyRegistration
ssh-keygen -t rsa -b 4096 -C '[email protected]' -f ./deploy_rsa
travis encrypt-file deploy_rsa --add
ssh-copy-id -i deploy_rsa.pub <ssh-user>@<deploy-host>

rm -f deploy_rsa deploy_rsa.pub
git add deploy_rsa.enc .travis.yml
@kilip
kilip / github-emoji.md
Last active November 29, 2018 17:35 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@kilip
kilip / myservice
Created December 1, 2018 08:50 — forked from bramus/myservice
Running a PHP script as a service/daemon using `start-stop-daemon`
#! /bin/sh
# Installation
# - Move this to /etc/init.d/myservice
# - chmod +x this
#
# Starting and stopping
# - Start: `service myservice start` or `/etc/init.d/myservice start`
# - Stop: `service myservice stop` or `/etc/init.d/myservice stop`
@kilip
kilip / apolo.md
Last active December 17, 2018 03:54

webmin

# add source for webmin
deb http://download.webmin.com/download/repository sarge contrib

wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc

HTPC Manager

@kilip
kilip / php-compile-deps.md
Created March 20, 2019 05:32
PHP Compile Deps

libbz2-dev libssl-dev libcurl4-openssl-dev pkg-config libjpeg8-dev libpng-dev libfreetype6-dev libxpm-dev libgd-dev libpq-dev libreadline-dev libxslt1-dev

@kilip
kilip / php_mdb.rst
Created May 6, 2019 10:42 — forked from amirkdv/php_mdb.rst
How to handle MS Access MDB files in Linux with PHP5 PDO and ODBC

To be able to use PHP5 PDO with MS Access mdb files the following is required (the same applies for the PHP4 style of using odbc_X except for the obviously PDO specific requirements):

PHP ODBC module

In Linux this is achieved by intalling the php5-odbc package:

@kilip
kilip / php-phpdbg-proxy.sh
Created June 8, 2019 15:24 — forked from VeryStrongFingers/php-phpdbg-proxy.sh
PHPStorm - PHP-PHPDBG Interpreter proxy
#!/bin/bash
#### Dirty/Fake PHP Interpreter to trick PHPStorm into using PHPDBG for running tests with/without code coverage
## For Mac/Linux only, Window's ubuntu subsystem theoretically would work too
##
##
## Related JetBrain's issues/feature requests
## https://youtrack.jetbrains.com/issue/WI-21414
## https://youtrack.jetbrains.com/issue/WI-29112
##