start new:
tmux
start new with session name:
tmux new -s myname
** download bootstrap from bootstrap site | |
**Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap | |
**download jquery.its needed. | |
**below is a template of a basic html file with bootstrap inclusive | |
**<!DOCTYPE html> | |
<html> |
#Extract yii source folder | |
#Copy framework folder, preferrablly into /var/www/yii/ | |
#Run command | |
sudo php /var/www/yii/framework/yiic.php webapp /var/www/yii/my_example | |
# make sure you do, this will enable files access other assets it needs |
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android"> | |
<rotate | |
android:duration="70" | |
android:fromDegrees="-5" | |
android:pivotX="50%" | |
android:pivotY="50%" | |
android:repeatCount="5" | |
android:repeatMode="reverse" |
#Sample nginx server block and uwsgi .ini configuration | |
#path to ini | |
/etc/uwsgi/apps-available/site.ini | |
#path to nginx server block | |
/etc/nginx/sites-available/site | |
#sample nginx config server blk |
## in models.py | |
class CustomerUserManager(BaseUserManager): | |
def _create_user(self, national_id, password, | |
is_staff, is_superuser, **extra_fields): | |
now = timezone.now() | |
if not national_id: |
AndroidManifest.xml => | |
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.agbenu.splashscreenexample" > | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:fullBackupContent="true" |
####in your nginx.conf server block | |
server { | |
# the port your site will be served on | |
listen 7002; | |
server_name localhost; | |
charset utf-8; | |
# Finally, send all non-media requests to the Django server. |
<?php | |
$conn = mysqli_connect("localhost", "xxxx", "xxxx", "test"); | |
Header("Content-Tye: application/json; charset=UTF-8"); | |
if (mysqli_connect_errno()) { | |
echo json_encode(array("data"=>"Connection failed")); | |
exit(); | |
} |