Skip to content

Instantly share code, notes, and snippets.

View hikikomorime's full-sized avatar
🏠
Working from home

hikikomorime

🏠
Working from home
View GitHub Profile
@hikikomorime
hikikomorime / accounts.list
Created June 12, 2024 08:21 — forked from onlime/accounts.list
imapsync script to migrate multiple IMAP accounts in a row
# <SRCUSER> <SRCPW> <DSTUSER> <DSTPW>
const express = require("express");
require("actions-on-google")
// require('dotenv').config();
const axios = require('axios');
const { WebhookClient } = require("dialogflow-fulfillment");
const app = express();
app.post("/dialogflow", express.json(), (req, res) => {
const agent = new WebhookClient({ request: req, response: res });
let intentMap = new Map();
intentMap.set("Default Welcome Intent", welcome);
@hikikomorime
hikikomorime / gist:7c98df49078072d5e5f1a250de69e5e2
Created November 13, 2020 23:34 — forked from antics/gist:4079584
Login to Wordpress with curl
curl -D cookie1.txt blog.xrmplatform.org/wp-login.php
# step 1
# get default cookie of blog and write cookie to cookie1.txt
# step 2
# simulate browser Firefox( of course , you can use any browser agent<!--more--> what you want!) "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"
# input your username and also password
# write new cookie to cookie2.txt
curl -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" -D cookie2.txt -b cookie1.txt -F log=username -F pwd=password -F testcookie=1 -F wp-submit="Log In" -F redirect_to=blog.xrmplatform.org/wp-admin -F submit=login -F rememberme=forever blog.xrmplatform.org/wp-login.php
# currently cookie2.txt stored all cookie info
@hikikomorime
hikikomorime / gist:d0b1c2542d545fc420f1e9c2786328b0
Created May 13, 2020 14:59 — forked from mcrute/gist:1961394
Shoutcast streaming with HTML5
<!html>
<html>
<head>
<title>Test Player</title>
</head>
<body>
<audio controls="controls">
<source src="http://shout1.phoncert.softgrouphosting.net:8096/source" type="audio/mp3" />
Your browser does not support the audio tag.
</audio>
@hikikomorime
hikikomorime / broadcast.sh
Created May 9, 2020 05:11 — forked from BusterNeece/broadcast.sh
FunkyWayFM: The shell script used to merge the video feed and AzuraCast-powered radio feed into a single YouTube stream.
#! /bin/bash
VBR="1500k"
FPS="30"
QUAL="veryfast"
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2"
KEY=""
VIDEO_SOURCE="/home/ubuntu/video3.mp4"
<img csrc="https://facebook.com/some-url.jpg"
alt="Image may contain: golf, grass, outdoor and nature"
width="316" height="237">
#Wymuszenie adresu bez prefiksu www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.twojastrona\.pl [NC]
RewriteRule ^(.*)$ http://twojastrona.pl/$1 [L,R=301]
#Wymuszenie adresu z prefiksem www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^twojastrona.pl [NC]
RewriteRule ^(.*)$ http://www.twojastrona.pl/$1 [L,R=301,NC]
@hikikomorime
hikikomorime / wp_debug
Created January 29, 2016 19:39
wp_debug
define('WP_DEBUG',true);