Skip to content

Instantly share code, notes, and snippets.

View malixsys's full-sized avatar
💻
Coding

Martin Alix malixsys

💻
Coding
View GitHub Profile
@malixsys
malixsys / index.html
Last active April 24, 2023 20:39
Mon voyage en Europe
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no'>
<title>Mon voyage en Europe</title>
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0/css/reveal.min.css'>
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0/css/theme/black.min.css'>
@malixsys
malixsys / kali_osx_persistence_wifi_disk2.md
Last active November 17, 2021 19:14 — forked from widdowquinn/kali_osx_persistence_wifi.md
Kali Linux Live USB with persistence and wireless on Macbook Pro

Kali Linux Bootable USB with Persistence and Wireless on OSX

Download the appropriate Kali Linux .iso

I used a 64 bit .iso image, downloaded via HTTP. I downloaded the amd64 weekly version, as the pool linux headers (needed below for installation of wireless drivers) were ahead of the stable release kernel.

Download the SHA256SUMS and SHA256SUMS.gpg files from the same location.

describe('DiscoverQuery', () => {
let called;
let deferred;
let oldFetch;
beforeEach(() => {
called = defer();
deferred = defer();
oldFetch = window.fetch;
window.fetch = jest.fn().mockImplementation(async () => {
{
"presets": [
"env"
]
}
@malixsys
malixsys / tryEthereum.js
Created April 1, 2018 18:30 — forked from qx133/tryEthereum.js
Try out Ethereum using only nodejs and npm!
var Web3 = require('web3');
var util = require('ethereumjs-util');
var tx = require('ethereumjs-tx');
var lightwallet = require('eth-lightwallet');
var txutils = lightwallet.txutils;
var web3 = new Web3(
new Web3.providers.HttpProvider('https://rinkeby.infura.io/')
);
var address = '0x8D68583e625CAaE969fA9249502E105a21435EbF';
var key = '1ce642301e680f60227b9d8ffecad474f15155b6d8f8a2cb6bde8e85c8a4809a';
@malixsys
malixsys / flatten.js
Created February 28, 2018 20:13 — forked from anonymous/flatten.js
An array flattener
/**
* @param arr the array to flatten
* @param ret used internally, a starting point if passed
* @returns {Array} a flattened array such that `. [[1,2,[3]],4] -> [1,2,3,4]`
* @example
* const flatten = require('./flatten');
* console.warn(flatten([1, [2, [3, [4]], 5]]));
* // [1, 2, 3, 4, 5]
*/
const flatten = (arr, ret = []) => {
@malixsys
malixsys / INSTALLATION.md
Created January 20, 2016 04:37 — forked from DenisIzmaylov/INSTALLATION.md
DigitalOcean Dokku: fresh install with Node.js Environment

DigitalOcean Dokku / Node.js Cloud Environment

Custom recipe to get full Node.js Cloud Environment in DigitalOcean Dokku droplet running from scratch. Yes. Your own Heroku for $5 per month.

I use this gist to keep track of the important configuration steps required to have a functioning system after fresh install.

When you have executed that's all step by step you will get a new working and stable system which is ready to host & serve your Node.js application and databases.

CDS

These instructions assume a Kurios MEP/MEPP on 2015/09/11. Vary accordingly.

BUILDING

  1. Get latest dev and main
  2. Merge dev to main
  3. Open $/CDS1022/Kurios/main/src/Cds.Marketing.Kurios.sln
  4. Build the solution to make sure it build correctly and check it in
@malixsys
malixsys / example.html
Created April 29, 2014 17:02
ionic errors
<form novalidate="novalidate" on-valid-submit="updateUser()">
<div class="list list-inset">
<div class="item">
<h2>{{'edit profile'|i18n}}</h2>
</div>
<label class="item item-input validated">
<span class="input-label">{{ 'full name' | i18n}}:</span>
<input type="text" ng-model="user.fullname" id="fullname" name="fullname" required="required"
ng-pattern="/^[^$%]{3,255}$/"
/>
@malixsys
malixsys / PaymentService.js
Last active September 3, 2015 12:58
Beanstream with Angular and Node
'use strict';
angular.module('app')
.factory('PaymentService', ['$http', '$q', 'Scripts', function($http, $q, Scripts) {
function parseExpiry(value) {
var month, prefix, year, _ref;
value = value || '';