Skip to content

Instantly share code, notes, and snippets.

View EvilFreelancer's full-sized avatar

Pavel Zloi EvilFreelancer

View GitHub Profile
@EvilFreelancer
EvilFreelancer / build.sh
Created January 15, 2017 08:36
A script to create a custom build of Debian or Ubuntu
#!/bin/bash
tools=( "/usr/bin/build-simple-cdd" "/usr/bin/xorriso" )
count="${#tools[@]}"
for i in `seq 1 $(($count-1))`
do
if [ ! -f "${tools[$i]}" ]
then
echo "${tools[$i]} is not found"
@EvilFreelancer
EvilFreelancer / read-dotenv-in-bash.sh
Created January 28, 2018 12:10
A simple way to read a donenv file in BASH (with spaces support)
#!/bin/bash
grep -vE '^#|^$' ".env" | awk -F \= '{print $1"=\""$2"\""}' | \
while read env;
do
echo "$env";
export "$env";
done
@EvilFreelancer
EvilFreelancer / report.txt
Created February 12, 2018 13:59
Report about image assembling
...
...
...
'arch/x86/boot/bzImage' -> '/boot/vmlinuz-4.12.7-lfs-8.1'
'System.map' -> '/boot/System.map-4.12.7'
'.config' -> '/boot/config-4.12.7'
install: creating directory '/etc/modprobe.d'
/
Using GRUB to setup the boot process..
NOTE: skipped. Check 8.4 chapter of LFS book for details
@EvilFreelancer
EvilFreelancer / nvidia-blacklists-nouveau.conf
Created March 20, 2018 16:46
Nvidia 1050TI - Optimal configuration on Debian Stretch
### Content of /etc/modprobe.d/nvidia-blacklists-nouveau.conf
# You need to run "update-initramfs -u" after editing this file.
# see #580894
blacklist nouveau
@EvilFreelancer
EvilFreelancer / test.txt
Created April 28, 2018 14:01
Docker sample
Array
(
[0] => Array
(
[Id] => 825eae0c448a8677f6ca7e91350754d125b1a42c2a0adcf502722c6384d32ab6
[Names] => Array
(
[0] => /dockercirie_php_1
)
@EvilFreelancer
EvilFreelancer / debug_mono-4.6.2.log
Last active May 12, 2018 11:12
Cosmoteer on linux
[pasha-pc] ~/Documents/Cosmoteer/app $ mono Cosmoteer.exe
Unhandled Exception:
System.Security.SecurityException: No access to the given key ---> System.UnauthorizedAccessException: Access to the path "/etc/mono/registry" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00070] in <8f2c484307284b51944a1a13a14c0266>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in <8f2c484307284b51944a1a13a14c0266>:0
at System.IO.DirectoryInfo.Create () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0003f] in <8f2c484307284b51944a1a13a14c0266>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in <8f2c484307284b51944a1a13a14c0266>:0
@EvilFreelancer
EvilFreelancer / get_crap.ps1
Last active May 13, 2018 20:21
Remove embedded applications from Windows 10 (for all users of system)
# Generate lines for deleting, unfortinatly not possible to remove crap in loop
$array = @{
"Calculator"="windowscalculator";
"3D Builder"="3dbuilder";
"Alarms and Clock"="windowsalarms";
"Calendar and Mail"="windowscommunicationsapps";
"Camera"="windowscamera";
"Get Help"="gethelp";
"Groove Music"="zunemusic";
"Maps"="windowsmaps";
@EvilFreelancer
EvilFreelancer / nginx-rtmp-init.example.sh
Last active August 15, 2018 20:33
Nginx RTMP edition with init script and config file
#!/bin/bash
function help {
echo "$0 [start|stop|reload|restart]"
exit
}
path="/linux/Linux/nginx-rtmp/binary"
bin="sbin/nginx"
@EvilFreelancer
EvilFreelancer / interfaces
Created May 21, 2019 17:33
Network configuration for Proxmox for LXC containers forwarding
auto lo
iface lo inet loopback
iface enp0s3 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
http://tegos.ru/
https://seclub.org/
http://m.mobtop.ru/catalogue/25
---
https://visavi.net/load/down?act=view&id=799 - вот эта сама старая похрду из доступных
https://visavi.net/load/down?act=view&id=1695 - и еще движок
https://visavi.net/load/down?act=view&id=1424 - а вот это новый самый на кохане
http://soft-2008.my1.ru/load/35-1-0-356 - 14 версия