These are my notes for connecting to a meraki client vpn from ubuntu 16.04. This configuration assumes you are using a psk for the ipsec auth.
Install the following packages:
apt-get install -y strongswan xl2tpd
Configure strong swan
These are my notes for connecting to a meraki client vpn from ubuntu 16.04. This configuration assumes you are using a psk for the ipsec auth.
Install the following packages:
apt-get install -y strongswan xl2tpd
Configure strong swan
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| { | |
| "require": { | |
| "mfacenet/hello-world": "v1.*" | |
| } | |
| } |
| <?php | |
| $c = new Client('https://poste.io/admin/api/v1/', 'admin@poste.io', 'admin'); | |
| $c->delete('domains/t.com'); | |
| $c->post('domains', ['name' => 't.com']); | |
| $c->post('boxes', ['email' => 't@t.com', 'passwordPlaintext' => 't', 'name' => 't']); | |
| $c->patch('boxes/t@t.com', ['name' => 'a', 'disabled' => true, 'passwordPlaintext' => 'a']); |
Learn how you can create your own Twitter bot using Node.js and the new Twitter API. The bot will auto retweet in response to tweets with some particular hashtags. (https://goo.gl/4whEIt)
Here are the tools we’ll be using to create the bot —
| # === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) === | |
| # | |
| # by Fotis Evangelou, developer of Engintron (engintron.com) | |
| # | |
| # ~ Updated September 2024 ~ | |
| # | |
| # | |
| # The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores. | |
| # If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage. | |
| # |
| var a = ["sdfdf", "http://oooooolol"], | |
| handleNetErr = function(e) { return e }; | |
| Promise.all(fetch('sdfdsf').catch(handleNetErr), fetch('http://invalidurl').catch(handleNetErr)) | |
| .then(function(sdf, invalid) { | |
| console.log(sdf, invalid) // [Response, TypeError] | |
| }) | |
| .catch(function(err) { | |
| console.log(err); | |
| }) |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Multi Sites Laravel Routing | |
| |-------------------------------------------------------------------------- | |
| | | |
| | You may setup single laravel application to serve multiple applications | |
| | hosting on different domains and/or subdomain using the following | |
| | routing feature provided by laravel easily. Just define routes | |
| | as given below. |
| function usbhid(vendor_id, product_id) { | |
| this.product_id = product_id; | |
| this.vendor_id = vendor_id; | |
| this.buffer_1 = new Object(); | |
| this.buffer_2 = new Object(); | |
| this.xpcom = Components.classes["@firechip.info/hidapi;1"].createInstance().QueryInterface(Components.interfaces.nsIHid); | |
| this.manufacturer_string = function() { | |
| alert(this.xpcom.manufacturer_string); | |
| } | |
| this.product_string = function() { |