Skip to content

Instantly share code, notes, and snippets.

Avatar
⚙️
Available for Hire

eXtremeSHOK extremeshok

⚙️
Available for Hire
View GitHub Profile
View gist:ff1126bc723017618661e24c7e856757
### Keybase proof
I hereby claim:
* I am extremeshok on github.
* I am extremeshok (https://keybase.io/extremeshok) on keybase.
* I have a public key ASCYUIvwLdXNNNZfvup0oJ8p-oQCWZabAVOiRrhZ3iuF2go
To claim this, I am signing this object:
@extremeshok
extremeshok / gist:f6f485990cec5e81662c569d835049f2
Created Jun 17, 2019
woocommerce wp-cli remove all products
View gist:f6f485990cec5e81662c569d835049f2
/usr/local/bin/wp-cli --allow-root --path=/var/www/html post list --field=ID --post_type=product | xargs /usr/local/bin/wp-cli --allow-root --path=/var/www/html post delete --force
@extremeshok
extremeshok / zfs_revert-0.1.py
Created Aug 30, 2018
Revert ZFS changes by destroying uberblocks
View zfs_revert-0.1.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
#Script for reverting ZFS changes by destroying uberblocks
#Author: Martin Vool
#E-mail: mardicas@gmail.com
#Version: 0.1
#Date: 16 November 2009
@extremeshok
extremeshok / reboot-modem.js
Created Jan 8, 2018 — forked from jonathanhoskin/reboot-modem.js
Huawei B315 Modem Reboot Script
View reboot-modem.js
// PhantomJS script to reboot a Huawei B315 modem
//
// Author: Jonathan Hoskin / 2017-09-02
// Twitter: @jhossnz
// Github: https://github.com/jonathanhoskin
//
// Requires PhantomJS ~ 2.1.1
//
// Enter your own modem details here
var username = 'admin';
@extremeshok
extremeshok / anet_a6.def.json
Created May 9, 2017 — forked from maciekish/Anet+A6_settings.inst.cfg
Anet A6 profile for Cura 2.3. Save in "Cura 2.3\resources\definitions" and restart Cura
View anet_a6.def.json
{
"id": "anet_a6",
"version": 2,
"name": "Anet A6",
"inherits": "fdmprinter",
"metadata": {
"visible": true,
"author": "Maciej Swic",
"manufacturer": "Anet",
"category": "Anet",
View bootstrap-masonry-3.htm
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Masonry 3 + Bootstrap</title>
<link href='http://fonts.googleapis.com/css?family=PT+Sans+Caption:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css">
<link rel="stylesheet" href="style.css">
<script src="http://code.jquery.com/jquery.js"></script>