Skip to content

Instantly share code, notes, and snippets.

View creativefull's full-sized avatar

Shodiqul Muzaki creativefull

View GitHub Profile
@creativefull
creativefull / defikingdoms-default.tokenlist.json
Last active October 23, 2021 08:49
defikingdoms-default.tokenlist.json
{
"name": "DFK Default",
"timestamp": "2021-09-14T23:31:32.722Z",
"version": {
"major": 3,
"minor": 0,
"patch": 1
},
"tags": {},
"logoURI": "https://firebasestorage.googleapis.com/v0/b/defi-kingdoms.appspot.com/o/tokens%2FJEWEL.png?alt=media",
@creativefull
creativefull / privacy-policy-ratu-pulsa.html
Created July 5, 2019 19:35
Privacy Policy Ratu Pulsa
<h2 style="background-color: white; color: #616161; font-family: Roboto, Helvetica, Arial, sans-serif; font-size: 45px; font-weight: 400; line-height: 48px; margin: 24px 0px; padding: 0px;">
Privacy Policy</h2>
<div style="background-color: white; color: #616161; font-family: Roboto, Helvetica, sans-serif; font-size: 14px; line-height: 24px; margin-bottom: 16px; padding: 0px;">
Ratu Pulsa built the Ratu Pulsa app as a Free app. This SERVICE is provided by Ratu Pulsa at no cost and is intended for use as is.</div>
<div style="background-color: white; color: #616161; font-family: Roboto, Helvetica, sans-serif; font-size: 14px; line-height: 24px; margin-bottom: 16px; padding: 0px;">
This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.</div>
<div style="background-color: white; color: #616161; font-family: Roboto, Helvetica, sans-serif; font-size: 14px; line-height: 24px; margin-bottom: 16px; padding: 0px
[{
"id" : "1",
"image_url" : "https://i.imgur.com/LAAc2m.jpg",
"title" : "This is a wallapeper"
},{
"id" : "2",
"image_url" : "https://i.imgur.com/LAAc2m.jpg",
"title" : "This is a wallapeper 2"
},{
"id" : "3",
How to install and run Headless nightmare.js based scripts in Ubuntu.
Steps:
1. Spin Ubuntu 16.04 x64 server
2. Run: apt-get update
3. Run: apt-get upgrade
4. Run: apt-get install -y libgtk2.0-0 libgconf-2-4 libasound2 libxtst6 libxss1 libnss3 xvfb
5. Install Node.js 6+. See: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
You can then run your script using this command:
@creativefull
creativefull / auto-backup.sh
Created February 26, 2018 07:48
Auto Backup push git
#!/bin/sh
DIR=`date +%m%d%y`
INITHOME=/home/server/backup/db-smart
DEST=$INITHOME/$DIR
mkdir -p $DEST
# MULAI BACKUP
mongodump -h localhost --port=29000 -d smart -o $DEST
# KIRIM PESAN KE SLACK
curl -X POST -H 'Content-type: application/json' --data '{"text":"System anda sudah berhasil backup data di folder '$DEST' :kissing_heart: "}' https://hooks.slack.com/services/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
function hex(buffer) {
var hexCodes = [];
var view = new DataView(buffer);
for (var i = 0; i < view.byteLength; i += 4) {
// Using getUint32 reduces the number of iterations needed (we process 4 bytes each time)
var value = view.getUint32(i)
// toString(16) will give the hex representation of the number without padding
var stringValue = value.toString(16)
// We use concatenation and slice for padding
var padding = '00000000'
@creativefull
creativefull / composer.json
Created October 25, 2017 03:05 — forked from andyshinn/composer.json
Docker Compose PHP Composer Example
{
"require": {
"mfacenet/hello-world": "v1.*"
}
}
import React from 'react';
import { StyleSheet, Text, View, Alert, ToastAndroid, TextInput, Animated, TouchableOpacity } from 'react-native';
import {StackNavigator} from 'react-navigation'
class App extends React.Component {
constructor() {
super()
this.state = {
animasi : {
title : new Animated.Value(0),
0xbc656c29B3608CF864Bf4c382b47221AD9a3cc34
pertama request ini
https://drive.google.com/file/d/0B8JnOc7tqLE0c1NtWEJpX1hjQmc/view
setelah itu dapat cookies, cookies nya diambil
kemudian request get_video_info (contoh jika pakai command line)
curl 'https://drive.google.com/get_video_info?docid=0B8JnOc7tqLE0c1NtWEJpX1hjQmc' -H 'pragma: no-cache' -H 'accept-encoding: gzip, deflate, br' -H 'accept-language: en-US,en;q=0.8' -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/59.0.3071.109 Chrome/59.0.3071.109 Safari/537.36' -H 'x-chrome-uma-enabled: 1' -H 'accept: */*' -H 'cache-control: no-cache' -H 'authority: drive.google.com' -H 'cookie: __utma=1.1797675748.1499796393.1499796393.1499796393.1; __utmc=1; __utmz=1.1499796393.1.1.utmcsr=yahoo|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); DRIVE_STREAM=NovD19d3PHk; SID=6QS7rZJ-_oUhm1ts140napUTSz5KJc4BRxt-7OTykZPaTQXfMakkvOuWf0yYQhqJqJPpMg.; HSID=ACdTZiTEERjrRQuh7; SSID=AnXRrVoaXVLbUnLK-; APISID=vMog5qWo9B3bFCSb/A_zFC-28oyZlrQi3S; SAPISID=aMhNQ766