Skip to content

Instantly share code, notes, and snippets.

View SalahAdDin's full-sized avatar
🎯
Focusing

José Luis SalahAdDin

🎯
Focusing
View GitHub Profile
@SalahAdDin
SalahAdDin / nginx-phpfpm-phppgadmin configuration
Last active October 2, 2023 16:50
Take care so much, this is Arch Linux configuration, not other. See the arch phppgadmin wiki for know where are fpm.socket, it's very important! Really, really, really importante create the log files.
#user html;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
@SalahAdDin
SalahAdDin / command.sh
Last active August 15, 2016 08:20
Custom install commands
sudo add-apt-repository ppa:graphics-drivers/ppa &&
sudo add-apt-repository ppa:webupd8team/java &&
sudo add-apt-repository ppa:peterlevi/ppa &&
sudo apt-add-repository -y ppa:teejee2008/ppa &&
sudo add-apt-repository ppa:libreoffice/ppa &&
sudo add-apt-repository ppa:numix/ppa &&
sudo add-apt-repository ppa:docky-core/stable &&
sudo add-apt-repository ppa:inkscape.dev/stable &&
sudo add-apt-repository ppa:noobslab/icons &&
sudo add-apt-repository ppa:noobslab/themes &&
@SalahAdDin
SalahAdDin / Fixes
Last active March 6, 2016 02:28
Many fixes for many problemas.
When did you installed contents for MODO 902 in alternative folder, not default folder, you can do this:
cd ~/modo/
export NEXUS_CONTENT=~/<Alternative Folder>/Content/
./modo
Note: This fix couldn't fixed this problem when you create a desktop launcher, so, is better install the content in the default repository.
If you try install the Foundry crack and RLM doesn't stop, kill rlm.foundry since System's Monitors.
@SalahAdDin
SalahAdDin / algorithms.py
Last active September 9, 2015 05:24
First project for Crypto
from fractions import gcd
from source import *
__author__ = 'tulipan'
def vigenere(decode, key, clear):
encrypted = []
@SalahAdDin
SalahAdDin / dango.po
Created August 26, 2015 05:28
Local Turco
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
@SalahAdDin
SalahAdDin / album.py
Last active May 11, 2017 07:27
Album problem's implementation.
import os
import math
import random
def get_new_album(n):
i = 1
# album = [[0 for x in range(n)] for x in range(n)]
album = [0 for x in range(n)]
# print(album)
@SalahAdDin
SalahAdDin / Tutorial.txt
Created August 13, 2015 15:09
Installing and configuring Wagtail in WebFaction Server
Deploy Wagtail in Webfaction it's very easy if you know how do it, well, now is much easier,
Wagtail have now a compiled css files, but, is you want use sass files yet, you can follow the next steps.
In web faction you need to do three aditional steps from a normal webfaction django's deploying:
Install gcc>=4.6, compile and install libsass and use compress comamand in static files.
So, now we'll see each step clearer:
1. Install gcc>= 4.6:
You can find how do this here: https://community.webfaction.com/questions/6921/compiling-gcc-46.
@SalahAdDin
SalahAdDin / fancybox-buttons.scss
Created June 27, 2015 00:44
Sass support for Fancybox.
//Auxiliar Functions
@function parseInt($n) {
@return $n / ($n * 0 + 1);
}
$base-size: 16;
@mixin rem($property, $values) {
$px: ();
@SalahAdDin
SalahAdDin / hallo-custombuttons.js
Last active August 29, 2015 14:22
Advance custom plugin.
(function () {
(function (jQuery) {
return jQuery.widget("IKS.blockquote", {
options: {
editable: null,
toolbar: null,
uuid: '',
quotes: {
blockquotebutton: true,
blockquotebuttonwithclass: true,
@SalahAdDin
SalahAdDin / hallo-custombuttons.js
Last active August 29, 2015 14:22
Custom simple blockquote buttons for hallo.js
(function () {
(function (jQuery) {
return jQuery.widget("IKS.blockquotebutton", {
options: {
editable: null,
toolbar: null,
uuid: '',
quotes: {
blockquotebutton: true,
blockquotebuttonwithclass: true,