Skip to content

Instantly share code, notes, and snippets.

View thuanpham582002's full-sized avatar
🍀
cosmic signal

thuanpham582002

🍀
cosmic signal
View GitHub Profile
package com.streetvoice.streetvoice.player;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.ShortBuffer;
import java.util.Arrays;
import java.util.LinkedList;
@lucakiebel
lucakiebel / mongodump_in_docker-compose.sh
Last active May 15, 2024 18:28
Use Mongodump and Mongorestore to backup and restore MongoDB Databases run in docker-compose
docker-compose exec -T mongodb mongodump --authenticationDatabase admin -u root -p password --db test --archive --gzip > dump.gz
@fiftyonemoon
fiftyonemoon / AndroidXI
Created July 12, 2021 14:57
File create, rename, duplicate and delete in Android11.
import android.app.PendingIntent;
import android.app.RecoverableSecurityException;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.content.IntentSender;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.provider.MediaStore;
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active September 24, 2024 12:19
crack activate Office on mac with license file
@mcastelino
mcastelino / iptables-cheatsheet.md
Last active August 23, 2024 21:29
iptables-cheatsheet

The netfilter hooks in the kernel and where they hook in the packet flow

The figure below calls out

  • The netfilter hooks
  • The order of table traversal
@adamrunner
adamrunner / gen_cert.sh
Created March 31, 2016 18:26
bash script to generate a self signed certificate for development use
#!/bin/bash
# Bash shell script for generating self-signed certs. Run this in a folder, as it
# generates a few files. Large portions of this script were taken from the
# following artcile:
#
# http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html
#
# Additional alterations by: Brad Landers
# Date: 2012-01-27