Skip to content

Instantly share code, notes, and snippets.

View izdrail's full-sized avatar
🌲
Open to work

Stefan Bogdanel izdrail

🌲
Open to work
View GitHub Profile
@izdrail
izdrail / countries.php
Last active November 11, 2016 00:38
countries
$countries = [
["code"=> "GB", "name"=> "United Kingdom"],
["code"=> "AF", "name"=> "Afghanistan"],
["code"=> "AX", "name"=> "Aland Islands"],
["code"=> "AL", "name"=> "Albania"],
["code"=> "DZ", "name"=> "Algeria"],
["code"=> "AS", "name"=> "American Samoa"],
["code"=> "AD", "name"=> "Andorra"],
["code"=> "AO", "name"=> "Angola"],
["code"=> "AI", "name"=> "Anguilla"],
@izdrail
izdrail / 0_reuse_code.js
Created June 28, 2016 13:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@izdrail
izdrail / Copile C# Linux
Last active June 6, 2021 12:57
How to compile c# on ubuntu
==
Visual Studio
http://stackoverflow.com/questions/8264323/how-to-compile-a-visual-studio-c-sharp-project-with-mono
apt-get install mono-complete
and run from the command line :
xbuild mysolution.sln
xbuild myproject.csproj
@izdrail
izdrail / webpack.config.js
Created December 26, 2017 18:24
Webpack 3 multiple nunjuck js templates
const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
A curated list of awesome PHP frameworks, libraries and software.
* [laravel/laravel](https://github.com/laravel/laravel) - A PHP Framework For Web Artisans
* [symfony/symfony](https://github.com/symfony/symfony) - The Symfony PHP framework
* [bcit-ci/CodeIgniter](https://github.com/bcit-ci/CodeIgniter) - Open Source PHP Framework (originally from EllisLab)
* [domnikl/DesignPatternsPHP](https://github.com/domnikl/DesignPatternsPHP) - sample code for several design patterns in PHP
* [fzaninotto/Faker](https://github.com/fzaninotto/Faker) - Faker is a PHP library that generates fake data for you
* [yiisoft/yii2](https://github.com/yiisoft/yii2) - Yii 2: The Fast, Secure and Professional PHP Framework
* [composer/composer](https://github.com/composer/composer) - Dependency Manager for PHP
from bs4 import BeautifulSoup
import re
import requests
#Extract the info from the article
def article(url):
if ('.html' in url):
r = requests.get(url, verify=False)
<?php
use Omnipay\Omnipay;
function processInput($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return strval($data);
}
@izdrail
izdrail / insta_login_check.js
Created September 10, 2018 21:41 — forked from GarryOne/insta_login_check.js
Puppeteer Instagram Credentials/Login Verification
// start the node server by doing: `node insta_login_check.js`
const puppeteer = require('puppeteer');
const delay = require('delay');
const user = {
username: '[email protected]',
password: 'passw0rd',
};
@izdrail
izdrail / .env.example
Created October 3, 2018 12:52 — forked from LukeTowers/.0 - cheatsheet.sh
Introduction to OctoberCMS
APP_DEBUG=true
APP_URL=http://example.local
APP_KEY=
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=website-oc-example-LOCAL
DB_USERNAME=homestead
DB_PASSWORD=secret
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL';
CREATE SCHEMA IF NOT EXISTS `survey_001_models_from_tables` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ;
USE `survey_001_models_from_tables` ;
-- -----------------------------------------------------
-- Table `survey_001_models_from_tables`.`organizations`
-- -----------------------------------------------------