Skip to content

Instantly share code, notes, and snippets.

View omeroot's full-sized avatar

Ömer Demircan omeroot

  • Istanbul
View GitHub Profile
#!/bin/sh
cd /root/backups || exit
SQL_ARCHIVED_FILE=<archived_filename>_$(date +%Y%m%d).tar.gz
SQL_DUMP_FILE=<dump_filename>
S3_BUCKET_URL="s3://<bucket_name>"
echo "DB Dumping to $SQL_DUMP_FILE ..."
mysqldump --defaults-extra-file=.sqlpwd --databases <db_name> --triggers --events --routines --result-file="$SQL_DUMP_FILE"

Macos Disable Dark Mode For One App

Disable Dark Mode

$ osascript -e ‘id of app “App Name”‘

Example: osascript -e 'id of app "WindTerm"' $ KingToolbox.WindTerm <- this is bundle id

Markakod Frontend Challenge

Purpose of this challenge is to measure candidate's JS, CSS, HTML skills. We care to javascript code style and clean css coding.

We prefer SCSS to develop styles, react js to develop javascript, HTML5 to develop html. But you are free for using library and utils what you want. We designed a sign up page you can find out below. There are all assets you need.

You could choose gulp or webpack to bundle and build.

Sign up Page UI

Mobile Development Assignment

The objective of the first assignment is to get you accustomed to the Android development environment and use some of the basic features of Kotlin or Java to build a simple app. You will learn how to use the Storyboard, understand the View Controller and View, use Google Youtube library in your xcode project and get a hang of Callbacks in Kotlin or Java. You will also learn how to build and populate a list, a feature that is commonly present in a lot of apps in the store.

For this assignment, you will use the Youtube Data API to fetch a playlist of popular videos of a channel (of your choice) and display it in the UITableView. Each UITableCellView should contain the thumbnail of the video and the video title. For those of you who would like to deploy the

Markakod Front-End Challenge

About the challenge

This is a pretty simple test, in which you should be able to write a React app, using the provided screens as reference. You’ll need to make requests to an API to get some JSON content, filter the data and print it on view.

You can use any boilerplate/approach you prefer, but try to keep it simple. We encourage you to use your favourite tools and packages to build a solid React application.

The app should be a movie search with two pages:

Instagram
You can use the Insights API to get a business user's reach, impressions, and profile_views metrics.
You can use the Insights API to get metrics about business user posts.
The following example returns the reach, impressions, and profile_views metrics.
Media like and comment count
Story icin
"media_id": "18023345989012587",
"exits": 1,
"replies": 0,

Login

var request = require("request");

var options = { method: 'POST',
  url: 'http://localhost:8877/login/influencer',
  headers: 
   { 'Postman-Token': '74a0bdaf-2ddb-4e75-b5cc-ddf7a0136087',
     'cache-control': 'no-cache',
     'Content-Type': 'application/json' },

Run the following OpenSSL command to generate your private key and public certificate. Answer the questions and enter the Common Name when prompted.

openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem

Review the created certificate:

openssl x509 -text -noout -in certificate.pem

Combine your key and certificate in a PKCS#12 (P12) bundle:

Run buildbot with Docker on Macos

$> docker-machine create --driver virtualbox <your-machine-name>
$> docker-machine ls

OUTPUT:

Markakod Interview Project

We are going to prepare a few simple endpoints where we can monitor where a traveler is walking around in the day and where they have been most recently.

Basic frameworks to be used etc...

  • MongoDB (MongooseJS as adapter)
  • Expressjs
  • Typescript (Optional)