components/base/index.ts
import { App } from 'vue';
const requireComponent = require.context(
// The relative path of the components folder
'./',
// Whether or not to look in subfolders
#!/usr/bin/lua | |
-- load the http socket module | |
http = require("socket.http") | |
-- load the json module | |
json = require("json") | |
api_url = "http://api.openweathermap.org/data/2.5/weather?" | |
-- http://openweathermap.org/help/city_list.txt , http://openweathermap.org/find | |
cityid = "5128581" |
<?php | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Support\Facades\Schema; | |
class CreateLogTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
// EmailInput wraps an HTML `input` and adds some app-specific styling. | |
const EmailInput = React.forwardRef((props, ref) => ( | |
<input ref={ref} {...props} type="email" className="AppEmailInput" /> | |
)); | |
class App extends Component { | |
emailRef = React.createRef(); | |
render() { | |
return ( |
/vendor | |
/docker | |
/Dockerfile |
FROM gliderlabs/alpine:3.3 | |
COPY myawesomescript /bin/myawesomescript | |
COPY root /var/spool/cron/crontabs/root | |
RUN chmod +x /bin/myawesomescript | |
CMD crond -l 2 -f |
sudo -i
to become rootpecl install swoole
and enable what you need. (I disabled curl as it did not work for me)<?php | |
class DockerClient { | |
/** @param resource */ | |
private $curlClient; | |
/** @param string */ | |
private $socketPath; |
sudo chroot /mnt/sysroot /bin/bash --login | |
# set partition codes | |
sgdisk -t 1:ef00 /dev/vda | |
sgdisk -t 2:8304 /dev/vda | |
partprobe | |
# remove GRUB and exclude it from being reinstalled | |
rpm -v --nodeps --erase $(rpm -qa | grep "^grub2-\|^os-prober-\|^grubby-") | |
echo "exclude=grub2-*,os-prober,grubby" >> /etc/dnf/dnf.conf |