Skip to content

Instantly share code, notes, and snippets.

@moosetraveller
moosetraveller / draggable-panel.md
Created August 12, 2021 22:57
Javascript: Draggable Panel

Make Panel Draggable

HTML

<div id="panelContainer">
    <div id="panelTitle">Title</div>
    <div id="panelBody">Body</div>
</div>

CSS

@fgreinus
fgreinus / script.php
Created May 7, 2017 19:06
Laravel: convert php-language files to json style
$files = collect(File::files(resource_path('lang/*')));
function dive(array $curr) {
$result = [];
$values = array_values($curr);
foreach ($values as $value) {
if (is_array($value)) {
$result = array_merge($result, dive($value));
@hauthorn
hauthorn / postman.desktop
Last active April 26, 2024 16:24
Postman desktop entry
[Desktop Entry]
Categories=Development;
Comment=Supercharge your API workflow
Exec="/home/hauthorn/Programs/Postman/Postman"
Icon=/home/hauthorn/Programs/Postman/app/resources/app/assets/icon.png
Name=Postman
Terminal=false
Type=Application
Version=1.0
@willbush
willbush / xubuntu-on-macbook-pro-setup.md
Last active May 31, 2023 20:46
Sane Xubuntu Setup Guide for Mackbook Pro

Sane Xubuntu Setup Guide for Mackbook Pro

I am mostly writing this for myself because I tend to like to start fresh by reformatting and reinstalling everything every few months and forget the solutions to problems I have solved before. This guide was performed on a late 2011 macbook pro with xubuntu 16.04.

One misconception I have noticed that's quite prevalent in many guides is that we must dual boot osx and linux for the fear of having no easy path to getting osx back and installed. Even my old macbook pro has the ability to completely

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@valc93
valc93 / xgala.txt
Last active June 21, 2023 21:23
XFCE + GALA
Source: https://www.reddit.com/r/linux/comments/14heuu/xfce_gala_plank_awesome/
Add the elementary daily ppa and install gala + plank + dconf-tools
sudo apt-add-repository ppa:elementary-os/daily
sudo apt-get update $$ sudo apt-get dist-upgrade
sudo apt-get install gala plank dconf-tools gtk2-engines-pixbuf
Set gala as xfce's default window manager
@beast2013
beast2013 / i3exit
Created May 2, 2014 17:09
i3exit script
#!/bin/sh
lock() {
i3lock
}
case "$1" in
lock)
lock
;;
logout)