Skip to content

Instantly share code, notes, and snippets.

View mars-trueplus's full-sized avatar
😉
So crazy

XMars mars-trueplus

😉
So crazy
  • Ha Noi, Viet Nam
View GitHub Profile
@mars-trueplus
mars-trueplus / gh-dl-release
Created February 12, 2019 09:05 — forked from maxim/gh-dl-release
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
@mars-trueplus
mars-trueplus / gist:ace4028f59612118b63c7e6372e40fef
Created January 30, 2019 03:43
Update magento customer infor using SQL query
# -*- coding: utf-8 -*-
import random
from random import randint, choice
from mysql.connector import connect
list_city = []
# with open('/home/ubuntu/venv/world-cities_csv.csv', 'r') as f:
@mars-trueplus
mars-trueplus / docker-cleanup-resources.md
Created October 30, 2018 08:44 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@mars-trueplus
mars-trueplus / media-query.css
Created June 18, 2018 03:21 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04