Instantly share code, notes, and snippets.

View 0-Teste-Copel-Instável-Hotsoft-2018-11-16.txt
Upload-problem.txt
http://www.speedtest.net/result/7805438432
https://www.speedtest.net/result/7805326734
https://www.speedtest.net/result/7805356503
http://www.speedtest.net/result/7805392206
View Testes-Rede-Copel-GVT-2018-11-14-Instavel-MTR.txt
3p.ampproject.net.txt
My traceroute [v0.92]
wellington-Inspiron-3647 (192.168.200.45) 2018-11-14T18:05:38-0200
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. 192.168.1.1 98.7% 1028 9088. 4766. 0.5 9088. 3826.
gvt-b-sr02.mga.gvt.net.br
2. 100.127.252.71 61.8% 1028 9.4 169.1 8.4 9223. 1094.
View Bundle-update-old-redmine.txt
repo:/home/vhosts/redmine # bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all
non-root users on this machine.
Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.
Your Gemfile lists the gem yard (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secon
View Reset-network-Windows.bat
@echo on
rem https://www.hanselman.com/blog/TheNuclearOptionResettingTheCrapOutOfYourNetworkAdaptersInVista.aspx
rem https://www.geeksinphoenix.com/blog/post/2015/06/16/how-to-reset-your-network-adapter-in-windows-10.aspx
rem Reset everything
View gist:10cd0d657e66c1623c98e8ee699e912d
uses
WinSpool;
procedure TFrmMain.btnImprimir(Sender: TObject);
var
Handle: THandle;
CaracteresImpressos: DWORD;
Documento: TDocInfo1;
TextoAnsiString : AnsiString;
TextoUnicode: string;
View Iconv-Rails.rb
-iconv = @@iconvs[key] ||= Iconv.new('UTF-16LE', client)
+iconv = @@iconvs[key] ||= Iconv.new('UTF-16LE//TRANSLIT//IGNORE', client)
-iconv = @@iconvs[key] ||= Iconv.new('UTF-8', client)
+iconv = @@iconvs[key] ||= Iconv.new('UTF-8//TRANSLIT//IGNORE', client)
View works-fxf-glx-info.c
wellington@wellington-Inspiron-3647:~/softwares/firefox$ glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_no_error,
GLX_ARB_create_context_profile, GLX_ARB_create_context_robustness,
GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
View Upgrade-2018-10-24-Lubuntu-Work.sh
elfutils/cosmic-proposed 0.170-0.5.0ubuntu1 amd64 [upgradable from: 0.170-0.5]
gnome-software-common/cosmic-proposed,cosmic-proposed 3.30.2-0ubuntu8 all [upgradable from: 3.30.2-0ubuntu7]
gnome-software-plugin-flatpak/cosmic-proposed 3.30.2-0ubuntu8 amd64 [upgradable from: 3.30.2-0ubuntu7]
gnome-software-plugin-snap/cosmic-proposed 3.30.2-0ubuntu8 amd64 [upgradable from: 3.30.2-0ubuntu7]
gnome-software/cosmic-proposed 3.30.2-0ubuntu8 amd64 [upgradable from: 3.30.2-0ubuntu7]
libasm1/cosmic-proposed 0.170-0.5.0ubuntu1 amd64 [upgradable from: 0.170-0.5]
libdw1/cosmic-proposed 0.170-0.5.0ubuntu1 amd64 [upgradable from: 0.170-0.5]
libelf-dev/cosmic-proposed 0.170-0.5.0ubuntu1 amd64 [upgradable from: 0.170-0.5]
libelf1/cosmic-proposed 0.170-0.5.0ubuntu1 amd64 [upgradable from: 0.170-0.5]
libelf1/cosmic-proposed 0.170-0.5.0ubuntu1 i386 [upgradable from: 0.170-0.5]
View ruby-rails-erb-comments.erb
To comment a single line use
<%-# commented line -%>
This also works
<%# my comment %>
To comment a whole block use a if false to surrond your code like this
View apt-install-desktop.sh
apt install \*desktop
# $ sudo apt install \*desktop
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
Note, selecting 'open-vm-tools-desktop' for glob '*desktop'
Note, selecting 'yubioath-desktop' for glob '*desktop'
Note, selecting 'ros-desktop' for glob '*desktop'
Note, selecting 'ubuntukylin-desktop' for glob '*desktop'
Note, selecting 'live-image-gnome-desktop' for glob '*desktop'