Skip to content

Instantly share code, notes, and snippets.

View wonkpentink's full-sized avatar
🌴
On vacation

Eka Candra Setyobudi wonkpentink

🌴
On vacation
  • PT Sinar Mitra Sepadan Finance
  • Jakarta, Indonesia
View GitHub Profile
@wonkpentink
wonkpentink / encrypt_openssl.md
Created October 7, 2019 10:44 — forked from dreikanter/encrypt_openssl.md
File encryption using OpenSSL

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt

To decrypt:

Keybase proof

I hereby claim:

  • I am wonkpentink on github.
  • I am wonkpentink (https://keybase.io/wonkpentink) on keybase.
  • I have a public key whose fingerprint is DE1C 7B9E 0300 F04F 0136 1F7F 9D42 C73B 15E9 7E63

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am wonkpentink on github.
  • I am wonkpentink (https://keybase.io/wonkpentink) on keybase.
  • I have a public key ASB5upN7cR9RGC0Zwdg8-fBKAiSvGi8kj3fZFII6Q4UG5Qo

To claim this, I am signing this object:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wonkpentink
wonkpentink / 20px.svg
Last active July 24, 2016 09:22
Peta Koruptor Indonesia
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[{"name":"Bears","color":"Blue","position":{"x":177,"y":85},"modelclass":"Bear","increment":false,"timestamp":false,"softdelete":false,"column":[{"colid":"c217","name":"id","type":"increments","length":"0","order":0,"defaultvalue":"","enumvalue":""},{"colid":"c218","name":"name","type":"string","length":"200","order":1,"defaultvalue":"","enumvalue":""},{"colid":"c219","name":"danger_level","type":"string","length":"200","order":2,"defaultvalue":"","enumvalue":""}],"relation":[{"extramethods":"","foreignkeys":"","name":"fish","relatedmodel":"Fish","relationtype":"hasOne","usenamespace":""},{"extramethods":"","foreignkeys":"","name":"trees","relatedmodel":"Trees","relationtype":"hasMany","usenamespace":""},{"extramethods":"","foreignkeys":"bear_id, picnic_id","name":"picnics","relatedmodel":"Picnics","relationtype":"belongsToMany","usenamespace":""}],"seeding":[]},{"name":"Fish","color":"Yellow","position":{"x":1063,"y":14},"modelclass":"Fish","increment":false,"timestamp":false,"softdelete":false,"column":[{"c
$upl = $this->modelutils->uploadIbrta($_FILES['myfile'], false, true, 3000);
if ($upl['status'] == 400) {
echo $upl['error_msg'];
die();
}
@wonkpentink
wonkpentink / pbo
Created February 12, 2013 19:40
tugas pbo
import java.util.Scanner;
public class jumlah{
public static void main (String[] args) {
Scanner scan = new Scanner(System.in);
String bil1 = new String("");
System.out.println ("bilangan 1 :");
//bil1 = scan.next();
if (scan.hasNextInt()){
bil1 = scan.next();