Skip to content

Instantly share code, notes, and snippets.

View okaufmann's full-sized avatar

Oliver Kaufmann okaufmann

View GitHub Profile
okaufmann /
Last active August 14, 2016 14:30
CA Cert Problem: cURL error 60: SSL certificate problem: unable to get local issuer certificate
okaufmann / php-xdebug.ini
Last active August 9, 2017 17:48
xdebug configuration for laravel-valet (based on
; For linux
; For windows (absolute path also possible)
okaufmann /
Last active October 29, 2019 11:00
Remove fkng one drive!

Remove OneDrive from 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 / 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 / TelegramLoginController.php
Last active February 7, 2018 00:52
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 / 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.
projectName=$(basename "$PWD")
# rewrite php artisan shortcut
if [ "$1" = "a" ]; then
okaufmann /
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