- Clone the repo
git clone --mirror https://github.com/vuejs/vue
cd
into the cloned repo- Create a bundle file in the parent directory
git bundle create ../vuejs_vue.bundle --all
// ==UserScript== | |
// @name Git Archive | |
// @namespace http://wingysam.xyz/ | |
// @version 2.4 | |
// @description Mirror every git repo you look at to gitea | |
// @author Wingy <[email protected]> | |
// @include * | |
// @grant GM_xmlhttpRequest | |
// @grant GM_notification | |
// @grant GM_openInTab |
var crypto = require('crypto'); | |
// Added for safer string equality checking | |
var bufferEq = require('buffer-equal-constant-time'); | |
var url = require('url'); | |
var SHARED_SECRET = "sup3rs3cr3t!!"; | |
function verifySignature(string_to_sign, signature, shared_secret) { | |
var hmac = crypto.createHmac('sha512', shared_secret); | |
hmac.write(string_to_sign); | |
hmac.end() |
var net = require('net'); | |
// creates the server | |
var server = net.createServer(); | |
//emitted when server closes ...not emitted until all connections closes. | |
server.on('close',function(){ | |
console.log('Server closed !'); | |
}); |
const http = require('http'); | |
const server = http.createServer(); | |
server.on('request', (request, response) => { | |
let body = []; | |
request.on('data', (chunk) => { | |
body.push(chunk); | |
}).on('end', () => { | |
body = Buffer.concat(body).toString(); |
Phoenix 1.4 ships with exciting new features, most notably with HTTP2 support, improved development experience with faster compile times, new error pages, and local SSL certificate generation. Additionally, our channel layer internals receiveced an overhaul, provided better structure and extensibility. We also shipped a new and improved Presence javascript API, as well as Elixir formatter integration for our routing and test DSLs.
This release requires few user-facing changes and should be a fast upgrade for those on Phoenix 1.3.x.
The mix phx.new archive can now be installed via hex, for a simpler, versioned installation experience.
To grab the new archive, simply run:
To Display the current git commit hash execute the following snipped:
git rev-parse --short HEAD
To Extract this to use in a Jenkinsfile use the sh function with the script and returnStdout parameter set to true:
def commitHash = sh(script: 'git rev-parse --short HEAD', returnStdout: true)
#!/usr/bin/env ruby | |
require "openssl" | |
require 'digest/sha2' | |
require 'base64' | |
# We use the AES 256 bit cipher-block chaining symetric encryption | |
alg = "AES-256-CBC" | |
# We want a 256 bit key symetric key based on some passphrase | |
digest = Digest::SHA256.new |
require 'openssl' | |
class String | |
def encrypt(key) | |
cipher = OpenSSL::Cipher.new('DES-EDE3-CBC').encrypt | |
cipher.key = Digest::SHA1.hexdigest key | |
s = cipher.update(self) + cipher.final | |
s.unpack('H*')[0].upcase | |
end |
#!/bin/bash | |
WEB_PORT=8080 | |
WEB_CONTAINER_NAME="zf2-web" | |
MYSQL_CONTAINER_NAME="zf2-mysql" | |
MYSQL_PASSWORD="mypassword" | |
MYSQL_LOCAL_PORT=13306 |