stuzer05 / Postgres upgrade major version
                            
                            0 curtidas
                        
                        
                            
                            0 bifurcações
                        
                        
                            
                            1 arquivos
                        
                    Última atividade 1 week ago
https://github.com/docker-library/postgres/issues/37#issuecomment-180615524
| 1 | docker exec postgres-old pg_dumpall -U root | docker exec -i postgres-new psql -U root | 
stuzer05 / Docker prune volumes --dry-run
                            
                            0 curtidas
                        
                        
                            
                            0 bifurcações
                        
                        
                            
                            1 arquivos
                        
                    Última atividade 2 weeks ago
| 1 | docker volume ls --filter dangling=true | 
stuzer05 / Docker inspect to run converter
                            
                            0 curtidas
                        
                        
                            
                            0 bifurcações
                        
                        
                            
                            1 arquivos
                        
                    Última atividade 4 months ago
`docker inspect` template to regenerate the `docker run` command that created a container, https://gist.github.com/efrecon/8ce9c75d518b6eb863f667442d7bc679, docker inspect --format "$(curl -s https://gist.stuzer.link/stuzer05/fdfc31107ce04720a186d409498e82f2/raw/HEAD/run.tpl)" 55a319b7e124
| 1 | docker run \ | 
| 2 | --name {{printf "%q" .Name}} \ | 
| 3 | {{- with .HostConfig}} | 
| 4 | {{- if .Privileged}} | 
| 5 | --privileged \ | 
| 6 | {{- end}} | 
| 7 | {{- if .AutoRemove}} | 
| 8 | --rm \ | 
| 9 | {{- end}} | 
| 10 | {{- if .Runtime}} | 
stuzer05 / Decode HeidiSQL export password
                            
                            0 curtidas
                        
                        
                            
                            0 bifurcações
                        
                        
                            
                            1 arquivos
                        
                    Última atividade 9 months ago
| 1 | function heidiDecode(hex) { | 
| 2 | var str = ''; | 
| 3 | var shift = parseInt(hex.substr(-1)); | 
| 4 | hex = hex.substr(0, hex.length - 1); | 
| 5 | for (var i = 0; i < hex.length; i += 2) | 
| 6 | str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift); | 
| 7 | return str; | 
| 8 | } | 
| 9 | document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393')); | 
stuzer05 / Oracle search source code in functions DDL
                            
                            1 curtidas
                        
                        
                            
                            0 bifurcações
                        
                        
                            
                            1 arquivos
                        
                    Última atividade 11 months ago
| 1 | SELECT | 
| 2 | type, | 
| 3 | name, | 
| 4 | text | 
| 5 | FROM | 
| 6 | all_source | 
| 7 | WHERE | 
| 8 | type IN ( 'FUNCTION', 'PROCEDURE' ) | 
| 9 | AND UPPER(text) like UPPER('%EI_KURS_VAL%') | 
| 10 | ORDER BY type, name | 
stuzer05 / Go context.WithCancel() example
                            
                            0 curtidas
                        
                        
                            
                            0 bifurcações
                        
                        
                            
                            1 arquivos
                        
                    Última atividade 1 year ago
| 1 | func doWork(ctx context.Context) { | 
| 2 | for { | 
| 3 | select { | 
| 4 | case <-ctx.Done(): | 
| 5 | return | 
| 6 | default: | 
| 7 | } | 
| 8 | |
| 9 | time.Sleep(1 * time.Second) | 
| 10 | fmt.Println("doing work...") | 
stuzer05 / Oracle view locked tables
                            
                            0 curtidas
                        
                        
                            
                            0 bifurcações
                        
                        
                            
                            1 arquivos
                        
                    Última atividade 1 year ago
| 1 | SELECT o.object_name, o.object_type, l.session_id, l.locked_mode | 
| 2 | FROM v$locked_object l | 
| 3 | JOIN dba_objects o ON l.object_id = o.object_id; | 
stuzer05 / Nginx default vhost configuration
                            
                            0 curtidas
                        
                        
                            
                            0 bifurcações
                        
                        
                            
                            1 arquivos
                        
                    Última atividade 1 year ago
| 1 | http { | 
| 2 | |
| 3 | server { | 
| 4 | listen 80 default_server; | 
| 5 | server_name _; | 
| 6 | |
| 7 | return 404; | 
| 8 | } | 
| 9 | 
    
    
                            
                            Próximo
    
    
    Anterior