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
#include <iostream>
#include <cmath>
class Car {
private:
int speed;
string color;
float price;
int x;
int y;
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
// init
int n, m, k, x, i = 0;
cin >> n;
@ging-dev
ging-dev / metacity.sh
Last active April 25, 2021 11:59
Use Metacity Window Manager
# Install metacity
sudo apt-get install metacity -y
# Move the window button layout to the left
gsettings set org.gnome.desktop.wm.preferences button-layout 'close,minimize,maximize:menu'
gsettings set org.gnome.desktop.interface enable-animations false
xfconf-query -c xfwm4 -p /general/button_layout -s 'CHM|'
# Use metacity
xfconf-query -c xfce4-session -p /sessions/Failsafe/Client0_Command -n -a -t string -s 'metacity'
@ging-dev
ging-dev / ubuntu-ssh.php
Last active March 2, 2021 05:17
Ubuntu SSH
<?php
// >_ Gingdev
$data = json_decode(file_get_contents('http://localhost:4040/api/tunnels'), true);
$info = parse_url($data['tunnels'][0]['public_url']);
echo "Successful SSH initialization\n";
echo "Usage: ssh runner@{$info['host']} -p{$info['port']}\n";
echo "Password: ".getenv('PASSWORD');
<?php
// >_ Gingdev
$data = json_decode(file_get_contents('http://localhost:4040/api/tunnels'), true);
$info = parse_url($data['tunnels'][0]['public_url']);
echo "Successful VPS initialization\n";
echo "Address: {$info['host']}:{$info['port']}\n";
echo "Username: runner\n";
echo "Password: ".getenv('PASSWORD');
${c1} .:+o+/-.
`:oyys+:`
.+syyyo-`
.:///+oss+. .oyyyys:
-oyyyyyyyyyso` /yyyyyo.
-oyyyyyyyyys+- :yyyyys-
`-oyyyyyyyyyyo. /yyyyyy-
`-oyyyyyyyyyyyys/` `syyyyys`
`oyyyyyyyyyyyyyyyys/` /yyyyyy/
`/syyyyys/oyyyyyyyys/` -yyyyyys
#!/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
@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],
];

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