Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

Agus Ibrahim agusibrahim

🌴
On vacation
View GitHub Profile
View enchatwoot.json
{
"SURVEY": {
"DESCRIPTION": "Dear customer 👋, please take a few moments to share feedback about the conversation you had with %{inboxName}.",
"RATING": {
"LABEL": "Rate your conversation",
"SUCCESS_MESSAGE": "Thank you for submitting the rating"
},
"FEEDBACK": {
"LABEL": "Do you have any thoughts you'd like to share?",
"PLACEHOLDER": "Your feedback (optional)",
@agusibrahim
agusibrahim / expose_wsl_port.js
Created Aug 19, 2021
Expose your WSL port to other device (same network)
View expose_wsl_port.js
const execSync = require('child_process').execSync;
async function main (){
var wslip=(await execSync("bash -c \"hostname --all-ip-addresses\"")+"").replace(" ","").replace("\n","")
try{
await execSync("NET SESSION >nul 2>&1")
}catch{
console.log("Please run as Administrator")
return
}
if(process.argv.length<2 || isNaN(process.argv[2])){
@agusibrahim
agusibrahim / ftp_test.py
Last active May 3, 2020
ftp connection checker
View ftp_test.py
import ftplib, time, urllib2, urllib
from configparser import ConfigParser
config=ConfigParser()
config.read("ftp_config.ini")
# atur disini yaa
HOSTNAME="localhost"
PORT=14147
View gist:5f902d61372b24678794bd0a0267abb7
@charset "UTF-8";
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
/* line 9, ../scss/includes/_normalize.scss */
html {
font-family: sans-serif;
View index.html
<button onclick="share1()">SHARE TEKS</button>
<button onclick="share2()">SHARE IMG</button>
<button onclick="share3()">SHARE WHATSAPP</button>
<button onclick="notif1()">SHOW NOTIF</button>
View airlines_iata.json
[
{
"iata": "0B",
"name": "Blue Air"
},
{
"name": "Ghadames Air",
"iata": null
},
{
@agusibrahim
agusibrahim / IosHelper.cs
Created May 17, 2019
Ios find active view controller
View IosHelper.cs
using System;
using UIKit;
namespace Plugin.Toast
{
/// <summary>
///
/// </summary>
public static class IosHelper
{
@agusibrahim
agusibrahim / Kode.gs
Created Mar 18, 2019
Form Registrasi with google script
View Kode.gs
function myFunction() {
}
function doGet() {
var idx=HtmlService.createHtmlOutputFromFile("home");
idx.setTitle("REGISTRATION")
return idx;
}
function sendMeQr(fullname, company, position, email){
var ss = SpreadsheetApp.openById("1RZwLAmIFfXrNuwti-K4v3hsT-TjYXsEI_evnpX0TdKU");
View index.html
<!DOCTYPE HTML>
<html>
<body>
<p id="labelgen">PLEASE WAIT...</p>
<a id="download" download="triangle.png"><button type="button" onClick="download()">Download Now</button></a><br>
<canvas style="display='none'" crossOrigin="Anonymous" id="myCanvas" width="899" height="550"></canvas>
</body>
</html>
View opera_news_sources.json
This file has been truncated, but you can view the full file.
{
"version":1,
"created":"Wed Sep 12 16:19:22 2018",
"countryLanguageVersion":"0/36",
"sites":[
[
"",
0,
[