Skip to content

Instantly share code, notes, and snippets.

View ging-dev's full-sized avatar
😘
Còn sống nè

Thanh Trần ging-dev

😘
Còn sống nè
  • Việt Nam Tp. Thái Nguyên, Thái Nguyên
View GitHub Profile
@ging-dev
ging-dev / tutorial.md
Last active April 8, 2023 14:14
Apache Bigtop

Cách thêm source list của apache bigtop vào apt repository của Ubuntu 22.04:

wget -O /etc/apt/sources.list.d/bigtop-3.2.0.list http://archive.apache.org/dist/bigtop/bigtop-3.2.0/repos/ubuntu-22.04/bigtop.list
wget -O- https://dlcdn.apache.org/bigtop/bigtop-3.2.0/repos/GPG-KEY-bigtop | apt-key add -
<?php
$objPHPExcel = new PHPExcel();
$objPHPExcel->getProperties()->setCreator("Govinda")
->setLastModifiedBy("Govinda")
->setTitle("Office 2007 XLSX Test Document")
->setSubject("Office 2007 XLSX Test Document")
->setDescription("Test document for Office 2007 XLSX, generated using PHP classes.")
->setKeywords("office 2007 openxml php")
->setCategory("Test result file");
<?php
require __DIR__.'/vendor/autoload.php';
use Symfony\Component\HttpClient\HttpClient;
$client = HttpClient::create();
$response = $client->request('GET', 'https://api.openweathermap.org/data/2.5/weather?lat=21.593700&lon=105.844513&appid=9180be2fb7b4e63ec3025dd22d8f0023');
foreach ($response->toArray()['weather'] as $weather) {
@ging-dev
ging-dev / curl.md
Created June 22, 2022 09:31
curl command
curl -XGET -H 'Referer: http://www.nettruyenco.com/' 'http://i551.ntcdntempv26.com/data/images/41411/833586/001.jpg?data=net' --output image.jpg
@ging-dev
ging-dev / colab.sh
Last active January 10, 2024 10:28
# >_ Gingteam 2022
sudo apt-get update -y
wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb
sudo apt install --assume-yes ./chrome-remote-desktop_current_amd64.deb
sudo DEBIAN_FRONTEND=noninteractive \
apt install --assume-yes gnome-session-flashback nautilus gnome-terminal firefox
@ging-dev
ging-dev / gnome.sh
Created June 11, 2022 14:15
Cài đặt Gnome Flashback Metacity trên Google Shell Cloud
# >_ Gingteam 2022
sudo apt-get update -y
wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb
sudo apt install --assume-yes ./chrome-remote-desktop_current_amd64.deb
sudo DEBIAN_FRONTEND=noninteractive \
apt install --assume-yes gnome-session-flashback nautilus gnome-terminal firefox-esr

https://tiemchungcovid19.gov.vn/api/vaccination/public/otp-search?fullname=Tr%E1%BA%A7n%20Xu%C3%A2n%20Thanh&birthday=979171200000&genderId=1&personalPhoneNumber=0528383079&identification=092016592&healthInsuranceNumber= https://tiemchungcovid19.gov.vn/api/vaccination/public/patient-vaccinated?fullname=Tr%E1%BA%A7n%20Xu%C3%A2n%20Thanh&amp;birthday=979171200000&amp;genderId=1&amp;personalPhoneNumber=0528383079&amp;identification=092016592&amp;healthInsuranceNumber=&amp;otp=785077

@ging-dev
ging-dev / ltm.php
Last active December 17, 2021 13:47
<?php
$n = 4;
$matrix = [
[0, 0.1, 0.2, 0.1],
[0.3, 0, 0.4, 0.1],
[0.5, 0.6, 0, 0.1],
[0, 0, 0, 0],
];
#!/bin/bash
# >_ GingTeam
# Lastest xfce4 (4.16)
sudo add-apt-repository "deb http://mxrepo.com/mx/repo/ temp main"
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 276ECD5CEF864D8F
sudo apt-get update
# Chrome remote desktop