Skip to content

Instantly share code, notes, and snippets.

View goeroeku's full-sized avatar

Agus Indra Cahaya goeroeku

View GitHub Profile
@goeroeku
goeroeku / Installasi.md
Last active July 23, 2019 23:22
All about Docker & Ranches on Manjaro

Docker

a. Install Docker

sudo pacman -S docker docker-machine docker-compose

b. Jalankan Service

sudo systemctl start docker

c. Tambahkan current user ke group docker agar pada saat menjalankan tidak perlu menggunakan sudo

@corinneling
corinneling / web-scraper-node-js.md
Last active February 24, 2022 23:21
Node web scraper with axios and cheerio

Node JS Web Scraper

I this is part of the first node web scraper I created with axios and cheerio. I took out all of the logic, since I only wanted to showcase how a basic setup for a nodejs web scraper would look.

const cheerio = require('cheerio'),
      axios = require('axios'),
      url = `<url goes here>`;
 
@goeroeku
goeroeku / Readme.md
Last active August 16, 2019 06:56
All about IoT

Software pendukung IoT

  1. minicom Terminal emulator
# sudo pacman -Ss minicom
# sudo minicom -s

Untuk keluar dari emulator

# CTRL+A X
@cse031sust02
cse031sust02 / push.php
Created January 24, 2018 11:23
Send push notification using Firebase
<?php
use GuzzleHttp;
$access_token = 'FIREBASE CLOUD MESSAGING SERVER KEY';
$reg_id = 'DEVICE REGISTRATION ID';
$message = [
'notification' => [
@goeroeku
goeroeku / .bashrc.md
Last active October 18, 2020 12:12
All About Arch / Manjaro

setting bashrc or bash_profile

location : ~./.bashrc | ~/.bash_profile
#
# ~/.bashrc
#

[[ $- != *i* ]] && return
@siwalikm
siwalikm / aes-256-cbc.js
Last active May 7, 2024 17:22
AES-256-CBC implementation in nodeJS with built-in Crypto library
'use strict';
const crypto = require('crypto');
const ENC_KEY = "bf3c199c2470cb477d907b1e0917c17b"; // set random encryption key
const IV = "5183666c72eec9e4"; // set random initialisation vector
// ENC_KEY and IV can be generated as crypto.randomBytes(32).toString('hex');
const phrase = "who let the dogs out";
var encrypt = ((val) => {
@eddmann
eddmann / modify-ec2-instance-type.js
Created November 3, 2017 15:32
Scheduled EC2 Instance Type Modification using Lambda and CloudWatch Events
// Demonstration video can be found at: https://youtu.be/_gJyK1-NGq8
// ModifyEC2InstanceType
const AWS = require('aws-sdk');
exports.handler = (event, context, callback) => {
const { instanceId, instanceRegion, instanceType } = event;
const ec2 = new AWS.EC2({ region: instanceRegion });
@smoser
smoser / .gitignore
Last active April 1, 2024 07:38
cloud-init ubuntu nocloud example with network config
*.img
*.raw
@junaid-malik-confiz
junaid-malik-confiz / haproxy.cfg
Last active November 10, 2021 09:50
Haproxy configuration to handle email alerts in case servr go down / up
backend pakkey_ser_with_auth_junaid
email-alert mailers mta
email-alert level info
email-alert from noreply@example.com
email-alert to example@example.com
option httpchk HEAD / HTTP/1.1\r\nHost:\ www.pakkey.com\r\nAuthorization:\ Basic\ cGFrYm9hcmQ6cFlzWEtlR1R3Tm85Ng==
server server1 127.0.0.1:8080 check inter 5000 fastinter 2000 fall 1 observe layer7 on-error mark-down error-limit 10
server server2 127.0.0.1:9000 check inter 5000 fastinter 1000 fall 1 observe layer7 on-error mark-down error-limit 10
errorfile 503 /etc/haproxy/maintenance.http
@jhaddix
jhaddix / all.txt
Last active May 19, 2024 14:35
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎