Skip to content

Instantly share code, notes, and snippets.

View spinsch's full-sized avatar
🐱

Marc spinsch

🐱
  • HKW
  • Switzerland
  • 17:32 (UTC +02:00)
View GitHub Profile
@HighwayofLife
HighwayofLife / cloud_init.yaml
Last active March 23, 2024 12:52
Install Docker via Cloud Init on Ubuntu VM
#cloud-config
packages:
- apt-transport-https
- ca-certificates
- curl
- gnupg-agent
- software-properties-common
# Enable ipv4 forwarding, required on CIS hardened machines
@appkr
appkr / curl.md
Created June 25, 2018 10:59
cURL error 77: error setting certificate verify locations

Problem

[2018-06-25 19:54:37] local.DEBUG: GuzzleHttp\Exception\RequestException: cURL error 77: error setting certificate verify locations:
  CAfile: /tmp/cacert.pem
  CApath: none (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /Users/appkr/meshkorea/korean-address-database-laravel/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:187

Docker

@ipbastola
ipbastola / clean-up-boot-partition-ubuntu.md
Last active June 5, 2024 21:05
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@ThomDietrich
ThomDietrich / git-create-revisioninfo-hook.sh
Last active December 19, 2022 15:23
git hook for revision and branch version file
#!/bin/bash
## Automatically generate a file with git branch and revision info
##
## Example:
## [master]v2.0.0-beta-191(a830382)
## Install:
## cp git-create-revisioninfo-hook.sh .git/hooks/post-commit
## cp git-create-revisioninfo-hook.sh .git/hooks/post-checkout
## cp git-create-revisioninfo-hook.sh .git/hooks/post-merge
@jloescher
jloescher / head.phtml
Last active April 16, 2020 02:38
Dynamically Create Schema.org code for head section of a Magento 1.9 website.
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
@bengarrett
bengarrett / percona-xtrabackup.md
Last active April 30, 2020 06:38
Installing and using Percona XtraBackup on Ubuntu 14.04 for MySQL backups.

Installing and using Percona XtraBackup

For MySQL/MariaDB database servers on Ubuntu.

Set-up and Install

Add Percona to your repository.

Backup your sources.

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

Edit your sources.
@tegansnyder
tegansnyder / dataflow-export-timestamp.php
Last active May 16, 2017 22:11
Programmatically running a Magento Dataflow Profile export and appending timestamp to filename
<?php
require_once('app/Mage.php');
umask(0);
Mage::app();
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
ini_set('memory_limit', '2048M');
$profile_id = 44;
$profile = Mage::getModel("dataflow/profile")->load($profile_id);
@janikvonrotz
janikvonrotz / Unattended Encrypted Incremental Backup to Amazon S3.md
Last active May 8, 2020 08:00
Ubuntu: Unattended Encrypted Incremental Backup to Amazon S3#AmazonAWS#Markdown

Introduction

For this task we are going to configure a duplicity script wrapper. Unregarded of the installation instructions it's expected that you have already signed up for an Amazon account and know how to use their services.

Requirements

  • Ubuntu server
  • duplicity, Git, GnuPG
  • MySQL
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active June 24, 2024 19:36
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@rxaviers
rxaviers / gist:7360908
Last active June 26, 2024 12:22
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: