๐Ÿš€ HickleSecLab

All Posts

Thumbnail for Posts

How to properly seed random number generator

๐Ÿ“‚ Categories: Go
๐Ÿท๏ธ Tags: Random

I am trying to generate a random string in Go and here is the code I have written so far package main import bytes fmt mathrand time func main

Thumbnail for Posts

How to redirect docker container logs to a single file

๐Ÿ“‚ Categories: Docker
๐Ÿท๏ธ Tags: Logging

I want to redirect all the logs of my docker container to single log file to analyse them I tried docker logs container gt tmpstdoutlog 2gttmpstderrlog but

Thumbnail for Posts

How to Remove Array Element and Then Re-Index Array

๐Ÿ“‚ Categories: Php
๐Ÿท๏ธ Tags: Arrays Indexing

I have some troubles with an array I have one array that I want to modify like below I want to remove element elements of it by index and then reindex array Is

Thumbnail for Posts

How to remove selected commit log entries from a Git repository while keeping their changes

๐Ÿ“‚ Categories: Programming
๐Ÿท๏ธ Tags: Git Commit

I would like to remove selected commit log entries from a linear commit tree so that the entries do not show in the commit log My commit tree looks something

Thumbnail for Posts

How to return a file FileContentResult in ASPNET WebAPI

๐Ÿ“‚ Categories: C#

In a regular MVC controller we can output pdf with a FileContentResult public FileContentResult TestTestViewModel vm var stream new MemoryStream add content to

Thumbnail for Posts

How to see logs from npm installation

๐Ÿ“‚ Categories: Programming
๐Ÿท๏ธ Tags: Npm Logging Npm-Install

I am unable to install ionic through npm Are there any logs that I can check to see whats wrong and if yes where are they located What I see is the waiting

Thumbnail for Posts

How to set breakpoints in inline Javascript in Google Chrome

๐Ÿ“‚ Categories: Javascript
๐Ÿท๏ธ Tags: Debugging Google-Chrome

When I open Developer Tools in Google Chrome I see all kinds of features like Profiles Timelines and Audits but basic functionality like being able to set

Thumbnail for Posts

How to stage only part of a new file with git

๐Ÿ“‚ Categories: Programming
๐Ÿท๏ธ Tags: Git

I love git add interactive It is now part of my daily workflow The problem seems that it does not work with untracked files What I want to do is track a new

Thumbnail for Posts

HTML encoding issues - character showing up instead of nbsp

๐Ÿ“‚ Categories: Html

Ive got a legacy app just starting to misbehave for whatever reason Im not sure It generates a bunch of HTML that gets turned into PDF reports by ActivePDF The