Skip to content

Instantly share code, notes, and snippets.

View troke12's full-sized avatar
🎯
We serve you better

I Made Ocy Darma Putra troke12

🎯
We serve you better
View GitHub Profile
@troke12
troke12 / jenkins-decrypt.py
Created May 13, 2023 09:12 — forked from menski/jenkins-decrypt.py
Decrypt jenkins password hashes
#!/usr/bin/env python3
# original: https://raw.githubusercontent.com/tweksteen/jenkins-decrypt/master/decrypt.py
# requires: pycrypto
import re
import sys
import base64
@troke12
troke12 / build.sh
Created July 18, 2022 07:18
Building docker with current branch
#!/bin/bash
branch=$(git symbolic-ref --short HEAD)
case $branch in
"development")
prefix="dev"
cp .env.development .env
;;
"staging")
@troke12
troke12 / clearconfiglaravel.md
Last active July 13, 2022 02:09
Clear Config Cache Laravel

Pastikan semua di clear

Clear Application Cache

php artisan cache:clear

Clear Route Cache

php artisan route:clear

Clear Configuration Cache

php artisan config:clear

Clear Compiled Views Cache

php artisan view:clear

server {
listen 80;
listen [::]:80;
server_name namadomainkamu.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
@troke12
troke12 / be-my-valentine-heart-beating-with-css3-animations.markdown
Created February 13, 2022 15:38
Be my Valentine heart, beating with css3 animations

Be my Valentine heart, beating with css3 animations

Open your heart with a special message for your loved one. Css3 animations make it beat and after clicking a message is shown.

A Pen by Skippy on CodePen.

License.

@troke12
troke12 / stream.sh
Created February 3, 2022 13:16
Untuk youfi anjing
#!/bin/bash
streamKey="MASUKINDISINI"
namaFile="data/youfi_anjing.mp4"
ffmpeg -re -stream_loop -1 -i $namaFile -c copy -f flv -flvflags no_duration_filesize rtmp://a.rtmp.youtube.com/live2/$streamKey
@troke12
troke12 / autoparagraph.php
Created February 2, 2022 07:09
Auto paragraph untuk gusde
<?php
// example code
$text = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a s
@troke12
troke12 / README.MD
Created October 31, 2021 14:32 — forked from giordanocardillo/README.MD
Remove Office 2016 Product Key
  1. Open a command prompt as Administrator
  2. In the command prompt, type the following:
  • Office 2016 (32-bit) on a 32-bit version of Windows

    cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus

  • Office 2016 (32-bit) on a 64-bit version of Windows

    cscript "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" /dstatus

  • Office 2016 (64-bit) on a 64-bit version of Windows

Keybase proof

I hereby claim:

  • I am troke12 on github.
  • I am troke (https://keybase.io/troke) on keybase.
  • I have a public key whose fingerprint is 0E10 76F9 0296 7867 BEE0 8C5B 10A5 42AC 5685 C9AF

To claim this, I am signing this object: