Skip to content

Instantly share code, notes, and snippets.

View d0k1's full-sized avatar
🌐
Everything is a copy of a copy of a copy...

Denis Kirpichenkov d0k1

🌐
Everything is a copy of a copy of a copy...
View GitHub Profile
@hasanbayatme
hasanbayatme / README.md
Last active January 10, 2021 20:14
Fixes Ubuntu broken packages. Accepts an argument to what action to apply to broken packages. you can use upgrade and install commands, default action is remove.

Fix Broken

This script allows you to fix the broken ubuntu packages.

Most of the time the broken packages will be fixed by removing them.

Getting Started Documentation License

Getting Started

@michaellihs
michaellihs / jenkins-elkstack.md
Last active February 9, 2023 15:56
ElasticSearch, Logstash & Kibana for Jenkins Logs
@robrez
robrez / polymerVsAngular.md
Last active March 20, 2017 10:33
Polymer Vs Angular

Polymer vs Angular?

These are not competing technologies. Angular is a framework. Polymer is a library. Let’s skip comparing libraries / frameworks against other libraries / frameworks for a second (polymer or angular or react or meteor or backbone or mustache or express or jquery or dojo or kendo).

Web development is ever-evolving. Being in tune with state of the platform (HTML, HTTP, Javascript, CSS) is critical to helping teams choose what technology (or technologies) are the right fit for particular team/project, to be responsive to paradigm shifts and to stay ahead of the curve (or at least not behind it).

There are a handful game-changing platform changes that have occurred recently. For the purposes of this conversation, let’s touch on just a couple.

@zentetsukenz
zentetsukenz / ruby_on_rails_deployment.md
Last active September 22, 2023 18:32
Deploy Ruby on Rails application with Docker Compose and Capistrano with ease

Docker

Files and Folders.

|
|\_ app
|...
|\_ docker
| |

How to install NVIDIA kernel module on Ubuntu 16.04 LTS with UEFI

This will resolve the black screen which occurs while booting, or the screen freezing which is occurred by nouveau.

Ready for step

  • Turn off SecureBoot in UEFI settings in your mainboard.
  • Download a driver for your graphic card. (Visit NVIDIA Support page.)
@thomasdarimont
thomasdarimont / readme.MD
Last active February 5, 2024 02:05
Example for using jemalloc to analyze memory allocation profile of a Java Application

Install Graphviz

sudo apt-get install graphviz

#Clone jemalloc git clone https://github.com/jemalloc/jemalloc

Configurie jemalloc with profiling enabled

./configure --enable-prof --enable-stats --enable-debug --enable-fill make make install

@benileo
benileo / mongod.service
Last active March 1, 2021 04:57
Systemd Service Script for Mongod On Ubuntu 15.04, 15.10, 16.04 Xenial
[Unit]
Description=High-performance, schema-free document-oriented database
Documentation=man:mongod(1)
After=network.target
[Service]
Type=forking
User=mongodb
Group=mongodb
@paulirish
paulirish / what-forces-layout.md
Last active May 6, 2024 07:54
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@djangofan
djangofan / predicate.java
Last active March 31, 2017 14:13 — forked from anonymous/test.java
Predicate used in Selenium WebDriver wait
public void authenticate() {
this.authenticateButton.click();
new WebDriverWait(driver, 30).until(authenticated());
}
private Predicate<WebDriver> authenticated() {
return new Predicate<WebDriver>() {
@Override public boolean apply(WebDriver driver) {
return isAuthenticated();
}
@nicolasembleton
nicolasembleton / restart_bluetooth.sh
Last active October 21, 2022 20:10
Restart Bluetooth Daemon on Mac OS X without restarting
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport