Skip to content

Instantly share code, notes, and snippets.

Soulou Soulou

Block or report user

Report or block Soulou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Soulou
Soulou / file1.txt
Last active Dec 8, 2017
Test Gist URL
View file1.txt
This is a test v3
@Soulou
Soulou / child-app-gitlab.rb
Last active Jul 26, 2019
Deploy a child app on Scalingo from a Gitlab private repository
View child-app-gitlab.rb
#!/usr/bin/env ruby
require 'json'
require 'restclient'
auth_token = ENV["AUTH_TOKEN"]
api_url = ENV["SCALINGO_API_URL"] || "https://api.scalingo.com/v1"
auth_url = ENV["SCALINGO_AUTH_URL"] || "https://auth.scalingo.com/v1"
app = ENV["APP"]
View main.go
package main
import (
"fmt"
"syscall"
"unsafe"
)
const cursorColumn = false
@Soulou
Soulou / Gemfile
Created Feb 11, 2016
Get signed URL with shared fs S3
View Gemfile
source 'https://rubygems.org'
gem 'aws-s3'
@Soulou
Soulou / gen_repositories_btrfs.go
Created Dec 21, 2015
Restore repositories-btrfs of a full BTRFS parition of Docker
View gen_repositories_btrfs.go
package main
// docker images --no-trunc | awk '{print $1 " " $2 " " $3}' > images_data
// go run gen_repositories_btrfs.go images_data
import (
"bufio"
"bytes"
"encoding/json"
"fmt"
@Soulou
Soulou / Client output
Created Dec 27, 2014
go-graceful-restart - netstat
View Client output
└> go run pong.go
[Client] Received 4 bytes, 'ping'
[Client] Sent 'ping'
[Client] Received 4 bytes, 'ping'
[Client] Sent 'ping'
...
└> go run ./pong.go
[Client] Received 4 bytes, 'ping'
[Client] Sent 'ping'
[Client] Received 4 bytes, 'ping'
View gist:7379686
// # docker inspect 780cb5846872
[{
"ID": "780cb58468724809b994dcd862c62fa7a329424072ef9082a4e5a4bbdf6836d7",
"Created": "2013-11-09T00:58:43.833851609+01:00",
"Path": "/start",
"Args": [
"web",
"bundle",
"exec",
@Soulou
Soulou / hijackhttps.go
Created Jul 21, 2013
I was looking to do HTTPS socket hijacking, here is the way to do ! The link between client and server are completely encrpted. Keywords : HTTPS TCP Socket Hijacking Golang
View hijackhttps.go
package main
import (
"crypto/tls"
"fmt"
"net"
"net/http"
"net/http/httputil"
"time"
)
You can’t perform that action at this time.