Skip to content

Instantly share code, notes, and snippets.

@orphaner
orphaner / notes.MD
Created October 24, 2018 20:33 — forked from tuxfight3r/notes.MD
docker registry tricks with skopeo and curl

Authentication in the registry can be provided by docker/skopeo

docker login -u admin https://docker-registry-default.apps1.ew1.aws.domain.local

or 

#skopeo uses the password from this file ~/.docker/config.json

Inspect the available tags

avec *
"_explanation": {
"value": 1,
"description": "max of:",
"details": [
{
"value": 1,
"description": "verb:GET*, product of:",
"details": [
{
import org.sonatype.nexus.repository.storage.StorageFacet;
import org.sonatype.nexus.repository.storage.Query;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
def fmt = DateTimeFormat.forPattern('yyyy-MM-dd HH:mm:ss');
// Get a repository
def repo = repository.repositoryManager.get('nuget-releases');
// Get a database transaction
def tx = repo.facet(StorageFacet).txSupplier().get();
@orphaner
orphaner / 0913-ParisJUG.txt
Created December 15, 2016 18:04 — forked from dadoonet/search_kibana_console.txt
Paris JUG 13/09/2016 - Elasticsearch demo
### REINIT
DELETE oss
PUT oss
{
"settings": {
"number_of_shards": 1
},
"mappings": {
"user": {
"properties": {
@orphaner
orphaner / ChangePassword.java
Created December 6, 2016 14:13 — forked from zach-klippenstein/ChangePassword.java
The keystore password on Java keystore files is utterly pointless. You can reset it without knowing it, as shown by this code. Note that private keys are still secure, as far as I know. The JKS implementation is copyright Casey Marshall ([email protected]), and the original source is available at http://metastatic.org/source/JKS.java. I've in…
import java.util.*;
import java.io.*;
import java.security.*;
public class ChangePassword
{
private final static JKS j = new JKS();
public static void main(String[] args) throws Exception
{
@orphaner
orphaner / npm-shrinkwrap.json
Last active November 29, 2016 16:28
npm registry
{
"name": "Project",
"version": "6.8.4",
"dependencies": {
"abbrev": {
"version": "1.0.9",
"from": "abbrev@>=1.0.0 <2.0.0",
"resolved": "http://registry.mydomain.com/repository/npm-group/abbrev/-/abbrev-1.0.9.tgz"
},
"accepts": {
@orphaner
orphaner / install-verbose.log
Last active November 28, 2016 09:41
npm bad registry
npm info it worked if it ends with ok
npm verb cli [ 'C:\\progs\\nodejs\\node.exe',
npm verb cli 'C:\\Users\\nlassalle.ext\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli 'install',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb request uri http://registry.mydomain.com/repository/npm-group/bower
npm verb request always-auth set; sending authorization
npm info attempt registry request try #1 at 10:03:47
@orphaner
orphaner / Documentation.md
Created July 28, 2016 08:24 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@orphaner
orphaner / .gtkrc-eclipse
Created January 16, 2016 17:22 — forked from andrioli/.gtkrc-eclipse
Config to make Eclipse Juno icons and tabs look small and nice in Linux
# Create a new file in your home directory called .gtkrc-eclipse
# call eclipse with this command:
# Gtk2 forced:
# export SWT_GTK3=0
# env GTK2_RC_FILES=/usr/share/themes/<YourTheme>/gtk-2.0/gtkrc:/home/<YourUser>/.gtkrc-eclipse '/path_to_eclipse/eclipse'
# In your Eclipse directory find the file 'e4_default_gtk.css'
# In this file there's a CSS class:
@orphaner
orphaner / colors.xml
Created October 31, 2015 13:54
Material Design Color Palette Colors.xml Resource file for Android
<?xml version="1.0" encoding="utf-8"?>
<!--
Google Material Design Color Palette for Android http://www.google.com/design/spec/style/color.html#color-ui-color-palette
Spreadsheet used to create this reosurce - http://bit.ly/mdcolor_spreadsheet
Link to this colors.xml resource file - http://bit.ly/mdcolorsxml
Harshad Kale
https://github.com/kalehv
[email protected]