This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jundat95.com.cachedata.ultis; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.os.Environment; | |
import android.util.Log; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileInputStream; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Renci.SshNet; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Sockets; | |
using System.Reflection; | |
using System.Text; | |
namespace ToolSSH | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create or open an existing Sheet and click Tools > Script editor and enter the code below | |
// 1. Enter sheet name where data is to be written below | |
var SHEET_NAME = "Sheet1"; | |
// 2. Run > setup | |
// 3. Publish > Deploy as web app | |
// - enter Project Version name and click 'Save New Version' | |
// - set security level and enable service (most likely execute as 'me' and access 'anyone, even anonymously) | |
// 4. Copy the 'Current web app URL' and post this in your form/script action | |
// 5. Insert column names on your destination sheet matching the parameter names of the data you are passing in (exactly matching case) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// update ubuntu | |
sudo apt update | |
// install php 7.2 | |
sudo apt install php7.2-common php7.2-cli php7.2-fpm php7.2-opcache php7.2-gd php7.2-mysql php7.2-curl php7.2-intl php7.2-xsl php7.2-mbstring php7.2-zip php7.2-bcmath php7.2-soap | |
// check status php7.2 | |
sudo service php7.2-fpm status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// update ubuntu | |
sudo apt update | |
// add PHP repository | |
sudo apt-get install software-properties-common python-software-properties | |
or | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository -y ppa:ondrej/php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove all php7 in ubuntu | |
// stop php7.x-fpm service | |
sudo service php7.2-fpm stop | |
// remove php7 | |
sudo apt-get remove php7.* | |
// remvoe all config of php7 | |
sudo apt-get purge php7.* | |
// remove all dendencies of php7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface ClockConstructor { | |
new (hour: number, minute: number): ClockInterface; | |
} | |
interface ClockInterface { | |
tick(): any; | |
} | |
function createClock(ctor: ClockConstructor, hour: number, minute: number): ClockInterface { | |
return new ctor(hour, minute); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function applyMixins(derivedCtor: any, baseCtors: any[]) { | |
baseCtors.forEach(baseCtor => { | |
Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => { | |
if (name !== 'constructor') { | |
derivedCtor.prototype[name] = baseCtor.prototype[name]; | |
} | |
}); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listen.owner = jundat95 | |
listen.group = jundat95 | |
listen.mode = 0660 | |
listen = 127.0.0.1:9000 | |
listen.allowed_clients = 127.0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
index index.php; | |
server_name test.local; | |
root /var/www/test; | |
location ~ \.php$ { | |
try_files $uri =404; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_pass 127.0.0.1:9000; |
OlderNewer