Skip to content

Instantly share code, notes, and snippets.

{"account_id_migration_state":2,"account_tracker_service_last_update":"13122500813747222","browser":{"clear_data":{"form_data":true,"hosted_apps_data":true,"passwords":true},"clear_lso_data_enabled":false,"custom_chrome_frame":true,"last_known_google_url":"https://www.google.ge/","pepper_flash_settings_enabled":false,"window_placement":{"bottom":741,"docked":false,"left":50,"maximized":true,"right":1100,"top":27,"work_area_bottom":741,"work_area_left":0,"work_area_right":1366,"work_area_top":0}},"cloud_print":{"email":""},"countryid_at_install":18757,"credentials_enable_service":false,"data_reduction_lo_fi":{"load_images_requests_per_session":0,"load_images_snackbars_shown_per_session":0,"was_used_this_session":false},"default_apps_install_state":3,"default_search_provider":{"enabled":true,"id":"5","synced_guid":"7b6513fe-8dad-486a-9ce0-756627c6369e"},"default_search_provider_data":{"template_url_data":{"alternate_urls":["{google:baseURL}#q={searchTerms}","{google:baseURL}search#q={searchTerms}","{google:base
@FZX
FZX / Commands
Last active December 29, 2022 16:38
Terminal commands. Change Cinnamon theme from terminal. Disable cursor blink from terminal. Disabling recent files history from terminal. Setup proxy file with command.
gsettings set org.cinnamon.desktop.privacy remember-recent-files false
gsettings set org.cinnamon.theme name "Mint-Y-Dark"
gsettings set org.cinnamon.desktop.interface gtk-theme "Mint-Y-Dark"
gsettings set org.cinnamon.desktop.wm.preferences theme "Mint-Y-Dark"
gsettings set org.cinnamon.desktop.interface cursor-blink false
gsettings set org.gnome.system.proxy autoconfig-url "http://mediahint.com/default.pac"
gsettings set org.gnome.system.proxy mode auto
gsettings set org.cinnamon enabled-applets "['panel1:left:0:menu@cinnamon.org:0', 'panel1:left:2:panel-launchers@cinnamon.org:2', 'panel1:left:3:window-list@cinnamon.org:3', 'panel1:right:0:notifications@cinnamon.org:4', 'panel1:right:1:user@cinnamon.org:5', 'panel1:right:2:removable-drives@cinnamon.org:6', 'panel1:right:3:keyboard@cinnamon.org:7', 'panel1:right:11:show-desktop@cinnamon.org:1', 'panel1:right:5:network@cinnamon.org:9', 'panel1:right:6:sound@cinnamon.org:10', 'panel1:right:7:power@cinnamon.org:11', 'panel1:right:8:systray@cinnamon.org:12', '
@FZX
FZX / userChrome.css
Created September 3, 2022 02:37
FireFox userChrome.css changing url bar and tabs sizes to minimum. to find userChrome.css location go menu->help->more troubleshooting informatio->profile directory click open. Create chrome folder with file named userChrome.css. Enabling userChrome.css file support type about:config toolkit.legacyUserProfileCustomizations.stylesheets to true.
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
/* ROOT - VARS */
*|*:root {
--tab-min-height: 30px !important; /* adjust */
--tab-min-width: 30px !important; /* adjust */
}
/* TABS: height */
#tabbrowser-tabs,
@FZX
FZX / setup.sh
Last active September 15, 2021 21:36
Shell script for configuring Linux Mint. Installing Chromium, Vim, Git. Changing system settings. Changing theme. Adding python script for modify brightness level.
#! /bin/sh
#
# setup.sh
# Copyright (C) 2016 FZX <FZX@users.noreply.github.com>
#
# Distributed under terms of the GPL v2.0 license.
#
var json_data = null;
function get_data(mode){
$.ajax({
url: "/json_nodes",
method: "POST",
data: {func: "init"},
success: function(json){
json_data = json;
//console.log(json_data);
}
<!DOCTYPE html>
<html lang="ka-GE"
xmlns:fb="http://ogp.me/ns/fb#" prefix="og: http://ogp.me/ns#">
<head>
<link rel="stylesheet" href="/wp-content/themes/flex-mag/css/alk-sanet.min.css">
<link rel="stylesheet" href="/wp-content/themes/flex-mag/css/bpg-glaho.min.css">
<meta charset="UTF-8" >
<meta name="viewport" id="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
@FZX
FZX / gevent.py
Created April 23, 2017 10:43 — forked from scturtle/gevent.py
Let's go HTTPS!
from gevent import monkey
monkey.patch_all()
import bottle
class SSLWebServer(bottle.ServerAdapter):
def run(self, handler):
from gevent.pywsgi import WSGIServer
srv = WSGIServer((self.host, self.port), handler,
certfile='/etc/letsencrypt/live/XXX/fullchain.pem',
@FZX
FZX / checkdomain.py
Created February 4, 2017 22:04
Python3 Check domain with Godaddy API
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
# Distributed under terms of the MIT license.
import requests
def check_domain(domain):
@FZX
FZX / Random Vimrc
Last active December 27, 2016 08:14
Random Vimrc
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
" "
" __ _ _ _ __ ___ _ __ ___ "
" \ \ / / | '_ ` _ \| '__/ __| "
" \ V /| | | | | | | | | (__ "
" \_/ |_|_| |_| |_|_| \___| "
" "
" "
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
@FZX
FZX / brightness.py
Last active November 16, 2016 19:02
Ubuntu / Linux Mint Brightness control. I could not find real fix for problem with keys changing brightness level on my laptop. So wrote little Python 3 script. Add alias to this file in .bashrc
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2016 FZX <FZX@users.noreply.github.com>
#
# Distributed under terms of the GPL v2.0 license.
"""
Controlling brightness for nv_backlight.