Skip to content

Instantly share code, notes, and snippets.

View vpassapera's full-sized avatar
💭
¯\_(ツ)_/¯

Victor Passapera vpassapera

💭
¯\_(ツ)_/¯
View GitHub Profile
@vpassapera
vpassapera / gist:a28468c0b43164c1e001a29f3b83a07d
Created February 22, 2022 15:14
BOTL Clubs Delete Instagram Information
Todo
zsh
nvim
oh-my-zsh
zsh-syntax-highlighting
https://github.com/junegunn/fzf
https://github.com/jeffkaufman/icdiff
https://github.com/keepcosmos/terjira
https://github.com/zsh-users/zsh-autosuggestions
curl
htop
@vpassapera
vpassapera / 1-Explanations.md
Created July 5, 2017 13:50 — forked from danvbe/1-Explanations.md
A way to integrate FosUserBundle and HWIOAuthBundle

I have managed to install this… and make it work. I implemented it for Facebook and Google, but you can extend it. My solution it is mostly as described in #116, with a bit of more code presented. The key aspects that lack in the #116 presentation (IMO) are:

  • the registration as service of your custom FOSUBUserProvider (with the necessary parameters)
  • set the service for oauth_user_provider in the security.yml with your custom created service

Here are the steps:

  1. Routing. In routing.yml I have added all the routes for both bundles.
  2. Configuration. I have set the config.yml mostly as it is presented in the HWIOAuthBundle.
  3. Security. I have set the security.yml mostly as it is presented in the HWIOAuthBundle (though my routes are using /login pattern, not /connect). Also, the oauth_user_provider is set for my custom service.
@vpassapera
vpassapera / tmux-cheatsheet.markdown
Created April 18, 2017 19:32 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
#!/bin/bash
# export DBUS_SESSION_BUS_ADDRESS environment variable because cron hates me
PID=$(pgrep -u USER gnome-session-b)
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
/usr/bin/gsettings set org.gnome.shell.extensions.user-theme name 'Flat-Plat'
/usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Flat-Plat'
/usr/bin/gsettings set org.gnome.desktop.background picture-uri 'file://WALLPAPER-PATH'
/usr/bin/gsettings --schemadir ~/.local/share/gnome-shell/extensions/drop-down-terminal@gs-extensions.zzrough.org set org.zzrough.gs-extensions.drop-down-terminal background-color 'rgb(69,90,100)'
import os
import xml.etree.cElementTree as ET
wallpapers = ET.Element("wallpapers")
for root, dirs, files in os.walk(os.path.expanduser("~/Pictures")):
for file in files:
if (file.lower().endswith(('.png', '.jpg', '.jpeg'))):
wallpaper = ET.SubElement(wallpapers, "wallpaper")
wallpaper.set("deleted", "false")
name = ET.SubElement(wallpaper, "name")
<?php
/**
* This file is part of the Mango package.
*
* (c) Mango
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
Package: libcuda* nvidia*
Pin: release o=LP-PPA-xorg-edgers
Pin-Priority: 500
Package: *
Pin: release o=LP-PPA-xorg-edgers
Pin-Priority: 50
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"
@vpassapera
vpassapera / css_resources.md
Created November 12, 2013 11:08 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides