Skip to content

Instantly share code, notes, and snippets.

View fariswd's full-sized avatar

Faris Widyantho fariswd

View GitHub Profile
@Insax
Insax / README.md
Last active July 25, 2024 04:33
Improved & Automated Palworld Setup for Linux Dedicated Servers

Improved & Automated Palworld Setup for Linux Dedicated Servers

Introduction

This small guide will introduce you to some helpful scripts to automatically manage a palworld server, please use all scripts at your own discretion This Guide will cover the following automated functionalities.

This guide is also aimed at debian destributions based on it. (Ubuntu etc.)

  • Automated PalWorld Gameserver start on server start
@pgrimaud
pgrimaud / encrypt.php
Last active December 30, 2023 10:35
Instagram enc_password generator
<?php
$data = file_get_contents('https://www.instagram.com/data/shared_data/');
$json = json_decode($data);
$password = 'password'; //fuck-itdoesntwork;
$publicKey = '8dd9aad29d9a614c338cff479f850d3ec57c525c33b3f702ab65e9e057fc087e';// $json->encryption->public_key;
$keyId = 154; //$json->encryption->key_id;
$version = 10; //$json->encryption->version;
@lantip
lantip / save_screenshot.py
Last active May 17, 2019 05:58
Script untuk menyimpan tangkap-layar dari laman KPU.
# Script ini hanyalah proof of concept untuk menyimpan laman satu website per 5 detik
# Script semacam ini sudah dibuktikan cara kerjanya oleh pak Budi Rahardjo di https://www.youtube.com/watch?v=DYlgavNY9LE
# Untuk menjalankan script ini dibutuhkan python3 dan library selenium dengan chromedriver
# POC ini hanya menyimpan 5 berkas saja. Anda bisa menambahkan sesuka Anda.
# Note: ini hanya script menyimpan screenshot, belum menjalankan fungsi seperti select input form. Itu akan ada di gist lain.
from selenium import webdriver
import time
browser = webdriver.Chrome()
browser.get('https://pemilu2019.kpu.go.id/#/ppwp/hitung-suara/')
// Gradle script for detached apps.
import org.apache.tools.ant.taskdefs.condition.Os
void runBefore(String dependentTaskName, Task task) {
Task dependentTask = tasks.findByPath(dependentTaskName);
if (dependentTask != null) {
dependentTask.dependsOn task
}
}
@akbarsahata
akbarsahata / news-item.js
Created November 23, 2017 04:29
miracle-fox vue component
Vue.component('news-item', {
template: `
<div class="panel panel-default">
<div class="panel-heading">
{{article.title}}
</div>
<div class="panel-body">
<img :src="article.urlToImage" class="img-responsive img-thumbnail">
<p>{{article.description}}</p>
<input type="text" v-model="article.title" />
@akbarsahata
akbarsahata / index.html
Created November 23, 2017 04:27
miracle-fox vue component
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hacktiv8 Job Boards</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
</head>
@cereallarceny
cereallarceny / index.js
Created October 12, 2017 20:37
Server-side rendering with create-react-app (Fiber), React Router v4, Helmet, Redux, and Thunk
// Ignore those pesky styles
require('ignore-styles');
// Set up babel to do its thing... env for the latest toys, react-app for CRA
require('babel-register')({
ignore: /\/(build|node_modules)\//,
presets: ['env', 'react-app']
});
// Now that the nonsense is over... load up the server entry point
function createHash() {
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < 32; i++)
text += possible.charAt(Math.ceil(Math.random() * possible.length));
return text;
}
@IgorMing
IgorMing / barcodescanner.js
Last active April 13, 2023 19:52
Barcode Scanner on React Native (with expo), stylized with opaque edges
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { BarCodeScanner } from 'expo';
export default class App extends React.Component {
render() {
return (
<BarCodeScanner
onBarCodeRead={(scan) => alert(scan.data)}
style={[StyleSheet.absoluteFill, styles.container]}
@kyo504
kyo504 / index.ios.js
Created April 12, 2017 16:38
Store base64 image with AsyncStorage
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View,
ImageStore,
Image,
ImageEditor,
AsyncStorage,
Button,