Skip to content

Instantly share code, notes, and snippets.

View ohmydevops's full-sized avatar
🚵‍♀️

Amirhossein Baghaie ohmydevops

🚵‍♀️
View GitHub Profile
@siamak
siamak / packages.txt
Last active January 17, 2017 10:33
Here's my $ apm ls
Community Packages (34)
├── atom-alignment@0.12.1
├── atom-beautify@0.29.11
├── atom-jade@0.3.0
├── atom-material-ui@1.3.5
├── atom-panda-syntax@0.12.0
├── atom-ternjs@0.15.0
├── auto-update-packages@1.0.1
├── autocomplete-modules@1.6.1
├── autocomplete-paths@1.0.2
@ohmydevops
ohmydevops / instagram_scrape.php
Created March 8, 2017 09:16 — forked from cosmocatalano/instagram_scrape.php
Quick-and-dirty Instagram web scrape, just in case you don't think you should have to make your users log in to deliver them public photos.
<?php
//returns a big old hunk of JSON from a non-private IG account page.
function scrape_insta($username) {
$insta_source = file_get_contents('http://instagram.com/'.$username);
$shards = explode('window._sharedData = ', $insta_source);
$insta_json = explode(';</script>', $shards[1]);
$insta_array = json_decode($insta_json[0], TRUE);
return $insta_array;
}
@jamesk
jamesk / drone-monorepo-proposal.md
Created April 26, 2017 10:35
A proposal for how Drone could handle monorepos

Proposal for how Drone could handle monorepos

Summary

By a monorepo I mean a single repository that contains multiple projects. As the number of projects in the repo grows or if the projects have very expensive builds it becomes very cumbersome to rebuild all projects on every commit.

So at the very least for a monorepo you would want to some how filter what build / build steps were triggered by a commit.

@mattattui
mattattui / example.php
Created December 21, 2012 11:45
Sample Twig setup and template
<?php
require __DIR__.'/../vendor/autoload.php';
$loader = new Twig_Loader_Filesystem(__DIR__.'/../templates');
$twig = new Twig_Environment($loader, array(
// Uncomment the line below to cache compiled templates
// 'cache' => __DIR__.'/../cache',
));
$name = filter_input(INPUT_GET, 'name', FILTER_SANITIZE_STRING);
@AmirHo3ein13
AmirHo3ein13 / Elasticsearch Cheat Sheet.md
Last active March 12, 2021 03:42
simple cheat sheet for Elasticsearch
@lvaylet
lvaylet / atlassian-jira-docker-compose.yml
Created January 15, 2018 21:26
docker-compose for JIRA with MySQL
version: '3'
services:
jira:
depends_on:
- mysql
container_name: jira
restart: always
image: cptactionhank/atlassian-jira:7.7.0
ports:
@Corb3nik
Corb3nik / h1-212-writeup.md
Last active August 4, 2021 07:11
This is my writeup for the H1-212 CTF

h1-212 CTF Writeup

As an avid CTF'er, I was very much excited when I heard about the H1-212 CTF. Thus, letting my misguided priorities get the better of me, I decided to set my studies aside and try this HackerOne CTF 😄

It didn't take me too long though to realize that I suck at bug bounties and that this challenge wasn't going to be easy...

⚒️ The challenge 🛠️

@battis
battis / emoji.php
Last active October 5, 2021 20:15
Trying to store/retrieve/display Unicode emoji in a MySQL database
<?php
// MySQL schema
/*
CREATE TABLE `test` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`text` text,
`blob` blob,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
@iwek
iwek / html5-blank-template
Created January 19, 2013 03:50
HTML5 Blank Template with jQuery
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Blank HTML5</title>
<style>
</style>
</head>
<body>
@greut
greut / run.php
Created April 30, 2011 18:18
A web server in pure PHP (non-concurrent and concurrent)
#!/usr/bin/env php
<?php
$app = function($request) {
$body = <<<EOS
<!DOCTYPE html>
<html>
<meta charset=utf-8>
<title>Hello World!</title>