I hereby claim:
- I am alibo on github.
- I am alibo (https://keybase.io/alibo) on keybase.
- I have a public key whose fingerprint is DFF3 2B75 6222 ACE7 5367 3220 7191 34AD 0F9D 1808
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"log" | |
"strconv" | |
"github.com/miekg/dns" | |
) |
# Add this record to your `/etc/hosts` file; You can run one of these commands to do so: | |
# | |
# $ sudo bash -c 'echo "0.0.0.0 ocsp.apple.com" >> /etc/hosts' | |
# | |
# or | |
# | |
# $ sudo nano /etc/hosts | |
# | |
# More info: https://support.apple.com/en-us/HT210060 |
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func main() { | |
http.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) { |
# issue: https://github.com/seveas/python-hpilo/issues/189 | |
# thanks to @Shados: https://github.com/seveas/python-hpilo/issues/189#issuecomment-430893230 | |
import re | |
import ssl | |
import json | |
import hpilo | |
ilo3_context = ssl.create_default_context() |
upstream @api_golang { | |
server 127.0.0.1:8080; # same node | |
server 111.222.111.222:8080; | |
} | |
upstream @api_php { | |
server 127.0.0.1:80; # nginx/apache/... - another node | |
server 111.222.111.222:80; # nginx/apache/... - another node | |
} |
#----- Create a Docker for cross-compilation -----# | |
mkdir build && cd $_ | |
docker run -it --rm -v `pwd`:/build golang:1.8.3 /bin/bash | |
#----- Inside docker -----# | |
go get github.com/elastic/beats | |
cd /go/src/github.com/elastic/beats/filebeat/ | |
git checkout v5.6.3 | |
GOARCH=arm go build | |
cp filebeat /build | |
exit |
'use strict'; | |
/* | |
Thanks to https://gist.github.com/vgeshel/1dba698aed9e8b39a464 | |
*/ | |
console.log('Loading function'); | |
const aws = require('aws-sdk'); | |
const s3 = new aws.S3({ apiVersion: '2006-03-01' }); |
I hereby claim:
To claim this, I am signing this object:
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Redis\Database; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bootstrap any application services. |
chmod a+w -R config/ | |
chmod a+w -R cache/ | |
chmod a+w -R log/ | |
chmod a+w -R img/ | |
chmod a+w -R mails/ | |
chmod a+w -R modules/ | |
chmod a+w -R themes/default-bootstrap/lang/ | |
chmod a+w -R themes/default-bootstrap/pdf/lang/ | |
chmod a+w -R themes/default-bootstrap/cache/ | |
chmod a+w -R translations/ |