Skip to content

Instantly share code, notes, and snippets.

View hotsoft-desenv2's full-sized avatar
🖥️
Working

Wellington Torrejais da Silva - Hotsoft_desenv2 hotsoft-desenv2

🖥️
Working
View GitHub Profile
@GavinJoyce
GavinJoyce / ember-listbox.js
Last active June 18, 2020 18:20
vue / ember listbox comparison
// NOTE: this Ember app is presented in a similar way to the Vue app below to aid comparison.
// The actual app can be found here: https://github.com/GavinJoyce/tailwind-select-spike
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import { guidFor } from "@ember/object/internals";
import { debounce } from "@ember/runloop";
function isString(value) {
class ApplicationRoute extends Route {
myAction() {
// do some fancy stuff here
}
setupController(controller, model) {
super.setupController(controller, model);
// Instead of setting on the controller, you can also inject
// a service into this route and set the action there.
//app/components/marcas/marcas-form.js
import Component from '@ember/component';
export default Component.extend({
//https://guides.emberjs.com/v3.3.0/components/triggering-changes-with-actions/
//https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/closure-actions.md
// Noop, needs to be overriden
onSave() {},
@una
una / style.css
Last active September 22, 2023 18:11
min() max() clamp()
.sidebar {
/* Select smaller of the 2 calculated values
Narrower screens: 20vw, Wider screens: 300px */
width: min(20vw, 300px);
}
.make-the-logo-bigger {
/* Select larger of the 2 calculated values
Basically clamps the font size to 60px or larger (10vw) */
font-size: max(60px, 10vw);
@pedroarthur
pedroarthur / userChrome.css
Created July 8, 2018 04:16
Change Firefox UI to i) auto hide address bar; and ii) hide tab bar when there is only one tab opened
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/*
* From https://gist.github.com/BenoitAverty/af633ee20e27f48f9ba7178451432206
*/
#tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox {
min-height: 0 !important;
}
@sarupbanskota
sarupbanskota / README.md
Last active June 9, 2020 21:28
Ember + ESLint + Prettier + Ember Suave
  • new ember app & yarn install
  • ember install ember-cli-eslint@4
// ember-cli-build.js
let app = new EmberApp(defaults, {
  eslint: {
    testGenerator: 'qunit',
    group: true,
    rulesDir: 'eslint-rules',
 extensions: ['js'],
@wellington1993
wellington1993 / update-gitlab.sh
Last active February 17, 2017 13:11
Upgrade Gitlab ubuntu
#https://about.gitlab.com/update/
#cd /home/git/gitlab
bundle install --without production
bundle install
# Somente versoes mais recentes
#sudo gitlab-ctl stop unicorn
#sudo gitlab-ctl stop sidekiq
#sudo gitlab-ctl stop nginx
@nathanael-naeri
nathanael-naeri / flash-readme.md
Last active June 19, 2024 21:53
Flash Player on Linux

Date: 2017-04-23
Title: Flash and LSO cookies
Author: Nathanaël Naeri <nathanael-naeri/at/users.noreply.github.com>

Valid for: Ubuntu 14.04+
Valid for: NPAPI and PPAPI Flash Player (plugins) 25.0
Valid for: Fresh Player Plugin (wrapper) 0.3.6

@wellington1993
wellington1993 / addSwap.sh
Created September 14, 2016 12:59
Add Swap Linux
# As root: sudo su -
sudo dd if=/dev/zero of=/swapfile1 bs=10240 count=524288
chown root:root /swapfile1
mkswap /swapfile1
swapon /swapfile1
# vi /etc/fstab
# Add:
# /swapfile1 none swap sw 0 0
@wellington1993
wellington1993 / script-brute-update-ubuntu-debian-apt-linux.sh
Last active April 23, 2018 18:52
Brute Update Ubuntu Mint Linux APT (Run as root, copy and paste into terminal)
#!/bin/bash
#
# Updated 2018-02-20
# If "apt" not exist try "apt-get", because older versions not support "apt"
#
# Preparation, solve problems
sudo w ; \
sudo killall -9 dpkg ; \
#
sudo echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4 ; \