Project has been created with symfony new project template
composer create-project symfony/website-skeleton demo
cd demo
<?php | |
namespace App\Command; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use App\Service\CacheService; | |
class WaitForCommand extends ContainerAwareCommand |
class Kafka < Formula | |
desc "Publish-subscribe messaging rethought as a distributed commit log" | |
homepage "https://kafka.apache.org/" | |
url "https://archive.apache.org/dist/kafka/0.9.0.0/kafka_2.11-0.9.0.0.tgz" | |
sha256 "6e20a86cb1c073b83cede04ddb2e92550c77ae8139c4affb5d6b2a44447a4028" | |
bottle do | |
cellar :any_skip_relocation | |
sha256 "67105a99b29380f4af1e124de0ce92cda4d90eeb1cac0ee4bfc7771a9b408213" => :high_sierra | |
sha256 "67105a99b29380f4af1e124de0ce92cda4d90eeb1cac0ee4bfc7771a9b408213" => :sierra |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
// Retry 5 times with waiting for 2 seconds | |
function* updateApi(data) { | |
for(let i = 0; i < 5; i++) { | |
try { | |
const apiResponse = yield call(apiRequest, { data }); | |
return apiResponse; | |
} catch(err) { | |
if(i < 4) { | |
yield call(delay, 2000); | |
} |
#!/bin/sh | |
# Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh | |
# and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos | |
if [ "`/usr/bin/whoami`" != "root" ]; then | |
echo "You need to execute this script as root." | |
exit 1 | |
fi | |
cat > /etc/yum.repos.d/centos.repo<<EOF |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.myApp" | |
android:versionCode="4" | |
android:versionName="1.0"> | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.CAMERA" /> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> |
source 'https://github.com/CocoaPods/Specs.git' | |
project 'MyApp.xcodeproj' | |
platform :ios, '9.0' | |
plugin 'cocoapods-keys', { | |
:project => 'MyApp', | |
:keys => [ | |
"MixPanelToken", | |
] | |
} |
apply plugin: "com.android.application" | |
import com.android.build.OutputFile | |
apply from: "../../node_modules/react-native/react.gradle" | |
def enableSeparateBuildPerCPUArchitecture = false | |
/** |