snipt

Ctrl+h for KB shortcuts

Text only

convert bin to iso

# convert the bin file to iso
ccd2iso file.bin file.iso 
https://snipt.net/embed/75b269f6c8d0d07f0b7ddf2724b1e6d4/
/raw/75b269f6c8d0d07f0b7ddf2724b1e6d4/
75b269f6c8d0d07f0b7ddf2724b1e6d4
text
Text only
3
2019-08-25T11:01:22
True
False
False
/api/public/snipt/6885/
convert-bin-to-iso
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a># convert the bin file to iso </span><span id="L-2"><a name="L-2"></a>ccd2iso file.bin file.iso </span></pre></div> </td></tr></table>
bin, cue, iso, linux

Perl

hex2bin

1
2
3
4
5
6
7
my $s = '';
while(<STDIN>)
{
  chomp;
  $s .= $_;
}
print STDOUT pack("H*", $s);
https://snipt.net/embed/2299ac3a445cb2aef2d46531bf7415dd/
/raw/2299ac3a445cb2aef2d46531bf7415dd/
2299ac3a445cb2aef2d46531bf7415dd
perl
Perl
8
2019-08-25T15:48:45
True
False
False
/api/public/snipt/2809/
hex2bin
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="k">my</span> <span class="nv">$s</span> <span class="o">=</span> <span class="s">&#39;&#39;</span><span class="p">;</span> </span><span id="L-2"><a name="L-2"></a><span class="k">while</span><span class="p">(</span><span class="sr">&lt;STDIN&gt;</span><span class="p">)</span> </span><span id="L-3"><a name="L-3"></a><span class="p">{</span> </span><span id="L-4"><a name="L-4"></a> <span class="nb">chomp</span><span class="p">;</span> </span><span id="L-5"><a name="L-5"></a> <span class="nv">$s</span> <span class="o">.=</span> <span class="nv">$_</span><span class="p">;</span> </span><span id="L-6"><a name="L-6"></a><span class="p">}</span> </span><span id="L-7"><a name="L-7"></a><span class="k">print</span> <span class="bp">STDOUT</span> <span class="nb">pack</span><span class="p">(</span><span class="s">&quot;H*&quot;</span><span class="p">,</span> <span class="nv">$s</span><span class="p">);</span> </span></pre></div> </td></tr></table>
bin, hex, perl

Bash

install .bin file on ubuntu

SUDO CHMOD +X FILENAME.BIN
./FILENAME:BIN
https://snipt.net/embed/73bdac9bef433ffb37e05876fbb8f4ab/
/raw/73bdac9bef433ffb37e05876fbb8f4ab/
73bdac9bef433ffb37e05876fbb8f4ab
bash
Bash
2
2019-08-25T22:09:44
True
False
False
/api/public/snipt/1876/
install-bin-file-on-ubuntu
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>SUDO CHMOD +X FILENAME.BIN </span><span id="L-2"><a name="L-2"></a>./FILENAME:BIN </span></pre></div> </td></tr></table>
bin, ubuntu