Skip to content

Instantly share code, notes, and snippets.

View FrancisVarga's full-sized avatar
🌴
On vacation

Francis Varga FrancisVarga

🌴
On vacation
  • Phili-Tech
  • Berlin, Germany
View GitHub Profile
@FrancisVarga
FrancisVarga / init_python_project.sh
Last active May 25, 2021 11:59
init python projects stuff...
APScheduler==3.6.3
boto3==1.17.79
botocore==1.20.79
certifi==2020.12.5
chardet==4.0.0
elasticsearch==7.12.1
greenlet==1.1.0
idna==2.10
jmespath==0.10.0
mysql-connector-python==8.0.25
@FrancisVarga
FrancisVarga / Dockerfile
Created August 8, 2019 09:33
strapi app
FROM ubuntu:latest
LABEL maintainer="Luca Perret <[email protected]>" \
org.label-schema.vendor="Strapi" \
org.label-schema.name="Strapi Docker image" \
org.label-schema.description="Strapi containerized" \
org.label-schema.url="https://strapi.io" \
org.label-schema.vcs-url="https://github.com/strapi/strapi-docker" \
org.label-schema.version=latest \
org.label-schema.schema-version="1.0"
## PR Checklist
Please check if your PR fulfills the following requirements:
- [ ] The commit message follows our guidelines
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
## PR Type
What kind of change does this PR introduce?

MIT License

Copyright (c) 2016 Francis Varga

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

#!/bin/bash
curl "https://www.gitignore.io/api/node,linux,macos,windows,visualstudio" > .gitignore
npm i async aws-sdk dotenv dotenv-safe fs-extra googleapis microtime sqlite3 axios glob sequelize mongoose express --save
mkdir src
mkdir build
mkdir public
mkdir .tmp
mkdir .github
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArqfifUWXcOoozsVh9GimuefD2FXh4XO4m3MtjpkDz0sAmqlXew9jZq7gfsxTJK75UJ9jlj6N2USbrMuwcx1bUbxWnBzU7S7zhiYeX68RzKomqWn6h1alPtXA9oAiIDjymJ8CIAfQT+DrfiWShxSFecO0sgLZ9XYJG1gBAzxczL2PsNYckqd5xlc1QRZzl4Jjr/t19ab8SzN0aC4djVkvcL+/yfHFWL1GruSohUtICxdMo/BQZ8+4qToW71HgLMiWCIAPsSeGdg1N1AO6q/P2E4wza0Lkx1pwmjRfVGRSMXUUXZhI9Y9NT3Uat+ohggAe2s3aMr4yR9ol/MO9c1SDuQ==
- Installing wikimedia/composer-merge-plugin (v1.4.1): Downloading (100%)
- Installing anomaly/streams-composer-plugin (v1.1.4): Downloading (100%)
- Installing leafo/scssphp (v0.6.7): Downloading (100%)
- Installing oyejorge/less.php (v1.7.0.14): Downloading (100%)
- Installing websemantics/lcss2php (1.0.3): Downloading (100%)
- Installing symfony/polyfill-mbstring (v1.5.0): Loading from cache
- Installing twig/twig (v2.4.3): Downloading (100%)
- Installing vlucas/phpdotenv (v2.4.0): Loading from cache
- Installing symfony/css-selector (v3.1.10): Downloading (100%)
- Installing tijsverkoyen/css-to-inline-styles (2.2.0): Loading from cache
@FrancisVarga
FrancisVarga / index.html
Last active September 6, 2019 07:25
ServiceWorker Example
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<script data-ionic="inject">
(function(w){var i=w.Ionic=w.Ionic||{};i.version='3.6.0';i.angular='4.1.3';i.staticDir='build/';})(window);
</script>
<meta charset="UTF-8">
<title>W88</title>
</head>
@FrancisVarga
FrancisVarga / README.md
Last active February 27, 2017 16:10
dirty cors

Dirty CORS

NOT FOR PRODUCTION USE!!!

There are several tutorial's for CORS in PHP this one you need only to add it into your index.php and it should work. Simple and dirty as possible...

Laravel index.php Copy&Paste

<?php
<?php
/**
* Created by PhpStorm.
* User: francisvarga
* Date: 7/21/15
* Time: 12:12 PM
*/
Route::get('/', function () {
return view('admin.index');