Skip to content

Instantly share code, notes, and snippets.

View fedir's full-sized avatar
🌤️
The sun is behind every cloud

Fedir RYKHTIK fedir

🌤️
The sun is behind every cloud
View GitHub Profile
@fedir
fedir / .gitignore
Last active May 4, 2024 13:52 — forked from Avinashachu007/.gitignore
.gitignore for Java, Maven, Spring Boot - Eclipse, Netbeans, IntelliJ IDEA, Visual Studio Code
/target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
@fedir
fedir / gist-backup.py
Last active April 21, 2024 21:31 — forked from nicerobot/backup.sh
Clone or update all user's gists #backup #github #gists #management
#!/usr/bin/env python
# Clone or update all a user's gists
# curl -ks https://raw.github.com/gist/5466075/gist-backup.py | USER=fedir python
# USER=fedir python gist-backup.py
import json
import urllib
from subprocess import call
from urllib import urlopen
import os
@fedir
fedir / google-font-dl.py
Last active January 30, 2024 05:20 — forked from kevinoid/google-font-dl.py
Script to download google fonts locally (for web development off-line, for example). Use : python getAllGoogleFonts.py Dosis
#!/usr/bin/env python
#
# Downloader for Google Web Fonts
#
# For usage information run with "--help"
#
# Works on Python 2.6 and later, 3 and later
# Requires tinycss (and argparse for Python 2.6) from pip
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
@fedir
fedir / tellmeyoursecrets.js
Last active January 20, 2020 15:52 — forked from rzrbld/tellmeyoursecrets.js
Google Apps Script that lists a lot of info about the files in a particular folder/sub folder structure including viewers, editors, and sharing access type
function listFolders(folder) {
var sheet = SpreadsheetApp.getActiveSheet();
sheet.appendRow(["Folder Name" ,"Name","Sharing Access", "Get Editors", "Get Viewers", "Date", "URL"]);
folderID = "ID"
listFolder(sheet, folderID)
}
function listFolder(sheet, folderID) {
var folder = DriveApp.getFolderById(folderID);
addRootFilesToSheet(sheet, folder)
@fedir
fedir / typo3camp-nantes-cms-6-top-9-update-notes.md
Last active December 6, 2018 09:18 — forked from mkrappitz/typo3camp-nantes-cms-6-top-9-update-notes.txt
TYPO3camp Nantes TYPO3 CMS 6 to 9 Update Notes

Notes of Matthias Krappitz for the TYPO3 CMS 6 to 9 update session of the installation https://www.kastrati.com/ on the Sunday of the TYPO3Camp Nantes 2018. Makes only sense for participants of the session

From 6 to 7

  • set development system DB settings inf AdditionalConfiguration.php on domain condition
  • execute DB Compare
  • set Preview Domain in PageTs on domain condition
  • set TS Domain Conditions for Frontend to Dev Environment
  • extension updates (EXT:powermail only up to 2.25.3 for now)
@fedir
fedir / .ackrc
Last active May 21, 2018 13:43 — forked from theaboutbox/.ackrc
My .ackrc
--type-add=go=.golang
--type-add=php=.php,.inc,.phpsh
--type-add=css=.sass,.less,.scss
--type-add=ruby=.rake,.rsel,.builder,.thor
--type-add=html=.haml,.html.erb,.html.haml
--type-add=js=.js.erb,.coffee
--type-set=cucumber=.feature
--type-set=c=.c,.cpp,.ino,.pde,.h
--ignore-dir=vendor
--ignore-dir=log
@fedir
fedir / ForumPHP2016_Confs.md
Created October 30, 2017 10:40 — forked from Progi1984/ForumPHP2016_Confs.md
Forum PHP 2016
@fedir
fedir / glide-install.sh
Last active October 21, 2017 14:39 — forked from missinglink/go-ubuntu-install.md
Install go on ubuntu
sudo add-apt-repository ppa:masterminds/glide && sudo apt-get update
sudo apt-get install glide
@fedir
fedir / generatePassword.php
Created June 7, 2017 18:41 — forked from zyphlar/generatePassword.php
Generating secure passwords in PHP
<?php
// usage: $newpassword = generatePassword(12); // for a 12-char password, upper/lower/numbers.
// functions that use rand() or mt_rand() are not secure according to the PHP manual.
function getRandomBytes($nbBytes = 32)
{
$bytes = openssl_random_pseudo_bytes($nbBytes, $strong);
if (false !== $bytes && true === $strong) {
return $bytes;
}
else {