Skip to content

Instantly share code, notes, and snippets.

View dschniepp's full-sized avatar
👷‍♂️
Building

Daniel Schniepp dschniepp

👷‍♂️
Building
View GitHub Profile
@dschniepp
dschniepp / gist:fcdda56f0757773d84f3
Last active March 14, 2017 17:00
Remove Dock Icon of Mac OSX App

#Remove Dock Icon of Mac OSX App

How to get rid of unnecessary dock icons.

##Generic

Navigate to the app and look in the container for info.plist. Open info.plist and add or modify the LSUIElement Element.

LSUIElement
@dschniepp
dschniepp / spacegray.terminal
Created August 12, 2014 17:45
Mac OSX Terminal Design - Spacegray
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw
LjIwMDAwMDAxNzkgMC4yMzkyMTU3MDE4IDAuMjc0NTA5ODE3NAAQAoAC0hAREhNaJGNs
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
<?php
/* This gist is offered as is, make sure to test in your environment
*
* This class can be used to iterate over a large Eloquent query. It uses a combination of the PDO Fetch and
* the chunk methods to collect a series of items in memory. The chunk part was necessary in order to implement
* eager loading options. You can set the CHUNK_SIZE in the code to set how many rows to load in memory at a time
* again for the eager loading purposes.
*
* I am sure there are other ways to implement this technique more effectively
@dschniepp
dschniepp / cheatsheet.textile
Last active August 29, 2015 14:17
Terminal Cheatsheet for Mac ( basics )

SHORTCUTS

Key/Command Description
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + L Clears the Screen
Command + K Clears the Screen
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
Ctrl + H Same as backspace
Ctrl + R Lets you search through previously used commands

Keybase proof

I hereby claim:

  • I am dschniepp on github.
  • I am dschniepp (https://keybase.io/dschniepp) on keybase.
  • I have a public key ASACvHGMBzJfHVu8SnXAM3XldhIGGBBXKsm2ZMllT15s5Ao

To claim this, I am signing this object:

{
"AWSEBDockerrunVersion": 2,
"containerDefinitions": [
{
"name": "node",
"image": "...",
"essential": true,
"memory": 128,
"portMappings": [
{
@dschniepp
dschniepp / bootstrap.js
Last active July 23, 2018 07:34
Boostraping Boostrap 4 with laravel mix
window.Popper = require('popper.js').default;
try {
window.$ = window.jQuery = require('jquery');
require('bootstrap');
} catch (e) {}