Skip to content

Instantly share code, notes, and snippets.

View rastaman's full-sized avatar
💭
Operational's excellency

rastaman

💭
Operational's excellency
  • Sophia-Antipolis, 06, France
View GitHub Profile
@rastaman
rastaman / xcode-previous-older-sdks.md
Created March 18, 2024 13:28 — forked from kenji21/xcode-previous-older-sdks.md
Use previous/older SDKs with Xcode
diff --git a/.eslintrc.json b/.eslintrc.json
deleted file mode 100644
index fc5047e..0000000
--- a/.eslintrc.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "env": {
- "browser": true,
- "es2021": true
@rastaman
rastaman / MK2_npm118_issue.md
Last active December 29, 2022 21:31
MK2 Pro react fail to build

MK2 compile and run

# upgrade npm to latest LTS
nvm install --lts
# install deps
npm install --legacy-peer-deps
...
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'material-kit-2-pro-react@2.0.0',
@rastaman
rastaman / setup.yml
Created October 28, 2018 10:56
Deploy a docker-compose setup with ansible
---
# $ PIP_REQUIRE_VIRTUALENV=false pip3 install docker-compose
# $ ansible-playbook forge.yml -e ansible_python_interpreter=python3
- name: Deploy a docker-compose setup
hosts: localhost
vars_files:
- docker-compose.yml
tasks:
- name: Create volumes
docker_volume:
version: '3'
services:
crowd:
image: atlassian/crowd:3.2.0
ports:
- "8095:8095"
volumes:
- "/volume2/forge/crowd:/opt/atlassian/application-data/crowd"
bitbucket:
image: atlassian/bitbucket-server:5.10
{
"basePath": "/jira/rest/",
"paths": {
"api/2/settings/columns": {
"get": {
"produces": ["application/json"],
"operationId": "getIssueNavigatorDefaultColumns",
"description": "Returns the default system columns for issue navigator. Admin permission will be required.",
"responses": {
"200": {
@rastaman
rastaman / IterableJSONArray.java
Created April 7, 2016 22:56
Why no Iterable JSON Array in org.json ?
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.json.JSONArray;
public class IterableJSONArray<T> extends JSONArray implements Iterable<T> {
@SuppressWarnings("unchecked")
@Override
@rastaman
rastaman / designer.html
Last active August 29, 2015 14:22
designer
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@rastaman
rastaman / start-mesos-slave-c1.sh
Last active December 10, 2015 10:58
A script to install mesos and start mesos-slave on a ARM C1 node from cloud.online.net . Packaged and tested on the Docker instant app.
apt-get install -y libsvn-dev wget
wget http://www.effervens.com/experimental/mesos/mesos_0.22.0_armhf.deb
dpkg -i ./mesos_0.22.0_armhf.deb
echo /opt/mesos/lib > /etc/ld.so.conf.d/mesos.conf
ldconfig
export MESOS_master=zk://ZK1:2181,ZK2:2181,ZK3:2181/mesos
# Other options you're likely to want to set:
export MESOS_log_dir=/var/log/mesos
export MESOS_work_dir=/var/run/mesos
export MESOS_isolation=cgroups
@rastaman
rastaman / gist:9124578
Created February 20, 2014 22:25
Update apache proxys with ip of dockers containers
#!/bin/sh
sites_root=/etc/apache2/sites-available
docker ps | tail -n +2 | while read cid b; do
container_name=`docker inspect --format='{{.Config.Image}}' $cid`;
container_ip=`docker inspect --format='{{.NetworkSettings.IPAddress}}' $cid`;
if [ -f "$sites_root/${container_name}-docker" ] ; then
sed -i 's#^\(.*ProxyPass / http://\).*\(:.*\)$#\1'"${container_ip}"'\2#g' "$sites_root/${container_name}-docker"
sed -i 's#^\(.*ProxyPassReverse / http://\).*\(:.*\)$#\1'"${container_ip}"'\2#g' "$sites_root/${container_name}-docker"
fi
done