Taken from StackExchange
Thanks to LangLangC
For temperature and other improvements see https://gist.github.com/cdleon/d16e7743e6f056fedbebc329333d79df
from IPython.lib.display import Audio | |
import numpy as np | |
framerate = 4410 | |
play_time_seconds = 3 | |
t = np.linspace(0, play_time_seconds, framerate*play_time_seconds) | |
audio_data = np.sin(2*np.pi*300*t) + np.sin(2*np.pi*240*t) | |
Audio(audio_data, rate=framerate, autoplay=True) |
Taken from StackExchange
Thanks to LangLangC
For temperature and other improvements see https://gist.github.com/cdleon/d16e7743e6f056fedbebc329333d79df
#!/bin/sh | |
# script to change the sleep mode of an OS X machine | |
usage () { | |
echo "supported sleep modes:" | |
echo " sleep" | |
echo " safesleep" | |
echo " hibernate" | |
echo " secure" | |
echo " insecure" |
<?php | |
$_GET["username"] = ""; | |
$_GET["db"] = "database"; | |
function adminer_object() { | |
class AdminerAutoLogin extends Adminer { | |
function credentials() { | |
return array("127.0.0.1", "username", "password"); | |
} | |
function login($login, $password) { | |
return true; |
Install and Configure Cntlm: | |
1. Configure EPEL Repo and install cntlm | |
yum install cntlm | |
3. Generate hashes for password-less configuration and add one of the values to /etc/cntlm.conf | |
cntlm -u <user>@<domain> -H | |
3. vi /etc/cntlm.conf | |
Username <Username> | |
Domain <Domain> | |
PassNTLMv2 BCB555F5BA8709B8186C2A813C47A4BD # Only for user '<user>', domain '<domain>' | |
Proxy <ProxyServer>:<Port> |
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<directoryBrowse enabled="true" /> | |
</system.webServer> | |
</configuration> |
<?php | |
include './vendor/autoload.php'; | |
$classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__); | |
$classLoader->register(); | |
$classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__); | |
$classLoader->register(); | |
class RepoGen extends Doctrine\ORM\Tools\EntityRepositoryGenerator { | |
protected static $_template = |
<?php | |
include '../vendor/autoload.php'; | |
$classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__); | |
$classLoader->register(); | |
$classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__); | |
$classLoader->register(); | |
// config | |
$config = new \Doctrine\ORM\Configuration(); |
This tutorial will explain how to make WhatsApp desktop application portable on Windows platform. Maybe this can work for other platforms as well.
For this to work NodeJs and asar package are required.
Firstly download latest version of WhatsApp. The following link contains all Windows (x64) releases:
"C:\Program Files\Git\bin\bash.exe" --login -i "C:\Program Files\Docker Toolbox\start.sh" -new_console:d:"C:\Program Files\Docker Toolbox" |