Skip to content

Instantly share code, notes, and snippets.

[Desktop Entry]
Name=VS-Code run as root
Comment=Code Editing. Redefined.
GenericName=Text Editor
Icon=/usr/share/code/resources/app/resources/linux/code.png
Exec=/bin/sh -c 'pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/code --user-data-dir='./.vscode' --no-sandbox --disable-gpu-sandbox'
Type=Application
Terminal=false
Encoding=UTF-8
Categories=Utility;TextEditor;Development;IDE;
@detecmedia
detecmedia / php
Last active June 1, 2020 07:27
run php on docker
#!/bin/bash
# ******************************************
#
# php cli from docker
#
# *****************************************
#### configure here ####
DOCKER_IMAGE="detecmedia/php-cli"
TAG="latest"
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
@detecmedia
detecmedia / lamp-phpinfo.php
Created October 4, 2017 15:42
PHP Info for LAMP
<?php
phpinfo();
@detecmedia
detecmedia / index.html
Created August 12, 2016 17:30
jquery plugin: previous next switcher for elements
<div class="row">
<!-- root Element from Switcher -->
<div class="switcher colums">
<div>
<!-- First Element of Switcher, this is visible -->
<a href="#" class="element">hello world, here is the 1. news</a>
<a href="#" class="element">hello world, here is the 2. news</a>
<a href="#" class="element">hello world, here is the 3. news</a>
<a href="#" class="element">hello world, here is the 4. news</a>
@detecmedia
detecmedia / fix-bottom-action-channel.markdown
Last active August 10, 2016 11:02
fix bottom action channel