Skip to content

Instantly share code, notes, and snippets.

Avatar
💡
converting ideas to code

Roni Nes FLasH3r

💡
converting ideas to code
View GitHub Profile
@jamesstout
jamesstout / vagrant-vscode-php-xdebug-instructions.md
Last active Aug 5, 2021 — forked from sveggiani/instructions.md
Configure Xdebug, Visual Studio Code for a Vagrant VM
View vagrant-vscode-php-xdebug-instructions.md

0. Assumptions

  • You've installed Xdebug in your VM.
  • You've installed Xdebug extension for VSCode and reloaded/restarted VSCode.
  • You have not forwarded port 9000 from the guest to the host.
  • Configure Debugger in VSCode. See item 1 next.

1. Configure .vscode/launch.json

@oliveratgithub
oliveratgithub / emojis.json
Last active Nov 29, 2021
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
View emojis.json
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z
@CodeMyUI
CodeMyUI / index.html
Last active Sep 20, 2019
Split Showcase
View index.html
<figure id="showcase">
<section></section>
<section></section>
<section></section>
<section></section>
</figure>
@CodeMyUI
CodeMyUI / index.html
Created May 27, 2017
Menu App Interface
View index.html
<!-- Menu App Interface
<!-- Based on a Dribbble shot
<!-- that caught my eye
<!-- http://drbl.in/pWyx
<!-- ---------------------------------- -->
<div class="paper preview-1">
<div class="box">
<div class="bar">
<div class="menu">
View index.html
<div class="entries">
<div class="entry">
<div class="title">2011</div>
<div class="body">
<p>Neque sunt voluptatibus repellat pariatur ut enim. Eveniet rerum suscipit eveniet amet dignissimos. Doloremque et distinctio quod molestiae ut.</p>
</div>
</div>
<div class="entry">
<div class="title">2012</div>
<div class="body">
@CodeMyUI
CodeMyUI / index.html
Created Mar 21, 2017
SVG Icon - Scale on Hover Buttons
View index.html
<div id="btns">
<div class="btn" onclick="window.location='#'">
<svg class="icon">
<use xlink:href="#helmet"></use>&nbsp;</svg>
<h2>Heading</h2>
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
</div>
<div class="btn" onclick="window.location='#'">
<svg class="icon">
<use xlink:href="#cutters"></use>&nbsp;</svg>
@CodeMyUI
CodeMyUI / index.html
Created Mar 17, 2017
Proof of Concept Grid/List Surveys
View index.html
<span class="toggler active" data-toggle="grid"><span class="entypo-layout"></span></span>
<span class="toggler" data-toggle="list"><span class="entypo-list"></span></span>
<ul class="surveys grid">
<li class="survey-item">
<span class="survey-country list-only">
UK
</span>
@kentwait
kentwait / mount_vbox_shared_boot.md
Last active Oct 23, 2021
Mount VirtualBox shared folder on boot using fstab
View mount_vbox_shared_boot.md

How to mount a VirtualBox shared folder when the Guest OS boots

Problem

While using VirtualBox's Guest Additions to mount shared folders provides a seamless way to mount shared folders, there are also disadvantages.

  • Shared folders will always mount in /media/sf_(share name) unless specified using through vbox drivers in the guest OS
  • Mounting does not happen at boot-time. Applications that require paths at boot will not be able to access the shared folder even after it is mounted - such as Docker.

Solution

Instead of relying on Guest Additions, if you have sudo permissions, shared folders can be mounted at boot-time using fstab. Using this approach allows

@odan
odan / php-pdo-mysql-crud.md
Last active Dec 8, 2020
Basic CRUD operations with PDO and MySQL
@WebReflection
WebReflection / certificate.sh
Last active Jul 1, 2020
A basic Self Signed SSL Certificate utility
View certificate.sh
#!/usr/bin/env bash
# A basic Self Signed SSL Certificate utility
# by Andrea Giammarchi @WebReflection
# https://www.webreflection.co.uk/blog/2015/08/08/bringing-ssl-to-your-private-network
# # to make it executable and use it
# $ chmod +x certificate
# $ ./certificate # to read the how-to