-
PRE-INSTALL
First make sure that ubuntu (and drivers) are fully installed. If it crashes at start-up, try disableing dedicated GPUs and installing those drivers afterwards
-
BASICS
Install i3-wm using
sudo apt-get install i3
Also install i3llock, i3status, nitrogen (bacground wallpaper), Also:sudo apt-get install lxappearance gtk-chtheme qt4-qtconfig
to de-uglify gnome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Write a description of class ArugmentChecks here. | |
* | |
* @author (your name) | |
* @version (a version number or a date) | |
*/ | |
public class ArgumentChecks | |
{ | |
private int amount; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ExportSQLite: SQLite export plugin for MySQL Workbench | |
-- Copyright (C) 2009 Thomas Henlich | |
-- | |
-- This program is free software: you can redistribute it and/or modify | |
-- it under the terms of the GNU General Public License as published by | |
-- the Free Software Foundation, either version 3 of the License, or | |
-- (at your option) any later version. | |
-- | |
-- This program is distributed in the hope that it will be useful, | |
-- but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
nginx: | |
image: nginx:1.15.9-alpine | |
container_name: dle-nginx | |
# restart: unless-stopped | |
volumes: | |
- ./data/nginx:/etc/nginx/conf.d | |
- ./data/certbot/conf:/etc/letsencrypt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
### BEGIN PROXY/CERTBOT/SITE/CICD### | |
nginx: | |
image: nginx:1.15.9-alpine | |
container_name: dle-nginx | |
restart: unless-stopped | |
volumes: | |
- ./data/nginx/nginx.conf:/etc/nginx/nginx.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//The global script scope | |
def ctx = context(scope: scriptScope()) | |
//What things can be on the script scope | |
contributor(ctx) { | |
method(name: 'pipeline', type: 'Object', params: [body: Closure]) | |
property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable') | |
property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder') | |
property(name: 'currentBuild', type: 'org.jenkinsci.plugins.workflow.cps.RunWrapperBinder') | |
property(name: 'scm', type: 'org.jenkinsci.plugins.workflow.multibranch.SCMVar') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
BLUETOOTH_STATE=$(dbus-send --session --dest=org.blueman.Applet --print-reply=literal /org/blueman/applet org.blueman.Applet.GetBluetoothStatus | sed "s/^[[:space:]].*boolean //g") | |
if [ "${BLUETOOTH_STATE}" == "true" ]; then | |
dbus-send --session --dest=org.blueman.Applet --print-reply /org/blueman/applet org.blueman.Applet.SetBluetoothStatus boolean:false | |
else | |
dbus-send --session --dest=org.blueman.Applet --print-reply /org/blueman/applet org.blueman.Applet.SetBluetoothStatus boolean:true | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basics": { | |
"name": "Daniel L. Einars", | |
"label": "Senior Software Engineer", | |
"image": "./avatar.jpeg", | |
"email": "[email protected]", | |
"phone": "+41 79 640 60 84", | |
"summary": "My Summary Goes Here", | |
"location": { | |
"address": "Höflistrasse 10", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// you can write to stdout for debugging purposes, e.g. | |
// console.log('this is a debug message'); | |
/** | |
* | |
* @param {number[]} A | |
* @returns {number} | |
*/ | |
function solution(A) { |
OlderNewer