Skip to content

Instantly share code, notes, and snippets.

View okaufmann's full-sized avatar

Oliver Kaufmann okaufmann

View GitHub Profile
@okaufmann
okaufmann / README.md
Last active August 14, 2016 14:30
CA Cert Problem: cURL error 60: SSL certificate problem: unable to get local issuer certificate
@okaufmann
okaufmann / php-xdebug.ini
Last active August 9, 2017 17:48
xdebug configuration for laravel-valet (based on https://laravel-news.com/xdebug-phpstorm-valet)
[xdebug]
; For linux
zend_extension="/usr/local/opt/php71-xdebug/xdebug.so"
; For windows (absolute path also possible)
zend_extension=php_xdebug.dll
xdebug.remote_autostart=1
xdebug.default_enable=1
xdebug.remote_port=9001
xdebug.remote_host=127.0.0.1
@okaufmann
okaufmann / add share to vm (VMWare).md
Last active December 19, 2017 23:18
Mount VMWare Share

It appears that when you install open-vm-tools on Ubuntu 16.04 for VMware Workstation the HGFS mount is never created. To get your shared folders to show up we need to perform a few steps.

We need to create the /mnt/hgfs folder.

sudo mkdir /mnt/hgfs

To mount your shares temporarily run the following command.

sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
@okaufmann
okaufmann / TelegramLoginController.php
Last active February 7, 2018 00:52
TelegramLoginController.php
<?php
namespace App\Http\Controllers\Auth;
use Carbon\Carbon;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Http\Response;
class TelegramLoginController extends Controller
@okaufmann
okaufmann / readme.md
Last active October 29, 2019 11:00
Remove fkng one drive!

Remove OneDrive from Windows 10

Source: https://techjourney.net/disable-or-uninstall-onedrive-completely-in-windows-10/

Group Policies

Press Win + R keyboard accelerator to open Run dialog box. Type GPedit.msc and hit Enter or OK to open Local Group Policy Editor. Navigate to Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> OneDrive. In the right pane, double click on policy named Prevent the usage of OneDrive for file storage.

@okaufmann
okaufmann / README.md
Created December 18, 2019 18:27
Fix `warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)` error on Raspberry PI

Run the following:

echo "LC_ALL=en_US.UTF-8" | sudo tee -a /etc/environment > /dev/null
echo "en_US.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen > /dev/null
echo "LANG=en_US.UTF-8" | sudo tee /etc/locale.conf > /dev/null
sudo locale-gen en_US.UTF-8
@okaufmann
okaufmann / d
Last active April 21, 2023 08:45
The d, A simple docker-compose wrapper.
#!/usr/bin/env bash
# The d
# A simple wrapper for the docker-compose command.
# https://gist.github.com/okaufmann/64c4273287b618270bf4bf9451393b53
projectName=$(basename "$PWD")
# rewrite php artisan shortcut
if [ "$1" = "a" ]; then