Skip to content

Instantly share code, notes, and snippets.

🍪
Eating Cookies

Adem Kouki Ademking

🍪
Eating Cookies
Block or report user

Report or block Ademking

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View start-boxstarter-magic.ps1
#############################
##### Magic script v1.01 ####
#############################
# Ask for elevated permissions if required
If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]"Administrator")) {
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs
Exit
}
@joebasurto
joebasurto / autoplay.js
Created Jul 2, 2019
YouTube Autoplay Fix (Chrome)
View autoplay.js
<script>
jQuery("video-iframe")[0].src += "&autoplay=1";
</script>
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active Jan 18, 2020
Online Resources For Web Developers (No Downloading)
View webdev_online_resources.md
@peterbrinck
peterbrinck / Laravel on VestaCP.md
Last active Jan 9, 2020
Laravel web templates for VestaCP
View Laravel on VestaCP.md

I'm not using this or VestaCP anymore, so I can't confirm if still working or not.

I've made a new web template to make Laravel work easily on VestaCP, and so I wouldn't have to change my Laravel installation, if I ever wanted to deploy it elsewhere.

Each file should be put in /usr/local/vesta/data/templates/web/apache2

Then, when you edit your domain/site, you can change the web template to Laravel and just upload your whole project into public_html

View Bookmarks.markdown

A

  • A bit of Vim - a book which aims to help you to learn how to use the Vim editor.
  • A.W.E.S.O.M. O - The really big list of really interesting open source projects.
  • AMP Project - The project enables the creation of websites and ads that are consistently fast, beautiful and high-performing across devices and distribution platforms.
  • APE - Angular JS REST Client.
  • ASCII Art - Real-Time ASCII Art Rendering Library
  • AST Explorer - A web tool to explore the ASTs generated by various parsers.
  • Advent of Code - is a series of small programming puzzles for a variety of skill levels.
  • Android Studio - The Official IDE for Android.
@FilipQL
FilipQL / CommentController.php
Created Oct 10, 2016
Infinite Scroll Pagination Using Laravel & jScroll
View CommentController.php
<?php
// For more details see: http://laraget.com/blog/implementing-infinite-scroll-pagination-using-laravel-and-jscroll
namespace App\Http\Controllers\InfiniteScrolling;
use App\Comment;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
@tniessen
tniessen / service.md
Created Oct 1, 2016
Using the "service" tool with ADB and why to avoid it
View service.md

As it turns out, it is not trivial to control the audio volume of an Android device using ADB. At the time of writing, the only way appears to be using the service tool. Actually, the service command allows to "connect" to a number of services (104 on Android 6.0.1) and invoke functions. Not knowing much about this tool, I managed to completely mute all sounds and speakers of my Nexus 5, and I was stuck without any sound for quite some time. I did not find a way to unmute the sound from within the system UI, so I got to dive a little deeper into this.

If you know which service you want to use, you then need to find its interface declaration. The command

service list

gives you a list of all services with the associated interfaces, if applicable:

...
26      backup: [android.app.backup.IBackupManager]
@gokulkrishh
gokulkrishh / media-query.css
Last active Jan 20, 2020
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@hootlex
hootlex / laravellocal.md
Last active Jan 20, 2020
Run laravel project locally
View laravellocal.md

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci
@PurpleBooth
PurpleBooth / README-Template.md
Last active Jan 20, 2020
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You can’t perform that action at this time.