Skip to content

Instantly share code, notes, and snippets.

View pc-coholic's full-sized avatar

Martin Gross pc-coholic

View GitHub Profile
@robbi5
robbi5 / README.md
Last active May 27, 2023 00:27
epson pos printer firmware

Download and extract epson pos printer firmware

Note: you may need to append -A or -B to your ProductName, based on which wifi adapter you use. If you don't, try -A.

Get Firmware List

curl -X "POST" "https://www.epson-biz.com/api/firm/" \
     -H 'Content-Type: application/json' \
     -d $'{
  "Rev": "2",
@alexheretic
alexheretic / clean-dot-cargo
Last active April 12, 2024 17:23
Deletes ~/.cargo cached data older than 2 weeks
#!/usr/bin/env bash
## Deletes ~/.cargo cached data older than 2 weeks
set -eu
du_before=$(du -hd0 ~/.cargo/ | cut -f1)
# remove old crate caches & sources
find ~/.cargo/registry/cache/ -type f -ctime +13 -atime +13 -delete
anonymous
anonymous / fneulion.go
Created April 26, 2015 03:24
FNeulion
package main
import "os"
import "fmt"
import "strconv"
import "net/http"
import "strings"
import "log"
import "time"
import "crypto/md5"
#!/usr/bin/env bash
curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz
mkdir vim && tar xzvf vim.tar.gz -C vim
export PATH=$PATH:/app/vim/bin
@zach-klippenstein
zach-klippenstein / ChangePassword.java
Last active June 4, 2024 10:28
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 (rsdio@metastatic.org), 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
{