Skip to content

Instantly share code, notes, and snippets.

View opencoca's full-sized avatar
😅
Trapped working in paradise!

OpenCo opencoca

😅
Trapped working in paradise!
View GitHub Profile
// title : keyboard
// author : Joost Nieuwenhuijse
// license : MIT License
// description: a lamp shade
// file : lamp-shade.jscad
function main (params) {
CSG.defaultResolution2D = (params.quality === 'DRAFT') ? 8 : 32;
var bottomradius = params.bottomdiameter / 2;
@opencoca
opencoca / index.html
Created June 24, 2020 12:23
Subheader @click bug
<div id="app">
<v-app id="inspire">
<v-layout row>
<v-flex xs12 sm6 offset-sm3>
<v-card>
<v-toolbar color="teal" dark>
<v-toolbar-title>Manage</v-toolbar-title>
<v-spacer></v-spacer>
@opencoca
opencoca / index.html
Created June 13, 2020 17:10
Web Torrent
<section class="section">
<div class="container ">
<nav class="navbar columns">
<p class="column has-text-centered">
<a class="link is-info" href="#">Home</a>
</p>
<p class="column has-text-centered">
<a class="link is-info" href="#">Menu</a>
</p>
<p class="column has-text-centered">
! function() {
for (var e = function(e) {
var t;
return function(r) {
return t || e(t = {
exports: {},
parent: r
}, t.exports), t.exports
}
}, t = e(function(e, t) {
@opencoca
opencoca / mautic_warmup.sh
Created March 18, 2020 13:36
Mautic Perms and Cache warm up
cd /var/www/mautic
mkdir app/spool/
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod -R g+w app/cache/
chmod -R g+w app/logs/
chmod -R g+w app/config/
chmod -R g+w media/files/
chmod -R g+w media/images/
chmod -R g+w translations/
#Copyright Alexander Somma
#Licensed under GPL
#taken from https://nosarthur.github.io/coding/2018/01/15/termux.html
#Before running install curl
#pkg install curl
#then call using: curl -fsSL
termux-setup-storage# it creates a folder called storage at your home folder which provides access to the Chromebook file systems (downloads, music, pictures, etc)
pkg install termux-exec# for better support for bash
var standalone = window.navigator.standalone,
userAgent = window.navigator.userAgent.toLowerCase(),
safari = /safari/.test( userAgent ),
ios = /iphone|ipod|ipad/.test( userAgent );
if( ios ) {
if ( !standalone && safari ) {
//browser
} else if ( standalone && !safari ) {
//standalone
@opencoca
opencoca / flexbox.css
Last active January 29, 2018 15:50
Flexbox Layout
/*
The Flexbox Layout (Flexible Box) module (currently a W3C Last Call Working Draft) aims at providing a more efficient way to lay out, align and distribute space among items in a container, even when their size is unknown and/or dynamic (thus the word "flex").
The main idea behind the flex layout is to give the container the ability to alter its items' width/height (and order) to best fill the available space (mostly to accommodate to all kind of display devices and screen sizes). A flex container expands items to fill available free space, or shrinks them to prevent overflow.
*/
.section {
margin: auto;
max-width: 72em;
}
# Display list of screen panes on bottom of screen
caption always "%= %-w%L>%{= BW}%n*%t%{-}%52<%+w %L="
shelltitle "$ |bash"
# change terminal title depending on screen pane title
termcapinfo xterm* 'hs:ts=\E]0;:fs=\007:ds=\E]0;\007'
defhstatus "screen ^E (^Et) | $USER@^EH"
hardstatus off
# don't display the copyright page
startup_message off